+2008-05-27 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_open_internal): Determine if glyph indices
+ are likely to work here.
+
2008-05-27 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
sizeof (TEXTMETRIC));
else
metrics = NULL;
+
+ /* If it supports outline metrics, it should support Glyph Indices. */
+ w32_font->glyph_idx = ETO_GLYPH_INDEX;
}
- if (!metrics)
- GetTextMetrics (dc, &w32_font->metrics);
- w32_font->glyph_idx = ETO_GLYPH_INDEX;
+ if (!metrics)
+ {
+ GetTextMetrics (dc, &w32_font->metrics);
+ w32_font->glyph_idx = 0;
+ }
w32_font->cached_metrics = NULL;
w32_font->n_cache_blocks = 0;