Not adding a font family when the user doesn't have it set

This commit is contained in:
Jon Rohan
2013-01-31 10:19:41 -05:00
parent 45dfea0559
commit 11c0637220
2 changed files with 4 additions and 5 deletions

View File

@@ -14,7 +14,6 @@ _ = require 'underscore'
module.exports =
class Editor extends View
@configDefaults:
fontFamily: "Inconsolata, Monaco, Courier"
fontSize: 20
showInvisibles: false
autosave: false
@@ -697,6 +696,7 @@ class Editor extends View
parseInt(@css("font-size"))
setFontFamily: (fontFamily) ->
return if fontFamily == undefined
headTag = $("head")
styleTag = headTag.find("style.font-family")
if styleTag.length == 0