зеркало из https://github.com/mozilla/gecko-dev.git
Bug 248837 - font sizes less than 1px show up as 13px, r=sfraser, sr=dbaron
This commit is contained in:
Родитель
e6a59a9b47
Коммит
68b5461029
|
@ -87,6 +87,7 @@ nsFontUtils::GetNativeTextStyle(nsIFontMetrics& inMetrics,
|
|||
float dev2app;
|
||||
dev2app = inDevContext.DevUnitsToAppUnits();
|
||||
short textSize = float(aFont->size) / dev2app;
|
||||
textSize = PR_MAX(1, textSize);
|
||||
|
||||
if (textSize < 9 && !nsFontUtils::DisplayVerySmallFonts())
|
||||
textSize = 9;
|
||||
|
|
Загрузка…
Ссылка в новой задаче