[01 Oct 2011] Antialias Text Transparency Lost with Shadow

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 569
Joined: Sun Feb 21, 2010 1:28 am

[01 Oct 2011] Antialias Text Transparency Lost with Shadow

Post 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.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Locked