зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 5308. We now ignore vertical fonts (whose names start with @)
in the global font enumerator, so that we don't pick those up for Japanese.
This commit is contained in:
Родитель
dcb4b5045a
Коммит
61cd270d46
|
@ -607,6 +607,11 @@ static int CALLBACK enumProc(const LOGFONT* logFont, const TEXTMETRIC* metrics,
|
|||
return 1;
|
||||
}
|
||||
|
||||
// XXX ignore vertical fonts
|
||||
if (logFont->lfFaceName[0] == '@') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// XXX make this smarter: don't add font to list if we already have a font
|
||||
// with the same font signature -- erik
|
||||
if (nsFontMetricsWin::gGlobalFontsCount == gGlobalFontsAlloc) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче