Bug? SwiftButton has not font and TextSize properties alike Button As B4XView

Theera

Expert
Licensed User
Longtime User
I have tried to compare between SwiftButton and Button what something be different.
 

Attachments

  • TestButtonVsSwiftButton.zip
    42.5 KB · Views: 27

Sagenut

Expert
Licensed User
Longtime User
@Theera
Here is how to do in the way @Erel proposed (taking what you was doing in another your work)
B4X:
Dim myFont As B4XFont
myFont = xui.CreateFont(Typeface.LoadFromAssets("JSGiat-Bold.otf"),62)
SwiftButton1.xLBL.Font = myFont
SwiftButton1.xLBL.TextSize = 30
This is how to change Font and TextSize from code to the original SwiftButton.
I understand that it's not intuitive, but if @Erel does not want to update the SwiftButton this is the way to go.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…