mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
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:
parent
1f1c369c98
commit
2155e827d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user