Jump to content

Formatting rich text in text object


photo

Recommended Posts

Posted

Здравствуйте, вопрос по объекту текст. В документации сказано " If the Rich text option is enabled, you can use tags for text formatting." хотелось бы узнать какие теги поддерживаются и возможно ли создать текст внутри text object различного размера и толщины, например чтобы выделить заголовок. Так же интересует можно ли добавить на текст эффекты обводки вокруг букв, похоже на outline, только жирнее и со всех сторон.
Спасибо.

Posted

Hi,

 

We do support following tags in rich formatting:

  • <br> / <br/>
  • <left> / <left/>
  • <right> / <right/>
  • <p> with align=left  right center justify tags </p>
  • <center></center>
  • <font> with color, size, face, outline, spacing </font>
  • <sub> / <sup> tags
  • <b> / <i> tags

You also can check <SDK>/data/samples/widgets/font_03 sample for small example. Please, note that <image> and <table> tags will not work with ObjectText.

 

Outline option is already available for non-rich text in ObjectText node - just enable "Outline" checkbox.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Silent, спасибо за быстрый ответ, форматирование работает с этими тегами.

по поводу обводки я не точно выразился, имел ввиду такой эффект: 

post-2335-0-80132800-1472212188_thumb.png

Posted

Hi,

 

It can be enabled via <font face=console.ttf outline=#000000>Text with outline</font>, but you can't specify the size of this outline. I believe it will be always 1 px.

 

Unfortunately, no other options are available currently.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...