mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 16:12:58 +00:00
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:
1 parent
86f3cc1831
commit
f414ed2e8d
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user