How can I use additional type-faces with Android widgets?
-
24-02-2021 - |
Question
Is there any way of using additional type-faces in Android widgets?
Dim GothicFont As Typeface
GothicFont = Typeface.LoadFromAssets("gothic.ttf")
I just want to use Century Gothic font with a text label in my home screen widget.
Solution
It is not possible to load a custom font file as the widget is hosted in a different process. Your only option is to use Canvas to draw the text.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow