iOS Question CSBuilder Error

ykucuk

Well-Known Member
Licensed User
Longtime User
Hi,

im trying to combine material fonts with my main font.

There is error. Could you help me ?

B4X:
Dim cs As CSBuilder

cs.Initialize.Font(Font.CreateMaterialIcons(18)).VerticalAlign(5dip).Append(Chr(0xE531)).Font(DefaultFont).Append(txt).PopAll


lbl.Text =cs
 

Attachments

  • Screen Shot 2018-08-04 at 00.10.13.png
    Screen Shot 2018-08-04 at 00.10.13.png
    474.3 KB · Views: 183

ykucuk

Well-Known Member
Licensed User
Longtime User

I read the tutorial and still doesn't work well even with code from the tutorial.

I think I am missing something out. Could you check the attached file?

B4X:
Dim cs As CSBuilder

cs.Initialize.Alignment("ALIGN_CENTER")

cs.Append("Apple: ").Font(Font.CreateMaterialIcons(20)).Color(0xFF777777).Append(Chr(0xEB3C)).Pop.Pop.Append(CRLF)

cs.Append("Android: ").Font(Font.CreateFontAwesome(20)).Color(0xFF057916).Append(Chr(0xF170)).Pop.Pop

cs.PopAll

LabelLocation.AttributedText = cs
 

Attachments

  • Screen Shot 2018-08-15 at 22.58.24.png
    Screen Shot 2018-08-15 at 22.58.24.png
    172.6 KB · Views: 176
Upvote 0
Top