LiveUI / Awesome

FontAwesome 6 Swift & SwiftUI implementation for iOS, tvOS & macOS
MIT License
97 stars 27 forks source link

Pro not working for me #14

Closed matt-matt1 closed 6 years ago

matt-matt1 commented 6 years ago

Inserted in AppDelegate: AwesomePro.loadFonts(from: Bundle.main) (as per instructions) and copied the font (4 x ttf) files to a folder named Fonts. (Names unchanged eg. fa-brands-400.ttf) (By dragging from finder into project) assets-fonts Then I used AwesomePro.light... in place were I had Awesome.regular... It threw an error, so I copied the font files to the official assets folder - still get the same error!

I ensured the files were fine by opening them with Apple's font book - they looked fine. Have I missed an important step? Or done a step incorrectly?

rafiki270 commented 6 years ago

Seems like you are moving them into an asset folder instead of the project itself

matt-matt1 commented 6 years ago

It still says ..Did you forget to call AwesomePro.loadFonts(from:)? I copied the files into the top of the project. (Tried as first files, last files - also tried in Pods > AwesomeEnum > Resources, - same error.) And I checked again that line is in didFinishLaunchingWithOptions. Tried using the "AwesomePro.regular.addressBook", because I know that works in the free Awesome... No matter what the same error appears.

rafiki270 commented 6 years ago

do you have the fonts in your info.plist file? Slack me if you'd like a faster response

http://bit.ly/2B0dEyt

matt-matt1 commented 6 years ago

Can you show what to write in Info.plist? Joined Slack, in LiveUI, ...

rafiki270 commented 6 years ago

https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app