aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32uniscribe.c
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2008-07-30 21:45:35 +0000
committerJason Rumney <[email protected]>2008-07-30 21:45:35 +0000
commitbd187c49598c3a6db2ed0cbfe84a36171be7121d (patch)
tree9e01bcbe6374049c336c19cd1102d88e7d4e87b0 /src/w32uniscribe.c
parent00fade45540b2f21c3bfc040621909da1601cfe5 (diff)
* w32font.h (struct w32font_info): Use unicode version of textmetrics.
* w32font.c (w32font_encode_char): Leave as unicode if in range. (w32font_open_internal): Get unicode version of textmetrics. Don't enable or disable glyph indices here. (w32font_open): Disable use of glyph indices. * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
Diffstat (limited to 'src/w32uniscribe.c')
-rw-r--r--src/w32uniscribe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c
index da49036d01..e987b112a6 100644
--- a/src/w32uniscribe.c
+++ b/src/w32uniscribe.c
@@ -135,6 +135,9 @@ uniscribe_open (f, font_entity, pixel_size)
/* Initialize the cache for this font. */
uniscribe_font->cache = NULL;
+ /* Uniscribe backend uses glyph indices. */
+ uniscribe_font->w32_font.glyph_idx = ETO_GLYPH_INDEX;
+
/* Mark the format as opentype */
uniscribe_font->w32_font.font.props[FONT_FORMAT_INDEX] = Qopentype;
uniscribe_font->w32_font.font.driver = &uniscribe_font_driver;