bug 399369. disable font fallback when a character is in the PUA. r=smontagu

This commit is contained in:
pavlov%pavlov.net 2007-11-07 04:53:47 +00:00
Родитель 79a2147e5e
Коммит 2b21e9717e
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1222,6 +1222,11 @@ public:
// check the list of fonts
selectedFont = WhichFontSupportsChar(mGroup->GetFontList(), ch);
// don't look in other fonts if the character is in a Private Use Area
if ((ch >= 0xE000 && ch <= 0xF8FF) ||
(ch >= 0xF0000 && ch <= 0x10FFFD))
return selectedFont;
// otherwise search prefs
if (!selectedFont) {
/* first check with the script properties to see what they think */