Android Question font

Silkowner

New Member
java.io.FileNotFoundException: /data/user/0/farzin.com.app/files/virtual_assets/shabnam.ttf: open failed: ENOENT (No such file or directory)

I want to put a ttf file in the assets file and then use it, but it gives an error.


a:
    Dim shabnam As Typeface
    shabnam = Typeface.LoadFromAssets("Shabnam.ttf")
 

teddybear

Well-Known Member
Licensed User
java.io.FileNotFoundException: /data/user/0/farzin.com.app/files/virtual_assets/shabnam.ttf: open failed: ENOENT (No such file or directory)

I want to put a ttf file in the assets file and then use it, but it gives an error.


a:
    Dim shabnam As Typeface
    shabnam = Typeface.LoadFromAssets("Shabnam.ttf")
Did you put the Shabnam.ttf into Files folder?
 
Upvote 0
Top