J JLS Member Licensed User Longtime User May 26, 2017 #1 Hi everybody. I'm trying to use a custom Font in a widget using CSbuilder. I'm trying something like this: Code: 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.
Hi everybody. I'm trying to use a custom Font in a widget using CSbuilder. I'm trying something like this: Code: 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.
Erel B4X founder Staff member Licensed User Longtime User May 28, 2017 #2 You should explain that rv is RemoteView. You cannot use a custom font with a widget. Upvote 0
J JLS Member Licensed User Longtime User May 28, 2017 #3 Oh, sorry. 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
Oh, sorry. 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.