Why should it? Erel is talking about code in JAVA. In java you can use Typeface.createFromFileCurrently this method is not listed here
I see, I didnt realize that.Why should it? Erel is talking about code in JAVA. In java you can use Typeface.createFromFile
TDS is correct, I'm referring to a B4A class compile to a library.I believe NJDude is talking about creating a library from B4A class
Then he forgot to mention thatI'm probably confused but I believe NJDude is talking about creating a library from B4A class, compile to jar, then adding the ttf file to it.
Sub LoadTypefaceFromFile(Dir As String, FileName As String) As Typeface
Dim jo As JavaObject
jo.InitializeStatic("android.graphics.Typeface")
Return jo.RunMethod("createFromFile", Array(File.Combine(Dir, FileName)))
End Sub
'usage example
Dim tf As Typeface = LoadTypefaceFromFile(File.DirRootExternal, "papercuts-2.ttf")
Label1.Typeface = tf
to access them from folders different to file.DirAssets, yes.to access outside folders, right?