Hi all.
I'm trying to show fontawesome icons on labels and doesn't work. Instead of icons I see only a ?
All icons are taken from here https://fontawesome.com/start
Please see my code - what am I dong wrong?
I also attached my project.
All I need is to show 4 icons for brain, microphone, heart and RX.
Thank you.
I'm trying to show fontawesome icons on labels and doesn't work. Instead of icons I see only a ?
All icons are taken from here https://fontawesome.com/start
Please see my code - what am I dong wrong?
B4X:
Private Sub Show3
Try
Dim csMAR1,csVitals1,csSeizure1,csRecording1 As CSBuilder
Dim Size As Int=30
lblVitals.Multiline=True
lblSeizureLog.Multiline=True
lblMAR.Multiline=True
lblRecording.Multiline=True
lblMAR.Color=Colors.Blue
lblVitals.Color=Colors.Blue
lblSeizureLog.Color=Colors.Blue
lblRecording.Color=Colors.Blue
csMAR1.Initialize.Alignment("ALIGN_CENTER").VerticalAlign(0)
csMAR1.Append(CRLF).Font(Font.CreateNewBold(Size)).Color(Colors.white).Append(Chr(0xff5b1)).Append(CRLF).Append("MAR").Pop.Pop
csMAR1.PopAll
lblMAR.AttributedText=csMAR1 ' doesn't work
csVitals1.Initialize.Alignment("ALIGN_CENTER").VerticalAlign(0)
csVitals1.Append(CRLF).Font(Font.CreateNewBold(Size)).Color(Colors.white).Append(Chr(0xf004)).Append(CRLF).Append("Vitals").Pop.Pop
csVitals1.PopAll
lblVitals.AttributedText=csVitals1 ' works
csSeizure1.Initialize.Alignment("ALIGN_CENTER").VerticalAlign(0)
csSeizure1.Append(CRLF).Font(Font.CreateNewBold(Size)).Color(Colors.white).Append(Chr(0xf5dc)).Append(CRLF).Append("Seizure").Pop.Pop
csSeizure1.PopAll
lblSeizureLog.AttributedText=csSeizure1 ' doesn't work
csRecording1.Initialize.Alignment("ALIGN_CENTER").VerticalAlign(0)
csRecording1.Append(CRLF).Font(Font.CreateNewBold(Size)).Color(Colors.white).Append(Chr(0xf3c9)).Append(CRLF).Append("Recording").Pop.Pop
csRecording1.PopAll
lblRecording.AttributedText=csRecording1 ' doesn't work
Catch
Log(LastException)
End Try
End Sub
I also attached my project.
All I need is to show 4 icons for brain, microphone, heart and RX.
Thank you.