Ti.UX.Templates icon indicating copy to clipboard operation
Ti.UX.Templates copied to clipboard

I can't get FontAwesome support.

Open clemblanco opened this issue 10 years ago • 3 comments

Dude, I can't get the FontAwesome support on my app using iconfont, iconlable and iconbutton widgets... I have the font file into assets/android/fonts and assets/iphone/fonts and I declared the font into the info.plist file for iOS...

Don't really see what's wrong. This is what I get for an iconbutton http://d.pr/i/Fxze.

clemblanco avatar Jul 10 '14 23:07 clemblanco

Ok forget it, I simply clear the build folder and now it's displaying it. Also I used the ttf instead of the otf. Not sure if this is meaningful. However I'm surprised to see the icon behind the text and centered for an iconlabel. Do I have to style it myself?

Cheers.

clemblanco avatar Jul 11 '14 07:07 clemblanco

Be sure to be using one of the supplied themes or copy the styles for the component from the theme/app.tss file

De: Clément Blanco [email protected] Responder a: "jaraen/Ti.UX.Templates" <reply+i-37615463-3960289a6a3b29e589538f61815684d1b5c7e016-627028@reply.gith ub.com> Fecha: viernes, 11 de julio de 2014 09:05 Para: "jaraen/Ti.UX.Templates" [email protected] Asunto: Re: [Ti.UX.Templates] I can't get FontAwesome support. (#5)

Ok forget it, I simply clear the build folder and now it's displaying it. Also I used the ttf instead of the otf. Not sure if this is meaningful. However I'm surprised to see the icon behind the text and centered for an iconlabel. Do I have to style it myself?

Cheers.

‹ Reply to this email directly or view it on GitHub https://github.com/jaraen/Ti.UX.Templates/issues/5#issuecomment-48700401 .

jaraen avatar Jul 11 '14 08:07 jaraen

Ok just figured out.

I think that it would be better to have the actual font file (.ttf or .otf) and the styles attached to the specific type of Widget into the widget folder itself. It would be more independant from the rest of your app and would make it easier to be integrated into a new app.

clemblanco avatar Jul 11 '14 08:07 clemblanco