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

This commit is contained in:
pavlov@pavlov.net 2007-11-06 20:53:47 -08:00
Родитель 144828f8e7
Коммит ddf6254d8f
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1222,6 +1222,11 @@ public:
// check the list of fonts // check the list of fonts
selectedFont = WhichFontSupportsChar(mGroup->GetFontList(), ch); 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 // otherwise search prefs
if (!selectedFont) { if (!selectedFont) {
/* first check with the script properties to see what they think */ /* first check with the script properties to see what they think */