Combomode 1 and antialiased fonts on OS4
Posted: Wed Jun 10, 2020 6:12 pm
I noticed this anomaly on OS4... if you try to draw antialiased text to layers with #SELMODE_COMBO and combomode 1, they lose their color. This seems to happen only on OS4 (I have plain OS4.1FE under UAE), but doesn't happen on OS3, MorphOS, or AROS. Combomodes 0 and 2 do work fine and also if you disable antialiasing.
This draws black text on OS4, but red on other platforms I've tried:
This draws black text on OS4, but red on other platforms I've tried:
Code: Select all
@DISPLAY {Color=#GRAY}
EnableLayers()
CreateLayer(10, 10, 200, 100, {AlphaChannel=True, Clear=True})
SelectLayer(1, #SELMODE_COMBO, Nil, 1) ; setting combo mode to 0 or 2 works
SetFont(#SANS, 18)
SetFontColor(#RED)
SetFontStyle(#ANTIALIAS) ; disabling this works too
Print("Boooooo")
EndSelect
WaitLeftMouse()