How do I load a file into "LoadFromAssets"

bobsteamer

Member
Licensed User
Longtime User
LoadFromAssets (FileName As String) As android.graphics.Typeface

Loads a font file, that was added with the file manager.

Unfortunately I have been unable to find details on how to add a font to the "Assets":

a) how do I load a font into the emulator?

b) Can I embed the font in my application for the real world or would the user have to load the font him/herself?
 

DonManfred

Expert
Licensed User
Longtime User
Please have a look at this example clock... It includes a ttf-font to display the time
 
Upvote 0
Top