Hi community,
how can I use a font just installed on the system.
error Object was not initialized (UIFont)
how can I use a font just installed on the system.
error Object was not initialized (UIFont)
#AppFont: 28-Days-Later.ttf
#AppFont: a-song-for-jennifer-bold.ttf
#AppFont: a-song for-jennifer.ttf
Application_Start
Application_Active
Error occurred on line: 0 (classmenuday)
Object was not initialized (UIFont)
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
BarAndRestaurant -[B4IObjectWrapper object] + 180
BarAndRestaurant -[B4ILabelWrapper setFont:] + 116
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
BarAndRestaurant +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1928
BarAndRestaurant -[B4IShell runMethod:] + 496
BarAndRestaurant -[B4IShell raiseEventImpl:method:args::] + 1846
BarAndRestaurant -[B4IShellBI raiseEvent:event:params:] + 1280
BarAndRestaurant __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 712
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1512
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
BarAndRestaurant main + 116
libdyld.dylib <redacted> + 2
)
Note that the layout is not fully reloaded when the page is resized. Only views sizes and positions are set at that point. Other properties are ignored.Also as the layout is reloaded in page _resize (unless you turn it off) you need to re-apply the font there.
You are correct. There is a bug in AutoScaleAll that causes the designer font to be loaded. It will be fixed for the next update.
Note that you will still need to set the correct size in the designer.
Copying updated assets files (4)
Application_Start
Application_Active
Error occurred on line: 55 (first)
Object was not initialized (UIFont)
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
i -[B4IObjectWrapper object] + 180
i -[B4ITabBarItemItemWrapper SetFont:] + 132
i -[b4i_first _sethome::] + 752
i -[b4i_first _showpageme] + 1404
i -[b4i_main _t_tick] + 366
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
i +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1928
i -[B4IShell runMethod:] + 496
i -[B4IShell raiseEventImpl:method:args::] + 1846
i -[B4IShellBI raiseEvent:event:params:] + 1316
i __24-[B4ITimer startTicking]_block_invoke + 298
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 66
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 1606
libdispatch.dylib <redacted> + 212
libdispatch.dylib _dispatch_main_queue_callback_4CF + 396
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1512
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
i main + 116
libdyld.dylib <redacted> + 2
)
#AppFont: tahoma.ttf
Dim ta15 As Font
ta15 = Font.CreateNew2("tahoma",15)
Sub Setone(p As Page, title As String)
Dim tb As TabBarItem
tb.Initialize(title,LoadBitmap(File.DirAssets,"a.png"), Null)
tb.SetFont(ta15)
tb.SetTitleOffset(0, 0)
p.TabBarItem = tb
End Sub