* Google Author(s): Seigo Nonaka
*/
-#ifndef HB_OT_EBDT_TABLE_HH
-#define HB_OT_EBDT_TABLE_HH
+#ifndef HB_OT_CBDT_TABLE_HH
+#define HB_OT_CBDT_TABLE_HH
#include "hb-open-type-private.hh"
} /* namespace OT */
-#endif /* HB_OT_EBDT_TABLE_HH */
+#endif /* HB_OT_CBDT_TABLE_HH */
#include "hb-font-private.hh"
#include "hb-ot-cmap-table.hh"
-#include "hb-ot-ebdt-table.hh"
+#include "hb-ot-cbdt-table.hh"
#include "hb-ot-glyf-table.hh"
#include "hb-ot-head-table.hh"
#include "hb-ot-hhea-table.hh"
}
};
-struct hb_ot_face_ebdt_accelerator_t
+struct hb_ot_face_cbdt_accelerator_t
{
hb_blob_t *cblc_blob = NULL;
hb_blob_t *cbdt_blob = NULL;
hb_ot_face_metrics_accelerator_t h_metrics;
hb_ot_face_metrics_accelerator_t v_metrics;
hb_lazy_loader_t<hb_ot_face_glyf_accelerator_t> glyf;
- hb_lazy_loader_t<hb_ot_face_ebdt_accelerator_t> ebdt;
+ hb_lazy_loader_t<hb_ot_face_cbdt_accelerator_t> cbdt;
};
ot_font->v_metrics.init (face, HB_OT_TAG_vhea, HB_OT_TAG_vmtx, HB_TAG_NONE,
ot_font->h_metrics.ascender - ot_font->h_metrics.descender); /* TODO Can we do this lazily? */
ot_font->glyf.init (face);
- ot_font->ebdt.init (face);
+ ot_font->cbdt.init (face);
return ot_font;
}
ot_font->h_metrics.fini ();
ot_font->v_metrics.fini ();
ot_font->glyf.fini ();
- ot_font->ebdt.fini ();
+ ot_font->cbdt.fini ();
free (ot_font);
}
const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data;
bool ret = ot_font->glyf->get_extents (glyph, extents);
if ( !ret )
- ret = ot_font->ebdt->get_extents (glyph, extents);
+ ret = ot_font->cbdt->get_extents (glyph, extents);
extents->x_bearing = font->em_scale_x (extents->x_bearing);
extents->y_bearing = font->em_scale_y (extents->y_bearing);
extents->width = font->em_scale_x (extents->width);