How do I use external typefaces for RichStrings?
Below code did not seem to work.
B4X:
Dim myfont As Typeface
Dim cdTitle As RichString
myfont = Typeface.LoadFromAssets("font2.ttf")
cdTitle.Initialize(Stage & " - Stage Info")
cdTitle.Typeface(myfont, 0, 9)
ret = cd.Show(cdTitle,"","Back","",Null)
This gives the CustomDialog3 title default typface.
Please find the file attached. Note that I'm using this font for all the other labels etc. in my program and it works fine. The problem occurs when I started to use RichString.