projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f8ebf
)
[config] Don't use VORG table if HB_NO_OT_FONT_CFF
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 18 Jun 2019 21:38:05 +0000
(14:38 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 18 Jun 2019 21:38:05 +0000
(14:38 -0700)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
src/hb-ot-font.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-font.cc
b/src/hb-ot-font.cc
index
af9a9a2
..
0707a2f
100644
(file)
--- a/
src/hb-ot-font.cc
+++ b/
src/hb-ot-font.cc
@@
-148,12
+148,14
@@
hb_ot_get_glyph_v_origin (hb_font_t *font,
*x = font->get_glyph_h_advance (glyph) / 2;
+#ifndef HB_NO_OT_FONT_CFF
const OT::VORG &VORG = *ot_face->VORG;
if (VORG.has_data ())
{
*y = font->em_scale_y (VORG.get_y_origin (glyph));
return true;
}
+#endif
hb_glyph_extents_t extents = {0};
if (ot_face->glyf->get_extents (glyph, &extents))