Y ykucuk Well-Known Member Licensed User Longtime User Apr 14, 2023 #1 Hello, I have a custom icon font created on fontello.com. While I can use this font without issues in CS Builder, I'm having trouble using it in BCTextengine. If you look at the attached image, you can better understand my problem. What am I doing wrong? CS Builder Code: B4X: cs.Alignment(Align).font( xui.CreateFont2(Font.CreateNew2(Main.FontIcon,FontSize),FontSize)).Color(Color).Append(Chr(0xe823)).popall BCTextengine Code: B4X: MyIconFont = xui.CreateFont(Font.CreateNew2(Main.FontIcon,62),62) BBCodeView1.Text = _ $"[Alignment=Center][TextSize=30][b][Font=MyFont] My Header [/Font][/b][/TextSize][TextSize=30][b][Font=MyIconFont]${Chr(0xe823)}[/Font][/b][/TextSize][/Alignment] "$ Attachments Screenshot 2023-04-13 at 9.50.20 PM.png 34.8 KB · Views: 131
Hello, I have a custom icon font created on fontello.com. While I can use this font without issues in CS Builder, I'm having trouble using it in BCTextengine. If you look at the attached image, you can better understand my problem. What am I doing wrong? CS Builder Code: B4X: cs.Alignment(Align).font( xui.CreateFont2(Font.CreateNew2(Main.FontIcon,FontSize),FontSize)).Color(Color).Append(Chr(0xe823)).popall BCTextengine Code: B4X: MyIconFont = xui.CreateFont(Font.CreateNew2(Main.FontIcon,62),62) BBCodeView1.Text = _ $"[Alignment=Center][TextSize=30][b][Font=MyFont] My Header [/Font][/b][/TextSize][TextSize=30][b][Font=MyIconFont]${Chr(0xe823)}[/Font][/b][/TextSize][/Alignment] "$
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2023 #2 Can you upload a small project with this code and font? Upvote 0