aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2008-02-24 22:04:07 +0000
committerJason Rumney2008-02-24 22:04:07 +0000
commit59c6b61cdaafdcc94db8561425aba146ac01e9dc (patch)
tree89b492e96da89432cdca03d19958e35d3f760e08
parent12f68d3fdf486789ceb06466de4c4d158da244e9 (diff)
downloademacs-59c6b61cdaafdcc94db8561425aba146ac01e9dc.tar.gz
emacs-59c6b61cdaafdcc94db8561425aba146ac01e9dc.zip
(enum_font_cb2): Don't use raster fonts for Unicode.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32fns.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c9b294ecf64..348dd716034 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-02-24 Jason Rumney <jasonr@gnu.org>
2
3 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
4
12008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) 52008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2 6
3 * xterm.c (x_set_offset): Don't change the gravity if 7 * xterm.c (x_set_offset): Don't change the gravity if
diff --git a/src/w32fns.c b/src/w32fns.c
index e02eff1b95d..ba1fe88f824 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5847,6 +5847,12 @@ enum_font_cb2 (lplf, lptm, FontType, lpef)
5847 && lpef->logfont.lfCharSet == DEFAULT_CHARSET 5847 && lpef->logfont.lfCharSet == DEFAULT_CHARSET
5848 && strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET)) != 0) 5848 && strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET)) != 0)
5849 return 1; 5849 return 1;
5850
5851 /* Reject raster fonts if we are looking for a unicode font. */
5852 if (charset
5853 && FontType == RASTER_FONTTYPE
5854 && strncmp (charset, "iso10646", 8) == 0)
5855 return 1;
5850 } 5856 }
5851 5857
5852 if (charset) 5858 if (charset)
@@ -5860,6 +5866,12 @@ enum_font_cb2 (lplf, lptm, FontType, lpef)
5860 Lisp_Object this_charset = Fcar (charset_list); 5866 Lisp_Object this_charset = Fcar (charset_list);
5861 charset = SDATA (this_charset); 5867 charset = SDATA (this_charset);
5862 5868
5869 /* Don't list raster fonts as unicode. */
5870 if (charset
5871 && FontType == RASTER_FONTTYPE
5872 && strncmp (charset, "iso10646", 8) == 0)
5873 continue;
5874
5863 /* List bold and italic variations if w32-enable-synthesized-fonts 5875 /* List bold and italic variations if w32-enable-synthesized-fonts
5864 is non-nil and this is a plain font. */ 5876 is non-nil and this is a plain font. */
5865 if (w32_enable_synthesized_fonts 5877 if (w32_enable_synthesized_fonts