Hi!
As requested, I open here a new thread about this issue.
I'm using a custom font on B4i v2.00 and I'm creating all the labels via code without designer.
#AppFont: lcddot.ttf in the Project Attributes
later in the code
Label1.initialize("Label1")
Label1.Text = "Test"
Label1.TextColor = Colors.White
Label1.TextAlignment = Label1.ALIGNMENT_LEFT
Label1.Font = Font.CreateNew2("LCDDot",10)
MyPage.RootPanel.AddView(Label1, 0dip, 0dip, 100dip, 100dip)
the createnew2 procedure doesn't work.
if I use Label1.Font = Font.CreateNew(10) everything works fine.
As attachment, you'll find the font I use.
As requested, I open here a new thread about this issue.
I'm using a custom font on B4i v2.00 and I'm creating all the labels via code without designer.
#AppFont: lcddot.ttf in the Project Attributes
later in the code
Label1.initialize("Label1")
Label1.Text = "Test"
Label1.TextColor = Colors.White
Label1.TextAlignment = Label1.ALIGNMENT_LEFT
Label1.Font = Font.CreateNew2("LCDDot",10)
MyPage.RootPanel.AddView(Label1, 0dip, 0dip, 100dip, 100dip)
the createnew2 procedure doesn't work.
if I use Label1.Font = Font.CreateNew(10) everything works fine.
As attachment, you'll find the font I use.