Page 1 of 1

[01 Oct 2011] Antialias Text Transparency Lost with Shadow

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 01 Oct 2011 00:34:26 -0000

Hi Andreas,

Here's an interesting effect (which you may already know about). Please test the following code:

Code: Select all

@DISPLAY {Color=#WHITE, Layers=True}
SetFont(#SANS, 64, {Engine=#FONTENGINE_INBUILT})
SetFontStyle(#ANTIALIAS)
SetFontColor(ARGB(128, #RED))
TextOut(0, #CENTER, "This is a test.", {Name="TestLayer"})
WaitLeftMouse()
SetLayerStyle("TestLayer", {Text="This is a [shadow=$99000000,2,#SHDWSOUTHEAST]SHADOW[/shadow] test."})
Repeat
	WaitEvent
Forever
Where the shadow is added, the text transparency is lost; but this only happens when the font style is set to #ANTIALIAS.

[01 Oct 2011] Re: Antialias Text Transparency Lost with Shadow

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 01 Oct 2011 12:40:31 +0200
Hi Andreas,

Here's an interesting effect (which you may already know about). Please test the following code:

Code: Select all

@DISPLAY {Color=#WHITE, Layers=True}
SetFont(#SANS, 64, {Engine=#FONTENGINE_INBUILT})
SetFontStyle(#ANTIALIAS)
SetFontColor(ARGB(128, #RED))
TextOut(0, #CENTER, "This is a test.", {Name="TestLayer"})
WaitLeftMouse()
SetLayerStyle("TestLayer", {Text="This is a
[shadow=$99000000,2,#SHDWSOUTHEAST]SHADOW[/shadow] test."})
Repeat
	WaitEvent
Forever
Where the shadow is added, the text transparency is lost; but this only happens when the font style is set to #ANTIALIAS.
Yes, I already know of this problem. This will be fixed with the next version of Hollywood because this will feature a major redesign of the layers system.