B4J Question Find font name from a font file

tremara1

Active Member
Licensed User
Longtime User
I am not sure but I thought I saw in the forum a runmethod to get the actual fontname from a font file....I cannot find it now....if anyone can point me in the right direction...Thanks Trev
 

Daestrum

Expert
Licensed User
Longtime User
Do you mean something like
B4X:
…
 Dim ff As Font = fx.LoadFont("c:/windows/fonts","CeraPROModern-Medium.ttf",16)
 Log(ff.FamilyName)
…
 
Upvote 0
Top