G grafsoft Well-Known Member Licensed User Longtime User Aug 30, 2015 #1 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.
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 Aug 30, 2015 #2 Yesterday the code worked. Today I am stuck. Click to expand... 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
Yesterday the code worked. Today I am stuck. Click to expand... 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
giga Well-Known Member Licensed User Longtime User Aug 30, 2015 #3 I noticed the mixed case too. Is the file all lowercase or mixed case? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2015 #4 Uninstall the current app from the device and then install it again. Might be a caching problem. Upvote 0
G grafsoft Well-Known Member Licensed User Longtime User Aug 31, 2015 #5 Thanks to all! Erel was right. Upvote 0