     
     public var style: Style? {
         didSet{
-            self.font=style?.font()
+            self.font=style?.font
         }
     }
     


public class Style{
    
    /// The definition is a copy of the contents of the plist fragment
    private var definition: [String:AnyObject]
    
    /// The name of the style
    public var name: String
    
    /// The name of the parent style - used internally to resolve the hierarchy
    var parentName: String?
    
    /// The parent style object - populated by the stylesheet after creation. Properties of the parent will be reflected unless overriden by the child...
    public var parent: Style?
    
    /**
    The designated initializer

    @param dictionary The fragment of the plist containing the definition of the style
    */
    
    public init(name: String, definition : [String:AnyObject]){

        self.name=name
        self.parentName=definition["parent"] as? String
        
        // Set properties based on what was in the plist fragment
        
        if let familyName = definition["family"] as? String {
            self.family=familyName
        }
        
        if let faceName = definition["face"] as? String {
            self.face=faceName
        }
        
        if let sizeNum = definition["size"] as? CGFloat {
            self.size=sizeNum
        }

        if let shouldScaleVal = definition["shouldScale"] as? Bool {
            self.shouldScale=shouldScaleVal
        }
    }
    



    
    
    /// Check for whether the parent relationship for this style is cyclical (which would be a bad thing)
