1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00

(add_opentype_font_name_to_list): Skip non unicode fonts.

This commit is contained in:
Jason Rumney 2008-06-10 22:14:00 +00:00
parent eee6de7323
commit 351ccb765f
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-06-10 Jason Rumney <jasonr@gnu.org>
* w32uniscribe.c (add_opentype_font_name_to_list): Skip non unicode
fonts.
2008-06-10 Chong Yidong <cyd@stupidchicken.com>
* xfns.c (Fx_font_dialog): New function.

View file

@ -485,6 +485,13 @@ add_opentype_font_name_to_list (logical_font, physical_font, font_type,
&& font_type != TRUETYPE_FONTTYPE)
return 1;
/* Skip fonts that have no unicode coverage. */
if (!physical_font->ntmFontSig.fsUsb[3]
&& !physical_font->ntmFontSig.fsUsb[2]
&& !physical_font->ntmFontSig.fsUsb[1]
&& !(physical_font->ntmFontSig.fsUsb[0] & 0x3fffffff))
return 1;
family = font_intern_prop (logical_font->elfLogFont.lfFaceName,
strlen (logical_font->elfLogFont.lfFaceName), 1);
if (! memq_no_quit (family, *list))