Border tag does not work

Report any Hollywood bugs here
Post Reply
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Border tag does not work

Post by Allanon »

Hello, today I was trying the new [border...] tag that should replace the [edge...] one with a TextOut() command.

From the manual:

Code: Select all

[border=color,size]: 
Adds a border effect to the text. This border will use the color specified in color and the size specified in size.
The color can be a RGB or ARGB color specification. Border transparency is fully supported. Use [/border] to cancel border style. 
Note that when palette mode is set to #PALETTEMODE_PEN and the text is drawn to a palette target, the color argument must 
not be an RGB color but a palette pen. Before Hollywood 9.0, this tag was known as 'edge'. 
Trying to use the border tag triggers the error "tag not recognized" :)

Simple test:

Code: Select all

TextOut(10, 10, "[border=$ffffff,1]TEST[/border]")
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Border tag does not work

Post by Allanon »

Another problem:

Works fine:

Code: Select all

TextOut(10, 10, "[edge=$44000000,1]test")


Triggers the error "Closing square bracket expected":

Code: Select all

TextOut(10, 10, "[EDGE=$44000000,1]test")
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Border tag does not work

Post by airsoftsoftwair »

Now this is certainly one of the more embarrassing bugs. Fixed now, thanks for reporting!

Code: Select all

- Fix: The "Edge" text formatting tag only worked if the first character of the tag name was in lower case
- Fix: The "Border" text formatting tag didn't work at all
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Border tag does not work

Post by Allanon »

:) Great, thank you!
Post Reply