summaryrefslogtreecommitdiff
path: root/pango/pango-ot-info.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-05-02 20:47:34 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-05-02 20:47:34 -0400
commit706c0c8cad246d0b8f52a71e166e08f34edeb7f3 (patch)
treea4b4a91a445b4c63da1a9f9982ffc9a48903342b /pango/pango-ot-info.c
parentc592e19bb9235b6bd51293bfd25b8d40d1ae3aa7 (diff)
downloadpango-706c0c8cad246d0b8f52a71e166e08f34edeb7f3.tar.gz
[HB] Adapt to hb_font_create() taking an input face
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r--pango/pango-ot-info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 5ad5842c..8a7ffe4f 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -392,7 +392,7 @@ _pango_ot_info_position (const PangoOTInfo *info,
hb_glyph_position_t *hb_position;
/* XXX reuse hb_font */
- hb_font = hb_font_create ();
+ hb_font = hb_font_create (info->hb_face);
hb_font_set_scale (hb_font,
(((guint64) info->face->size->metrics.x_scale * info->face->units_per_EM) >> 12),
-(((guint64) info->face->size->metrics.y_scale * info->face->units_per_EM) >> 12));
@@ -440,7 +440,7 @@ _pango_ot_info_position (const PangoOTInfo *info,
lookup_indexes);
for (j = 0; j < lookup_count; j++)
- hb_ot_layout_position_lookup (hb_font, info->hb_face,
+ hb_ot_layout_position_lookup (hb_font,
buffer->buffer,
lookup_indexes[j],
rule->property_bit);