summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-05-17 22:40:40 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-05-17 22:40:40 -0400
commit1bb3e428528b307a78ac24f518076c2c6fcf963a (patch)
treeb2aa4325c8943e08e83ff98054a4a506532ee522 /modules
parentf5d8808961987c17d02570fca3bd58468fe82c0d (diff)
downloadpango-1bb3e428528b307a78ac24f518076c2c6fcf963a.tar.gz
[HB] Update to newer vertical API
Diffstat (limited to 'modules')
-rw-r--r--modules/basic/basic-fc.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index e44c6fec..1a5f4cb8 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -130,11 +130,10 @@ pango_fc_hb_font_get_glyph (hb_font_t *font, void *font_data,
}
static hb_bool_t
-pango_fc_hb_font_get_contour_point (hb_font_t *font, void *font_data,
- hb_codepoint_t glyph, unsigned int point_index,
- hb_bool_t *vertical,
- hb_position_t *x, hb_position_t *y,
- void *user_data G_GNUC_UNUSED)
+pango_fc_hb_font_get_glyph_contour_point (hb_font_t *font, void *font_data,
+ hb_codepoint_t glyph, unsigned int point_index,
+ hb_position_t *x, hb_position_t *y,
+ void *user_data G_GNUC_UNUSED)
{
return FALSE;
#if 0
@@ -179,7 +178,6 @@ pango_fc_hb_font_get_glyph_h_advance (hb_font_t *font, void *font_data,
static hb_bool_t
pango_fc_hb_font_get_glyph_extents (hb_font_t *font, void *font_data,
hb_codepoint_t glyph,
- hb_bool_t *vertical,
hb_glyph_extents_t *extents,
void *user_data G_GNUC_UNUSED)
{
@@ -224,10 +222,11 @@ pango_fc_get_hb_font_funcs (void)
if (G_UNLIKELY (!funcs)) {
funcs = hb_font_funcs_create ();
hb_font_funcs_set_glyph_func (funcs, pango_fc_hb_font_get_glyph, NULL, NULL);
+ /* XXX vertical */
hb_font_funcs_set_glyph_h_advance_func (funcs, pango_fc_hb_font_get_glyph_h_advance, NULL, NULL);
hb_font_funcs_set_glyph_extents_func (funcs, pango_fc_hb_font_get_glyph_extents, NULL, NULL);
- hb_font_funcs_set_contour_point_func (funcs, pango_fc_hb_font_get_contour_point, NULL, NULL);
- hb_font_funcs_set_h_kerning_func (funcs, pango_fc_hb_font_get_h_kerning, NULL, NULL);
+ hb_font_funcs_set_glyph_contour_point_func (funcs, pango_fc_hb_font_get_glyph_contour_point, NULL, NULL);
+ hb_font_funcs_set_glyph_h_kerning_func (funcs, pango_fc_hb_font_get_h_kerning, NULL, NULL);
}
return funcs;