From 2b21e9717e93c918dc19080fa329f282f470267f Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Wed, 7 Nov 2007 04:53:47 +0000 Subject: [PATCH] bug 399369. disable font fallback when a character is in the PUA. r=smontagu --- gfx/thebes/src/gfxWindowsFonts.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/thebes/src/gfxWindowsFonts.cpp b/gfx/thebes/src/gfxWindowsFonts.cpp index 062c9d939d6..320a5dbaa81 100644 --- a/gfx/thebes/src/gfxWindowsFonts.cpp +++ b/gfx/thebes/src/gfxWindowsFonts.cpp @@ -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 */