문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top