Bug 248837 - font sizes less than 1px show up as 13px, r=sfraser, sr=dbaron

This commit is contained in:
pedemont%us.ibm.com 2004-07-28 22:00:17 +00:00
Родитель e6a59a9b47
Коммит 68b5461029
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;