From f414ed2e8d4c36beef8ec1610ceaf78849e24954 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Tue, 17 May 2011 01:16:03 -0400 Subject: [PATCH] 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.) --- Tools/nib2cib/NSFont.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/nib2cib/NSFont.j b/Tools/nib2cib/NSFont.j index b4896432a..90a8004d6 100644 --- a/Tools/nib2cib/NSFont.j +++ b/Tools/nib2cib/NSFont.j @@ -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];