のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

pango_fc_get_hb_font_funcs

279 static hb_font_funcs_t *
280 pango_fc_get_hb_font_funcs (void)
281 {
282     static hb_font_funcs_t *funcs;
283
284     if (G_UNLIKELY (!funcs)) {
285           funcs = hb_font_funcs_create ();
286           hb_font_funcs_set_glyph_func (                       funcs, pango_fc_hb_font_get_glyph,                 NULL, NULL);
287           hb_font_funcs_set_glyph_h_advance_func (    funcs, pango_fc_hb_font_get_glyph_advance, NULL, NULL);
288           hb_font_funcs_set_glyph_v_advance_func (    funcs, pango_fc_hb_font_get_glyph_advance, NULL, NULL);
289           hb_font_funcs_set_glyph_h_origin_func (         funcs, pango_fc_hb_font_get_glyph_h_origin, NULL, NULL);
290           hb_font_funcs_set_glyph_v_origin_func (         funcs, pango_fc_hb_font_get_glyph_v_origin,  NULL, NULL);
291           hb_font_funcs_set_glyph_h_kerning_func (      funcs, pango_fc_hb_font_get_h_kerning,          NULL, NULL);
292           /* Don't need v_kerning. */
293           hb_font_funcs_set_glyph_extents_func (           funcs, pango_fc_hb_font_get_glyph_extents,  NULL, NULL);
294           hb_font_funcs_set_glyph_contour_point_func ( funcs, pango_fc_hb_font_get_glyph_contour_point, NULL, NULL);
295           /* Don't need glyph_name / glyph_from_name */
296     }
297
298     return funcs;
299 }
300