Page 1 of 1

Border tag does not work

Posted: Thu Aug 12, 2021 11:21 am
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]")

Re: Border tag does not work

Posted: Thu Aug 12, 2021 11:29 am
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")

Re: Border tag does not work

Posted: Fri Aug 13, 2021 9:53 pm
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

Re: Border tag does not work

Posted: Sat Aug 14, 2021 4:30 pm
by Allanon
:) Great, thank you!