Add HB_NO_OT_FONT_BITMAP
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
parent
160c4d8b2d
commit
60a58aa61c
|
@ -189,8 +189,10 @@ hb_ot_get_glyph_extents (hb_font_t *font,
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = ot_face->cff2->get_extents (font, glyph, extents);
|
ret = ot_face->cff2->get_extents (font, glyph, extents);
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(HB_NO_OT_FONT_BITMAP)
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = ot_face->CBDT->get_extents (font, glyph, extents);
|
ret = ot_face->CBDT->get_extents (font, glyph, extents);
|
||||||
|
#endif
|
||||||
// TODO Hook up side-bearings variations.
|
// TODO Hook up side-bearings variations.
|
||||||
extents->x_bearing = font->em_scale_x (extents->x_bearing);
|
extents->x_bearing = font->em_scale_x (extents->x_bearing);
|
||||||
extents->y_bearing = font->em_scale_y (extents->y_bearing);
|
extents->y_bearing = font->em_scale_y (extents->y_bearing);
|
||||||
|
|
Loading…
Reference in New Issue