iOS Question is there a list of the font names ?

John Woodsmall

Active Member
Licensed User
Longtime User
Is there a way to display the names and example fonts in some kind of
list that can be shown to someone inside a program (for b4i)?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
upload_2016-8-12_8-27-49.png


Important code:
B4X:
Dim fonts As List
fonts.Initialize
fonts.AddAll(Font.AvailableNames)
fonts.Sort(True)
For Each f As String In fonts
   Dim tc As TableCell = TableView1.AddSingleLine("")
   Dim att As AttributedString
   att.Initialize(f, Font.CreateNew2(f, 15), Colors.Black)
   tc.Text = att
Next
 
Upvote 0
Top