Refs #1266. Still convert default font size in nib2cib even if the default font is bold.

(E.g. Lucida Grande 13 Bold should become Arial 12 Bold, not Arial 13 Bold.)
This commit is contained in:
Alexander Ljungberg committed 2011-05-17 01:16:03 -04:00
1 parent 86f3cc1831
commit f414ed2e8d
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ var IBDefaultFontFace = @"Lucida Grande",
if (size === IBDefaultFontSize && !bold && !italic)
return nil;
else
return [[CPFont alloc] _initWithName:[CPFont systemFontFace] size:size bold:bold italic:italic];
return [[CPFont alloc] _initWithName:[CPFont systemFontFace] size:(size == IBDefaultFontSize ? CPFontDefaultSystemFontSize : size) bold:bold italic:italic];
}
return [aFont copy];