aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2008-02-25 00:21:57 +0000
committerMiles Bader2008-02-25 00:21:57 +0000
commitffe832ea680b4820f5ff399191f7f2d41350ee2e (patch)
treedd42d69046f8209a8e2c89f54409ac7a0ce9bf7d /src
parentd8891294b81672883c21b6b957e5a17b6990b8e4 (diff)
parentff20fdbbd2bbfa87a058c182768e3731025013ca (diff)
downloademacs-ffe832ea680b4820f5ff399191f7f2d41350ee2e.tar.gz
emacs-ffe832ea680b4820f5ff399191f7f2d41350ee2e.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1081
Diffstat (limited to 'src')
-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 928a2d9fd42..71026e1d77e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-02-25 Jason Rumney <jasonr@gnu.org>
2
3 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
4
12008-02-24 Dan Nicolaescu <dann@ics.uci.edu> 52008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * s/vms4-0.h: 7 * s/vms4-0.h:
diff --git a/src/w32fns.c b/src/w32fns.c
index 838367fe399..ae6cc88ea6b 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6063,6 +6063,12 @@ enum_font_cb2 (lplf, lptm, FontType, lpef)
6063 && lpef->logfont.lfCharSet == DEFAULT_CHARSET 6063 && lpef->logfont.lfCharSet == DEFAULT_CHARSET
6064 && strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET, NULL)) != 0) 6064 && strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET, NULL)) != 0)
6065 return 1; 6065 return 1;
6066
6067 /* Reject raster fonts if we are looking for a unicode font. */
6068 if (charset
6069 && FontType == RASTER_FONTTYPE
6070 && strncmp (charset, "iso10646", 8) == 0)
6071 return 1;
6066 } 6072 }
6067 6073
6068 if (charset) 6074 if (charset)
@@ -6079,6 +6085,12 @@ enum_font_cb2 (lplf, lptm, FontType, lpef)
6079 Lisp_Object this_charset = Fcar (charset_list); 6085 Lisp_Object this_charset = Fcar (charset_list);
6080 charset = SDATA (this_charset); 6086 charset = SDATA (this_charset);
6081 6087
6088 /* Don't list raster fonts as unicode. */
6089 if (charset
6090 && FontType == RASTER_FONTTYPE
6091 && strncmp (charset, "iso10646", 8) == 0)
6092 continue;
6093
6082 enum_font_maybe_add_to_list (lpef, &(lplf->elfLogFont), 6094 enum_font_maybe_add_to_list (lpef, &(lplf->elfLogFont),
6083 charset, width); 6095 charset, width);
6084 6096