Bug 388250 - Font size claims to be in points although is really in pixels (fix label to match the pseudo-reality). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=me, sr=smorgan

git-svn-id: svn://10.0.0.236/trunk@253356 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alqahira%ardisson.org
2008-08-02 23:04:12 +00:00
parent 0490bf5253
commit 3c8ef0a601

View File

@@ -561,7 +561,7 @@
NSString *fontName = [fontTypeDict objectForKey:@"fontfamily"];
int fontSize = [[fontSizeDict objectForKey:[self fontSizeType:fontType]] intValue];
displayString = [NSString stringWithFormat:@"%@, %dpt %@", fontName, fontSize, [self localizedStringForKey:@"Missing"]];
displayString = [NSString stringWithFormat:@"%@, %dpx %@", fontName, fontSize, [self localizedStringForKey:@"Missing"]];
font = [NSFont userFontOfSize:14.0];
// set the missing flag in the dict
@@ -577,7 +577,7 @@
}
else
{
displayString = [NSString stringWithFormat:@"%@, %dpt", [font familyName], (int)[font pointSize]];
displayString = [NSString stringWithFormat:@"%@, %dpx", [font familyName], (int)[font pointSize]];
// make sure we don't have a missing entry
[fontTypeDict removeObjectForKey:@"missing"];