From f62e49d2f4232153d13dc03b34f6022aa1efa8f8 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 1 Feb 2013 11:09:12 -0500 Subject: [PATCH] Adding back the font-weight font-style to tmThemes We can add this back now because in the default tests we're using a true monospaced font, not the fake monospace font Inconsolata. --- 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 5191ced55..e1c04ec90 100644 --- a/spec/app/text-mate-theme-spec.coffee +++ b/spec/app/text-mate-theme-spec.coffee @@ -42,7 +42,7 @@ describe "TextMateTheme", -> selector: ".invalid.deprecated" properties: 'color': "#D2A8A1" - # 'font-style': 'italic' + 'font-style': 'italic' 'text-decoration': 'underline' expect(rulesets[13]).toEqual diff --git a/src/app/text-mate-theme.coffee b/src/app/text-mate-theme.coffee index ee78cdea7..cb1d3558a 100644 --- a/src/app/text-mate-theme.coffee +++ b/src/app/text-mate-theme.coffee @@ -75,8 +75,8 @@ class TextMateTheme extends Theme 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