diff options
author | Jason Rumney <jasonr@gnu.org> | 2008-07-30 21:45:35 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2008-07-30 21:45:35 +0000 |
commit | bd187c49598c3a6db2ed0cbfe84a36171be7121d (patch) | |
tree | 9e01bcbe6374049c336c19cd1102d88e7d4e87b0 /src/w32uniscribe.c | |
parent | 00fade45540b2f21c3bfc040621909da1601cfe5 (diff) | |
download | emacs-bd187c49598c3a6db2ed0cbfe84a36171be7121d.tar.gz |
* 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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index da49036d010..e987b112a67 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; |