Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get FontAwesome support. #5

Open
clemblanco opened this issue Jul 10, 2014 · 3 comments
Open

I can't get FontAwesome support. #5

clemblanco opened this issue Jul 10, 2014 · 3 comments

Comments

@clemblanco
Copy link

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
Copy link
Author

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.

@jaraen
Copy link
Owner

jaraen commented Jul 11, 2014

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
#5 (comment) .

@clemblanco
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants