diff src/w32uniscribe.c @ 97135:09abb4487286

* 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.
author Jason Rumney <jasonr@gnu.org>
date Wed, 30 Jul 2008 21:45:35 +0000
parents 25e89f1f3bf6
children e33a2e6c1dab
line wrap: on
line diff
--- a/src/w32uniscribe.c	Wed Jul 30 20:29:54 2008 +0000
+++ b/src/w32uniscribe.c	Wed Jul 30 21:45:35 2008 +0000
@@ -135,6 +135,9 @@
   /* 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;