зеркало из https://github.com/mozilla/gecko-dev.git
Don't let lfHeight go to 0 since Windows treats 0 as special (default). b=53995. Patch from David Gardiner <david.gardiner@unisa.edu.au>. r=emaijala sr=dbaron a=dbaron
This commit is contained in:
Родитель
55178329b0
Коммит
50e719ef1b
|
@ -501,9 +501,9 @@ nsFontMetricsWin::Destroy()
|
|||
}
|
||||
|
||||
// The following flag is not defined by MS in the vc include files
|
||||
// This flag is document in the following document
|
||||
// This flag is documented in the following document
|
||||
// HOWTO: Display Graphic Chars on Chinese & Korean Windows (Q171153)
|
||||
// http://support.microsoft.com/default.aspx?scid=kb;EN-US;q171153
|
||||
// http://support.microsoft.com/?kbid=171153
|
||||
// According to the document, this flag will only impact Korean and
|
||||
// Chinese window
|
||||
#define CLIP_TURNOFF_FONTASSOCIATION 0x40
|
||||
|
@ -516,6 +516,10 @@ nsFontMetricsWin::FillLogFont(LOGFONT* logFont, PRInt32 aWeight,
|
|||
app2dev = mDeviceContext->AppUnitsToDevUnits();
|
||||
logFont->lfHeight = - NSToIntRound(mFont.size * app2dev);
|
||||
|
||||
if (logFont->lfHeight == 0) {
|
||||
logFont->lfHeight = -1;
|
||||
}
|
||||
|
||||
// Quick return if we came here just to compute the font size
|
||||
if (aSizeOnly) return;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче