Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 578

WML Workshop • Re: text formatting for labels

$
0
0
Hmm... Pango seems interpreted if you don't specify a colour?
There's nothing in the logs.
I can speculate but don't know why for sure what's going on.

Here's my test code:

Code:

    [label]      x,y=4,4      text=_"Test 1, <span color='red'>col</span>our=255,255,0 <b><i><small>Mar</small>kup</i></b>."      color=255,255,0    [/label]     [label]      x,y=12,4      text=_"Test 1, <span color='red'>col</span>our=255,255,0 <b><i><small>Mar</small>kup</i></b>."#      color=255,255,0    [/label]
The result:
Test1.png
Copy and paste and give it a go, was tested on v1.18.2
So just don't specify a color and you should be OK?

Hope this helps.

Cheers!
-- Spannerbag

Statistics: Posted by Spannerbag — Yesterday, 3:59 pm



Viewing all articles
Browse latest Browse all 578

Trending Articles