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.
This commit is contained in:
Jon Rohan
2013-02-01 11:09:12 -05:00
parent 801283d022
commit f62e49d2f4
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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