ilan Expert Licensed User Longtime User Nov 1, 2015 #1 can a label contain 2 different textsize?? like: H2O ??
ilan Expert Licensed User Longtime User Nov 1, 2015 #2 i think this can be done with canvas.drawtext, am i right? Upvote 0
JanPRO Well-Known Member Licensed User Longtime User Nov 1, 2015 #3 You can also use the Richstring class: B4X: Dim rs As RichString rs.Initialize("H2O") rs.SetFont(Font.CreateNew(20),0,1) rs.SetFont(Font.CreateNew(12),1,2) rs.SetFont(Font.CreateNew(20),2,3) rs.SetToLabel(Label1) Upvote 0
You can also use the Richstring class: B4X: Dim rs As RichString rs.Initialize("H2O") rs.SetFont(Font.CreateNew(20),0,1) rs.SetFont(Font.CreateNew(12),1,2) rs.SetFont(Font.CreateNew(20),2,3) rs.SetToLabel(Label1)
ilan Expert Licensed User Longtime User Nov 1, 2015 #4 thanx @JanPRO , with canvas its working well too, but i will check Erels class anyway. Upvote 0
ilan Expert Licensed User Longtime User Nov 1, 2015 #5 ok, this class is working much better thanx @JanPRO Upvote 0