An earlier question revealed how to format text using xml.

How I do change the font type & size, put in bold etc.?

asked 21 Mar '12, 20:28

wildcatz's gravatar image

wildcatz
16141417
accept rate: 0%


In Qt mode it is possible to specify HTML <span> tag and specify its style. For example you can put the following in a <labelParameter>'s explanation:

Test of<span style="font-family: Courier New; font-size: 20pt; color: red;">different</span> font

This will show a larger font, using different family and size.

<labelParameter>
    <name>qtlabel</name>
    <description></description>
    <explanation>Test of&lt;span style="font-family: Courier New; font-size: 20pt; color: red;"&gt;different&lt;/span&gt; font</explanation>
    <image></image>
</labelParameter>

You can also use tags such as <b> or <i>.

It is not possible to do this in modes other than Qt, though.

link

answered 22 Mar '12, 06:57

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×2

Asked: 21 Mar '12, 20:28

Seen: 1,527 times

Last updated: 22 Mar '12, 06:57