diff options
| author | Jason Rumney | 2008-05-29 16:57:00 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-05-29 16:57:00 +0000 |
| commit | ef8e283dd500fa3565915088549b2bc841d21b5f (patch) | |
| tree | 66e6c41d1c203825a8aba62b33796b90f9271ec9 /src | |
| parent | 891bd142e24cc64eabde86d038c80dab66e37d36 (diff) | |
| download | emacs-ef8e283dd500fa3565915088549b2bc841d21b5f.tar.gz emacs-ef8e283dd500fa3565915088549b2bc841d21b5f.zip | |
(add_font_entity_to_list): Allow non-opentype truetype fonts back
in the uniscribe backend, but disallow any font that has no
unicode subrange support.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32font.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c index 78f8049d851..7509a795432 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -1321,7 +1321,14 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam) | |||
| 1321 | Lisp_Object backend = match_data->opentype_only ? Quniscribe : Qgdi; | 1321 | Lisp_Object backend = match_data->opentype_only ? Quniscribe : Qgdi; |
| 1322 | 1322 | ||
| 1323 | if ((!match_data->opentype_only | 1323 | if ((!match_data->opentype_only |
| 1324 | || (physical_font->ntmTm.ntmFlags & NTMFLAGS_OPENTYPE)) | 1324 | || (((physical_font->ntmTm.ntmFlags & NTMFLAGS_OPENTYPE) |
| 1325 | || (font_type & TRUETYPE_FONTTYPE)) | ||
| 1326 | /* For the uniscribe backend, only consider fonts that claim | ||
| 1327 | to cover at least some part of Unicode. */ | ||
| 1328 | && (physical_font->ntmFontSig.fsUsb[3] | ||
| 1329 | || physical_font->ntmFontSig.fsUsb[2] | ||
| 1330 | || physical_font->ntmFontSig.fsUsb[1] | ||
| 1331 | || (physical_font->ntmFontSig.fsUsb[0] & 0x3fffffff)))) | ||
| 1325 | && logfonts_match (&logical_font->elfLogFont, &match_data->pattern) | 1332 | && logfonts_match (&logical_font->elfLogFont, &match_data->pattern) |
| 1326 | && font_matches_spec (font_type, physical_font, | 1333 | && font_matches_spec (font_type, physical_font, |
| 1327 | match_data->orig_font_spec, backend, | 1334 | match_data->orig_font_spec, backend, |