Android Question CSBuilder and custom font

JLS

Member
Licensed User
Longtime User
Hi everybody.

I'm trying to use a custom Font in a widget using CSbuilder. I'm trying something like this:

B4X:
Dim CB As CSBuilder, RBtLigth As Typeface
RBtLigth = Typeface.LoadFromAssets("Roboto-Light.ttf")
 rv.SetText("lbl1", CB.Initialize.Typeface(RBtLigth).Append("Text").PopAll)
But it doesn't work.

What is it wrong? Is this not posible?

Thanks in advance.
 

JLS

Member
Licensed User
Longtime User
Oh, sorry. :oops:

You are right. I did not show the beginning of the sub...

It's a pity you cannot use a custom Font in a widget... It's an important limitation to personalize your widgets. :(

Anyway, thank you very much for your answer.
 
Upvote 0
Top