Bug? Bug by change Fontsize ?

D

Deleted member 103

Guest
Hi,

is this a bug? If not, how to fix the problem?

I have this code( here just as an example):
B4X:
    Private btnInput As Button

    Log("1.btnInput.CustomLabel.font.name=" & btnInput.CustomLabel.font.name)
    btnInput.CustomLabel.font = xui.CreateFont(btnInput.CustomLabel.font, 20)
    Log("2.btnInput.CustomLabel.font.name=" & btnInput.CustomLabel.font.name)

und das ist die Log-Ausgabe:
1.btnInput.CustomLabel.font.name=.SFUI-Regular
2.btnInput.CustomLabel.font.name=TimesNewRomanPSMT
Before the change the font has one name and after another, why?

The font name should not change, right?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…