iOS Question Text doesn't appear under awesomefont

Discussion in 'iOS Questions' started by Jamie8763, Aug 9, 2018.

  1. Jamie8763

    Jamie8763 Member Licensed User

    Ive been trying to make this work under B4I but I can't get the text to appear under the awesome font:

    I took the original code from https://www.b4x.com/android/forum/threads/b4a-xui-bottom-toolbar.94369/#content

    Code:
    Sub CreateLabel(Label As Label, Text1 As String, Text2 As StringAs B4XBitmap
        
    Dim cs As CSBuilder
        cs.Initialize
        cs.Font(
    Font.CreateFontAwesome(30)).Append(Text1).Pop.Append(CRLF).Font(Font.CreateNew(10)).Append(Text2).Alignment("ALIGN_CENTER").PopAll
        
    Label.AttributedText = cs
     
        xlbl = 
    Label
     
        
    'xlbl.Text = cs. <-----   This might be the reason?
     
        xlbl.TextColor = xui.Color_White
        
    Return xlbl.Snapshot
    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The first step is to start with a new project with a single label and make the label look properly.

    Add Label.Multiline = True.
     
    Jamie8763 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice