Hi Andreas,
I just noticed another bug that at least shows up with OS 4.1. If a font is first set with SetFont(), the size of the font cannot be changed with SetLayerStyle() unless the font is first changed to a different one. The following code shows the problem:
Code: Select all
EnableLayers()
SetFont("DejaVu Sans Bold.font", 16)
CreateTextObject(1, "This is a test")
DisplayTextObject(1, #CENTER, #CENTER)
WaitLeftMouse()
;SetLayerStyle(1, {Font="DejaVu Sans Bold.font", FontSize=40})
SetLayerStyle(1, {FontSize=40})
WaitLeftMouse()
SetLayerStyle(1, {Font="DejaVu Sans.font"})
SetLayerStyle(1, {FontSize=40})