# HG changeset patch # User Jason Rumney # Date 1228926099 0 # Node ID 5d74aae1daadeae6205a9cecedfbb8b800f2ca3e # Parent 80d774f2a5f563079d839e931f31e143c77c9999 Improve comments for last change. diff -r 80d774f2a5f5 -r 5d74aae1daad src/w32font.c --- a/src/w32font.c Wed Dec 10 16:10:36 2008 +0000 +++ b/src/w32font.c Wed Dec 10 16:21:39 2008 +0000 @@ -1407,7 +1407,8 @@ && logical_font->elfLogFont.lfCharSet != DEFAULT_CHARSET && logical_font->elfLogFont.lfCharSet != ANSI_CHARSET) return 1; - /* unicode-sip fonts must contain characters beyond the BMP. */ + /* unicode-sip fonts must contain characters beyond the BMP, + so look for bit 57 (surrogates) in the Unicode subranges. */ else if (EQ (spec_charset, Qunicode_sip) && !(physical_font->ntmFontSig.fsUsb[1] & 0x02000000)) return 1;