Bug? B4XView Font copy issue when non-default typeface is select in Android Settings

Alessandro71

Well-Known Member
Licensed User
Longtime User
as described in this thread, copying Font from existing B4XView Label, gives strange result
 

William Lancee

Well-Known Member
Licensed User
Longtime User
Since copying the B4XFont from the original to the new fails to copy the IsMaterial or IsFontwesome info,
I would agree that this may be bug.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
Can you upload a small project that reproduces it?
it's in the first message of the original thread
be aware that the issue happens only when the system font is changed in the Android settings on a Samsung phone (I haven't checked on other brands)
 

William Lancee

Well-Known Member
Licensed User
Longtime User
Code in #5 unchanged. In both font cases, the label B4XFonts point to different objects. In the DefaultFont case it shows the icon, in the SamsunOne font case it shows the unicode.


B4X:
    Log($"lbl: ${Lbl.Font}, newlbl: ${newLblx.Font}"$)
    '(SamsungOne} lbl: anywheresoftware.b4a.objects.B4XViewWrapper$B4XFont@1828f4f, newlbl: anywheresoftware.b4a.objects.B4XViewWrapper$B4XFont@25b46dc
    '(DefaultFont) lbl: anywheresoftware.b4a.objects.B4XViewWrapper$B4XFont@a9a0e29, newlbl: anywheresoftware.b4a.objects.B4XViewWrapper$B4XFont@9eb5ae

DefaultFont.pngToolsOnSamsung.pngFontStyle.pngSamsunOneFont.png
 
Last edited:
Top