iphone - UIFont Woes (some custom fonts loading, but other's are not) -


i'm having issue getting custom fonts load. followed advice in traditional, 400+ upvoted answer question, , worked 1 project perfectly. however, in different project working on have run issues loading uifont.

these issues similar issues found in post adding multiple fonts uiappfonts overrides each other. solution there there issues p-list parsing out names xml leading overwriting. have attempted test hypothesis of issue:

i listed fonts in p-list under

uiappfonts (which turns "fonts provided application") item 0 - merriweather-regular.ttf item 1 - opensans-regular.ttf item 2 - opensans-bold.ttf

the last of (opensans-bold) 1 loaded. have since tried moving items around no effect. have deleted opensans-bold.ttf p-list , project , tried running it. not "overwriting each other." of files copied bundle copy (another common error) , still, file registered opensans-bold in of views. i've deleted , added in... done traditional "weird xcode cause problem" bug testing , hasn't changed anything. have idea issue be?

thanks lot!

the answer font file name differs font name. if file name opensans-regular, need font name opensans when calling fontwithname:. why "opensans-regular" did not work (as not font name), whereas "opensans-bold" did (since name same file.)


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -