iOS Question Custom font error

gjoisa

Active Member
Licensed User
Longtime User
I followed every instruction while adding custom font . Still getting this error .
B4X:
Application_Start
Error occurred on line: 91 (Main)
Object was not initialized (UIFont)
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  Prashna              -[B4IObjectWrapper object] + 152
  Prashna              -[B4ICanvas DrawText::::::] + 236
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 284
  Prashna              +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
  Prashna              -[B4IShell runVoidMethod] + 232
  Prashna              -[B4IShell raiseEventImpl:method:args::] + 1792
 Prashna              -[B4IShellBI raiseEvent:event:params:] + 1560
 Prashna              __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1012
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 2272
 CoreFoundation       CFRunLoopRunSpecific + 552
 GraphicsServices     GSEventRunModal + 100
 UIKit                UIApplicationMain + 236
 Prashna              main + 124
 libdyld.dylib        <redacted> + 4
)
 

gjoisa

Active Member
Licensed User
Longtime User
This is the code in Region Project Attributes .
B4X:
#AppFont: arialuni.ttf
And this one is Sub Application_Start
B4X:
mfont = Font.CreateNew2("Arial Unicode MS",24)
tvRes.Font = mfont
 
Upvote 0
Top