iOS Question Object was not initialized (UIFont)

ilan

Expert
Licensed User
Longtime User
hi

i am trying to use a custom font but i am getting an error msg


in the main module i have added the font file name like this:

B4X:
#AppFont: stam.ttf

this is the Special folder screenshot:




in B4xMainPage i set the font like this:

B4X:
mainsettings.Font = Font.CreateNew2("GuttmanStam",22)

font name:



why is it not working?

any ideas?

thanx
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
I have used this code in post #6 to find the correct name of fonts and its works pretty well. I use windows.

It logs all the fonts names for you in Alphabetical Order. Since you know your font is Guttman Stam, you just head straight to G column, and when you find GuttmanRashiNormal, you will know its the correct name

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…