From 4109669284a6ae4bfccd381cf5f18f8a6fbf1fad Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 8 Aug 2012 22:31:33 -0600 Subject: [PATCH] Bold and italic fonts hose our width calculations --- spec/app/text-mate-theme-spec.coffee | 2 +- src/app/text-mate-theme.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/app/text-mate-theme-spec.coffee b/spec/app/text-mate-theme-spec.coffee index 174bb4f47..43c176174 100644 --- a/spec/app/text-mate-theme-spec.coffee +++ b/spec/app/text-mate-theme-spec.coffee @@ -54,7 +54,7 @@ describe "TextMateTheme", -> selector: ".invalid-deprecated" properties: 'color': "#D2A8A1" - 'font-style': 'italic' + # 'font-style': 'italic' 'text-decoration': 'underline' expect(rulesets[12]).toEqual diff --git a/src/app/text-mate-theme.coffee b/src/app/text-mate-theme.coffee index ed8a417ee..c7c3bd41b 100644 --- a/src/app/text-mate-theme.coffee +++ b/src/app/text-mate-theme.coffee @@ -89,8 +89,8 @@ class TextMateTheme if fontStyle fontStyles = fontStyle.split(/\s+/) - properties['font-weight'] = 'bold' if _.contains(fontStyles, 'bold') - properties['font-style'] = 'italic' if _.contains(fontStyles, 'italic') + # properties['font-weight'] = 'bold' if _.contains(fontStyles, 'bold') + # properties['font-style'] = 'italic' if _.contains(fontStyles, 'italic') properties['text-decoration'] = 'underline' if _.contains(fontStyles, 'underline') properties['color'] = @translateColor(foreground) if foreground