alexdrone / ios-fontawesome

NSString+FontAwesome
1.74k stars 254 forks source link

Is there any way to put font from storyboard? #50

Open sk29110 opened 9 years ago

sk29110 commented 9 years ago

A lot of times we have designer updating the asset and it would very nice if we can specified through the UI. However I only see the way to input is through the code. Let me know if anyone knows how to enter through ui.

Shinya

jasontrask commented 8 years ago

This is definitely possible @sk29110 (it doesn't require this library). All you need is the FontAwesome.ttf font installed in your Xcode project. Then, just create a label as normal, setting the font to 'FontAwesome' from the font list. Then simply pick your icon from the FontAwesome cheatsheet (http://fortawesome.github.io/Font-Awesome/cheatsheet/). Don't type the fa code, or the unicode string, just copy and paste the icon itself into the label text field for the label in Interface Builder. Voila. :)

acecilia commented 8 years ago

Hello: I am trying to use fontAwesome for a UIButton in interface builder with this library. The font appears in the font list in interface builder and it renders in xCode, but it is showing the typical question mark icon when running. Any workaround? Thanks!

kdawgwilk commented 7 years ago

@acecilia I think you might need to add an entry to your plist like mentioned here

amruta-sanap commented 6 years ago

I made entry in info.plist. And trying to put label text & copied icon from (http://fortawesome.github.io/Font-Awesome/cheatsheet)/. But it is showing question mark icon on run. What can be the issue?