From 466cdcd0f90486ac6de59ef78e51229a7819704f Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Thu, 17 Apr 2003 21:16:25 +0000 Subject: [PATCH] Errata to bug 116030. Fix in the detection of the language group of a character to pick better fallback fonts, b=184848, r=smontagu, sr=bzbarsky --- gfx/src/windows/nsFontMetricsWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/windows/nsFontMetricsWin.cpp b/gfx/src/windows/nsFontMetricsWin.cpp index dde883b1e20..bc8a841f39e 100644 --- a/gfx/src/windows/nsFontMetricsWin.cpp +++ b/gfx/src/windows/nsFontMetricsWin.cpp @@ -3260,7 +3260,7 @@ nsFontMetricsWin::FindPrefFont(HDC aDC, PRUint32 aChar) // figure out which one comes first. As a final fallback, unicode preference is always tried. PRUint32 unicodeRange = FindCharUnicodeRange(aChar); - if (unicodeRange > kRangeSpecificItemNum) { + if (unicodeRange < kRangeSpecificItemNum) { // a single language is identified AppendGenericFontFromPref(font.name, LangGroupFromUnicodeRange(unicodeRange), NS_ConvertUCS2toUTF8(mGeneric).get());