M Mike1970 Well-Known Member Licensed User Longtime User May 15, 2021 #1 Hi guys.. i'm trying to write a text in a Label with an icon at the beginning.. i can't do it, csbuilder act weird, i think i'm doing the correct way.. This code B4X: Copy Dim cs As CSBuilder cs.Initialize.Font(Font.CreateMaterialIcons(20)).Append(Chr(0xE855)).Pop cs.Font(Font.CreateNew2("AvenirNext-Medium", 15)).Append(" Da fare").Pop cs.PopAll lblWarningPasto.AttributedText = cs produces this effect: Thanks in advance
Hi guys.. i'm trying to write a text in a Label with an icon at the beginning.. i can't do it, csbuilder act weird, i think i'm doing the correct way.. This code B4X: Copy Dim cs As CSBuilder cs.Initialize.Font(Font.CreateMaterialIcons(20)).Append(Chr(0xE855)).Pop cs.Font(Font.CreateNew2("AvenirNext-Medium", 15)).Append(" Da fare").Pop cs.PopAll lblWarningPasto.AttributedText = cs produces this effect: Thanks in advance
A Alex_197 Well-Known Member Licensed User Longtime User May 15, 2021 #2 Why you don't use designer's awesome font? Upvote 0
M Mike1970 Well-Known Member Licensed User Longtime User May 15, 2021 #3 Alex_197 said: Why you don't use designer's awesome font? Click to expand... Because I need to concatenate a MaterialIcon char (or FontAwesome) with normal Text like: "︎ Warning" Upvote 0
Alex_197 said: Why you don't use designer's awesome font? Click to expand... Because I need to concatenate a MaterialIcon char (or FontAwesome) with normal Text like: "︎ Warning"
A Alex_197 Well-Known Member Licensed User Longtime User May 15, 2021 #4 Mike1970 said: Because I need to concatenate a MaterialIcon char (or FontAwesome) with normal Text like: "︎ Warning" Click to expand... Check this Upvote 0
Mike1970 said: Because I need to concatenate a MaterialIcon char (or FontAwesome) with normal Text like: "︎ Warning" Click to expand... Check this
M Mike1970 Well-Known Member Licensed User Longtime User May 15, 2021 #5 Alex_197 said: Check this View attachment 113496 Click to expand... At the moment my pc is not turned on, but I don’t remember that it can be done. On the phone looks ok? I will try tomorrow ? and if I need it to be dynamic? Upvote 0
Alex_197 said: Check this View attachment 113496 Click to expand... At the moment my pc is not turned on, but I don’t remember that it can be done. On the phone looks ok? I will try tomorrow ? and if I need it to be dynamic?
A Alex_197 Well-Known Member Licensed User Longtime User May 15, 2021 #6 Mike1970 said: At the moment my pc is not turned on, but I don’t remember that it can be done. On the phone looks ok? I will try tomorrow ? and if I need it to be dynamic? Click to expand... I didn't try dynamic but in a phone - please see Upvote 0
Mike1970 said: At the moment my pc is not turned on, but I don’t remember that it can be done. On the phone looks ok? I will try tomorrow ? and if I need it to be dynamic? Click to expand... I didn't try dynamic but in a phone - please see
Erel B4X founder Staff member Licensed User Longtime User May 16, 2021 #7 Check the Fonts section: https://www.b4x.com/android/forum/threads/csbuilder-attributedstrings-builder.79153/ Upvote 0
Check the Fonts section: https://www.b4x.com/android/forum/threads/csbuilder-attributedstrings-builder.79153/