Force average character height to be at least 1 twip instead of allowing it to round off to 0 for extremely small fonts on WIN32. b=38188 r=rods@netscape.com

This commit is contained in:
kmcclusk%netscape.com 2000-05-10 22:04:40 +00:00
parent 1f1c369c98
commit 2155e827d9

View File

@ -2604,7 +2604,7 @@ HDC dc1 = NULL;
mMaxAscent = NSToCoordRound(metrics.tmAscent * dev2app);
mMaxDescent = NSToCoordRound(metrics.tmDescent * dev2app);
mMaxAdvance = NSToCoordRound(metrics.tmMaxCharWidth * dev2app);
mAveCharWidth = NSToCoordRound(metrics.tmAveCharWidth * dev2app);
mAveCharWidth = PR_MAX(1, NSToCoordRound(metrics.tmAveCharWidth * dev2app));
// Cache the width of a single space.
SIZE size;