Android Question Font not found

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,

funny problem:

B4X:
tfm = Typeface.LoadFromAssets("Roboto-Medium.ttf")

java.lang.RuntimeException: Font not found /storage/emulated/0/Android/data/Photo.Tagger/files/virtual_assets/roboto-medium.ttf.unpacked

The file manager tells me that the font file is there.

Yesterday the code worked. Today I am stuck.
 

udg

Expert
Licensed User
Longtime User
Yesterday the code worked. Today I am stuck.
Well..maybe tomorrow it will work again.. eheh
Sorry, I couldn't resist!

Anyway, the java error shows an all-lowercase font name while your LoadFromAssets shows a mixed style; could that be the reason?

udg
 
Upvote 0
Top