         self.mutableTextFontAttributes[NSFontAttributeName] = UIFont(name: "googleicon" as String, size: size)!
     }
     
-    func addAttribute(attributeName:NSObject, value:AnyObject) {
+    public func addAttribute(attributeName:NSObject, value:AnyObject) {
         self.mutableTextFontAttributes[attributeName as NSObject] = value
     }
     
-    func imageWithSize(size:CGSize)->UIImage {
+    public func imageWithSize(size:CGSize)->UIImage {
         let imageRect = CGRectMake(0,0,size.width, size.height)
         
         UIGraphicsBeginImageContextWithOptions(size, false, 0)

    var text:NSString = ""
    var mutableTextFontAttributes = [NSObject : AnyObject]()
    
    init(text:NSString, size:CGFloat) {
        self.text = text
        
        self.mutableTextFontAttributes = [NSObject : AnyObject]()

private class FontLoader {
    class func loadFont(name: String) {
        
        let bundlePath = NSBundle(forClass:self.dynamicType).pathForResource("MaterialDesignIcon", ofType:"bundle")
        
        let ttfPath = NSBundle(forClass:self.dynamicType).pathForResource(name, ofType:"ttf")
        
        let fileHandle : NSFileHandle = NSFileHandle(forReadingAtPath: ttfPath!)!
        let data : NSData = fileHandle.readDataToEndOfFile()
        
        let provider = CGDataProviderCreateWithCFData(data)
