 
 class Text: Item {
     static var fonts: [String: String] = Dictionary()
-    
+    static var defaultFont = "Helvetica"
+
     override class func register() {
         onAction(.createText) {
             save(item: Text())
         }
-        
+
         onAction(.setText) {
             (item: Text, val: String) in
             item.labelView.text = val
         }
-        
+
         onAction(.setTextWrap) {
-            (item: Text, val: Bool) in ()
+            (item: Text, val: Bool) in
+            item.wrap = val
         }
-        
+
         onAction(.updateTextContentSize) {
             (item: Text) in
             item.pushContentSize()
         }
-        
+
         onAction(.setTextColor) {
             (item: Text, val: UIColor) in
             item.labelView.textColor = val
         }
-        
+
         onAction(.setTextLineHeight) {
             (item: Text, val: CGFloat) in
             item.lineHeight = val
         }
-        
+
         onAction(.setTextFontFamily) {
             (item: Text, val: String) in
-            item.fontFamily = val
+            item.fontFamily = fonts[val] ?? defaultFont
         }
-        
+
         onAction(.setTextFontPixelSize) {
             (item: Text, val: CGFloat) in
             item.fontPixelSize = val
         }
-        
+
         onAction(.setTextFontWordSpacing) {
             (item: Text, val: CGFloat) in ()
         }
-        
+
         onAction(.setTextFontLetterSpacing) {
             (item: Text, val: CGFloat) in ()
         }
-        
+
         onAction(.setTextAlignmentHorizontal) {
             (item: Text, val: String) in
             switch val {

    }

    private func pushContentSize() {
        pushAction(.textSize, labelView.intrinsicContentSize.width, labelView.intrinsicContentSize.height)
    }
}


    var labelView: UILabel {
        return view as! UILabel
    }

    override init(view: UIView = UILabel()) {
        super.init(view: view)
        labelView.lineBreakMode = .byWordWrapping
        labelView.numberOfLines = 0
        updateFont()
    }

    private func updateFont() {
        labelView.font = UIFont(name: fontFamily, size: fontPixelSize)
    }

    static func loadFont(name: String, source: String) {
        let postScriptName = Config.fonts[source]

