Bug Font Tags for Labels
#1
Hello,

if for example a skin uses the bold tag in label like this

Code:
<label>[b]Variable[/b]</label>


and an addon uses the bold tag too, so the bold tag is twice in the label tag

Code:
<variable name="TestVAR">
     ...
     <value>[b]text123[/b]</value>
</variable>
...
<label>[b]$VAR[TestVAR][/b]</label>
...


the second closing bold tag should be ignored, but it is shown as you can see in the following screenshot.

Image
Reply
#2
IMO ignoring tags is a bad idea. Wouldn't it be easier to let the skin handle the label formatting via the <font> tag instead of manually performing the format? Variables should not be pre-formatted anyway, but that's my opinion Smile
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
Just to add to what mkortstiege said and in case you didn't know, this is how you add the bold style to a font.

Code:
<font>
   <name>font12</name>
   <filename>arial.ttf</name>
   <size>12</size>
   <style>bold</style>
   <aspect>0.75</aspect>
   <linespacing>1.0</linespacing>
</font>
Reply

Logout Mark Read Team Forum Stats Members Help
Font Tags for Labels0