Commit 943f2093 authored by Jason Rumney's avatar Jason Rumney
Browse files

(w32font_open_internal): Determine if glyph indices are likely to work here.

parent e02d8ae7
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
......
......@@ -796,11 +796,16 @@ w32font_open_internal (f, font_entity, pixel_size, font_object)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment