Android Question Load available fonts from device

MoraviaVenus

Member
Licensed User
Longtime User
Hi,

in one of my apps I want to give the users the possibility to change application font. I want to load the pool of available system fonts to the list. On those devices I have available, Fonts folder is always under "/system/fonts/" directory.

Please, how do I address the system folder "/system/fonts/"?

I wanted to use on of following commands, but none of them is linked to system folder...

B4X:
Dim filesList as List

filesList = File.ListFiles(File.DirInternal & "/System/Fonts/") 
filesList = File.ListFiles(File.DirAssets & "/System/Fonts/") 
filesList = File.ListFiles(File.DirInternalCache & "/System/Fonts/")

Could you please help me how to get the list of system fonts?

Thank you.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…