iOS Tutorial Custom Fonts

JanPRO

Well-Known Member
Licensed User
Longtime User
I tried to use apple's san francisco font, but I got the following error:
Object was not initialized (UIFont)

My code:
B4X:
#AppFont: SF-UI-Display-Thin.otf
label1.Font = Font.CreateNew2("SFUIDisplayThin",20)

Edit: I just checked Font.AvailableNames and saw that the correct name is "SFUIDisplay-Thin". Solved
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…