Add HB_NO_OT_FONT_BITMAP

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
pull/1666/head
Behdad Esfahbod 6 years ago
parent 160c4d8b2d
commit 60a58aa61c
  1. 2
      src/hb-ot-font.cc

@ -189,8 +189,10 @@ hb_ot_get_glyph_extents (hb_font_t *font,
if (!ret)
ret = ot_face->cff2->get_extents (font, glyph, extents);
#endif
#if !defined(HB_NO_OT_FONT_BITMAP)
if (!ret)
ret = ot_face->CBDT->get_extents (font, glyph, extents);
#endif
// TODO Hook up side-bearings variations.
extents->x_bearing = font->em_scale_x (extents->x_bearing);
extents->y_bearing = font->em_scale_y (extents->y_bearing);

Loading…
Cancel
Save