Permalink
Browse files

Setting the default font only if font and fontFamily are not provided

  • Loading branch information...
nvh committed Mar 23, 2017
1 parent cd53f5d commit ee976ab90c8f0a39812d55bb517a09ffe562e3c7
Showing with 3 additions and 1 deletion.
  1. +3 −1 framer/TextLayer.coffee
View
@@ -38,7 +38,9 @@ class exports.TextLayer extends Layer
fontSize: 40
fontWeight: 400
lineHeight: 1.25
font: options.fontFamily ? @defaultFont()
if not options.font? and not options.fontFamily?
options.fontFamily = @defaultFont()
super options

0 comments on commit ee976ab

Please sign in to comment.