I use a text file named MaterialIcons-WebFont.txt obtained from one of Erels’ threads to retrieve the names of the material icons and use the below csbuilder code to display on a B4XListTemplate. But, I am not able to display the material icons corresponding to each text file name. How should I modify the below code to also see the icons by incorporating a font file called: materialdesignicons-webfont.ttf (from one of Erels’ threads).
If I use the line below, how do I include it in the csbuilder construct:
Dim fnt As B4XFont = xui.CreateFont(Typeface.LoadFromAssets("materialdesignicons-webfont.ttf"),50)
Thank you
B4X:
For Each line As String In File.ReadList(File.DirAssets, "MaterialIcons-WebFont.txt")
Dim cs As CSBuilder
B4XListTemplate1.Options.Add(cs.Initialize.Color(xui.Color_White).Size(20). _
Append(line.SubString(1)).append(TAB).Pop.Typeface(Typeface.MATERIALICONS).Append(line.CharAt(0)).PopAll)
Next
Dim fnt As B4XFont = xui.CreateFont(Typeface.LoadFromAssets("materialdesignicons-webfont.ttf"),50)
Thank you