I tried to write text on a label with different text sizes but unluckily did not get it done for a whole day...it is strange.
It always gives me: both of texts are 12 (small), or both of them are size 24 (big). Tried another one:
This one is not workable as well...
I tried to change the syntax many ways as I understand my syntax is wrong, but could not fix it. Please help.
B4X:
Dim cs As CSBuilder
cs.Initialize.Size(24).TypeFace(Typeface.FONTAWESOME).Append("(Chr(0xF028)" & CRLF).Pop.Pop
cs.Size(12).Typeface(Typeface.DEFAULT).Append("This is a test").PopAll
Label1.Text = cs
It always gives me: both of texts are 12 (small), or both of them are size 24 (big). Tried another one:
B4X:
Dim cs As CSBuilder
cs.Initialize.Size(24).TypeFace(Typeface.FONTAWESOME).Append("(Chr(0xF028)" & CRLF)
cs.Size(12).Typeface(Typeface.DEFAULT).Append("This is a test").Pop.Pop
Label1.Text = cs
This one is not workable as well...
B4X:
Dim cs As CSBuilder
cs.Initialize.TypeFace(Typeface.FONTAWESOME).Size(24).Append("(Chr(0xF028)" & CRLF).Pop.Pop
cs.Typeface(Typeface.CreateNew(Typeface.SANS_SERIF, Typeface.STYLE_NORMAL)).Size(12).Append("This is a test").PopAll
Label1.Text = cs
I tried to change the syntax many ways as I understand my syntax is wrong, but could not fix it. Please help.
Last edited: