diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2019-07-27 13:45:00 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-27 13:45:00 +0000 |
commit | 0673d8017dcd0f0e9ce5ec98e8f34f6582ca56fc (patch) | |
tree | 5f44ce4fc272fb492cce632dce2c6568ff46d88f /pango/pango-impl-utils.h | |
parent | 70965b54ca6d27fe4635c39587cfb951c3657830 (diff) | |
download | pango-0673d8017dcd0f0e9ce5ec98e8f34f6582ca56fc.tar.gz |
PangoWin32: Use hb_font_get_nominal_glyph
Use hb_font_get_nominal_glyph in pango_win32_font_get_glyph_index
(deprecated), to better match what Pango is actually using internally.
Diffstat (limited to 'pango/pango-impl-utils.h')
-rw-r--r-- | pango/pango-impl-utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h index 378f14a1..92a1168e 100644 --- a/pango/pango-impl-utils.h +++ b/pango/pango-impl-utils.h @@ -159,7 +159,9 @@ static struct { static inline G_GNUC_UNUSED const char * pango_get_ignorable (gunichar ch) { - for (int i = 0; i < G_N_ELEMENTS (ignorables); i++) + int i; + + for (i = 0; i < G_N_ELEMENTS (ignorables); i++) { if (ch == ignorables[i].ch) return ignorables[i].nick; |