AISAC
AISAC

Reputation: 931

Custom Font provided by Application does not work

I just uploaded a new group folder called Font which inside contains the .ttf font file. in the .plist file I just added the Font provided by Application key and in the string the name of the file correctly... I did check with :

for family: AnyObject in UIFont.familyNames() {
println("Font Family: \(family)")
for font: AnyObject in UIFont.fontNamesForFamilyName(family as NSString) {
    println("Font Name: \(font)")
} }

Anyhow still not showing me in the text custom font properties the new Font.

The folder and font fil + Info.plist

Copy Bundle ressources

Upvotes: 1

Views: 2462

Answers (1)

eemmrrkk
eemmrrkk

Reputation: 1710

I have just same error to custom fonts and when i try firstly I did not choose the Copy Items and Add to Target option . Then fonts did not work in my application .

I choose the all .otf and .ttf files and removed from the project and I tried again with copying and targetting items in project . Then it worked for me .

enter image description here

I hope this helps for your problem

Upvotes: 4

Related Questions