aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2008-05-27 08:30:02 +0000
committerJason Rumney2008-05-27 08:30:02 +0000
commit943f2093bfdf3b7e8d8cbe2f6e67c03ff76ae8f8 (patch)
tree9c1e177e61f018bb63c3a4e1b2c48c4712adc7e2
parente02d8ae787fd5d10616ba5cea647cd1247c28405 (diff)
downloademacs-943f2093bfdf3b7e8d8cbe2f6e67c03ff76ae8f8.tar.gz
emacs-943f2093bfdf3b7e8d8cbe2f6e67c03ff76ae8f8.zip
(w32font_open_internal): Determine if glyph indices are likely to work here.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32font.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fdcbc3469c7..e9047f1a701 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-05-27 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (w32font_open_internal): Determine if glyph indices
4 are likely to work here.
5
12008-05-27 Chong Yidong <cyd@stupidchicken.com> 62008-05-27 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to 8 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
diff --git a/src/w32font.c b/src/w32font.c
index 6639825e1af..413c103d6e4 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -796,11 +796,16 @@ w32font_open_internal (f, font_entity, pixel_size, font_object)
796 sizeof (TEXTMETRIC)); 796 sizeof (TEXTMETRIC));
797 else 797 else
798 metrics = NULL; 798 metrics = NULL;
799
800 /* If it supports outline metrics, it should support Glyph Indices. */
801 w32_font->glyph_idx = ETO_GLYPH_INDEX;
799 } 802 }
800 if (!metrics)
801 GetTextMetrics (dc, &w32_font->metrics);
802 803
803 w32_font->glyph_idx = ETO_GLYPH_INDEX; 804 if (!metrics)
805 {
806 GetTextMetrics (dc, &w32_font->metrics);
807 w32_font->glyph_idx = 0;
808 }
804 809
805 w32_font->cached_metrics = NULL; 810 w32_font->cached_metrics = NULL;
806 w32_font->n_cache_blocks = 0; 811 w32_font->n_cache_blocks = 0;