I need to create a label by code, by cloning an existing label, which uses Material Icons font.
Here is how it looks: the grey icon is the original label, while the red one is the clone
if I set the system font to anything else than the default (SamsungOne in this example)
the cloned icon font changes to a strange font
Dim new As B4XView = CloneLabelToB4XView(Label1)
Log(new.Font)
Log(new.Text)
B4X:
Public Sub CloneLabelToB4XView(lbl As Label) As B4XView
Dim new As B4XView = lbl
new.Text = lbl.Text
new.Font = xui.CreateFont(lbl.Font, lbl.Font.Size)
new.TextColor = xui.Color_Red
Return new
End Sub