diff options
| author | Jason Rumney | 2008-12-10 16:10:36 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-12-10 16:10:36 +0000 |
| commit | 9d32f818993bc689500a27b732fe3318d903a415 (patch) | |
| tree | 615dbb73b28652ce6505a8b24861d9ede7eee4cc | |
| parent | 174f1c745dcabc9dbd2650b04eccce74ebfe8928 (diff) | |
| download | emacs-9d32f818993bc689500a27b732fe3318d903a415.tar.gz emacs-9d32f818993bc689500a27b732fe3318d903a415.zip | |
(add_font_entity_to_list): Limit unicode-sip fonts to those that
contain characters beyond the bmp.
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/w32font.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5b611cdbbe7..3f4eafa2c36 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | * w32font.c (Qcham): New symbol. | 3 | * w32font.c (Qcham): New symbol. |
| 4 | (font_supported_scripts): Add cham, and comments for other new | 4 | (font_supported_scripts): Add cham, and comments for other new |
| 5 | scripts in bitfield from OpenType spec. | 5 | scripts in bitfield from OpenType spec. |
| 6 | (add_font_entity_to_list): Limit unicode-sip fonts to those that | ||
| 7 | contain characters beyond the bmp. | ||
| 6 | 8 | ||
| 7 | 2008-12-10 Kenichi Handa <handa@m17n.org> | 9 | 2008-12-10 Kenichi Handa <handa@m17n.org> |
| 8 | 10 | ||
| @@ -11179,7 +11181,6 @@ | |||
| 11179 | 11181 | ||
| 11180 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map | 11182 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map |
| 11181 | correctly. | 11183 | correctly. |
| 11182 | |||
| 11183 | 2008-02-01 Dave Love <fx@gnu.org> | 11184 | 2008-02-01 Dave Love <fx@gnu.org> |
| 11184 | 11185 | ||
| 11185 | * fns.c (Flanginfo): Call synchronize_system_time_locale. | 11186 | * fns.c (Flanginfo): Call synchronize_system_time_locale. |
diff --git a/src/w32font.c b/src/w32font.c index 2a4dcb4ac5c..65e6c5448a6 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -1403,11 +1403,14 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam) | |||
| 1403 | ANSI and DEFAULT charsets, as most unicode fonts will | 1403 | ANSI and DEFAULT charsets, as most unicode fonts will |
| 1404 | contain one of those plus others. */ | 1404 | contain one of those plus others. */ |
| 1405 | if ((EQ (spec_charset, Qiso10646_1) | 1405 | if ((EQ (spec_charset, Qiso10646_1) |
| 1406 | || EQ (spec_charset, Qunicode_bmp) | 1406 | || EQ (spec_charset, Qunicode_bmp)) |
| 1407 | || EQ (spec_charset, Qunicode_sip)) | ||
| 1408 | && logical_font->elfLogFont.lfCharSet != DEFAULT_CHARSET | 1407 | && logical_font->elfLogFont.lfCharSet != DEFAULT_CHARSET |
| 1409 | && logical_font->elfLogFont.lfCharSet != ANSI_CHARSET) | 1408 | && logical_font->elfLogFont.lfCharSet != ANSI_CHARSET) |
| 1410 | return 1; | 1409 | return 1; |
| 1410 | /* unicode-sip fonts must contain characters beyond the BMP. */ | ||
| 1411 | else if (EQ (spec_charset, Qunicode_sip) | ||
| 1412 | && !(physical_font->ntmFontSig.fsUsb[1] & 0x02000000)) | ||
| 1413 | return 1; | ||
| 1411 | /* If registry was specified, but did not map to a windows | 1414 | /* If registry was specified, but did not map to a windows |
| 1412 | charset, only report fonts that have unknown charsets. | 1415 | charset, only report fonts that have unknown charsets. |
| 1413 | This will still report fonts that don't match, but at | 1416 | This will still report fonts that don't match, but at |