User Tools

Site Tools


manual:text_tags_in_graphics_compositions

Text Tags in Graphic Compositions

Output of text in graphic compositions provides an option to control some parameters of the displayed text using special tags.

Tags have the following structure:

  • beginning – a tag is opened by a sequence of symbols <?,
  • content,
  • end – a tag is closed by a sequence of symbols ?>.

Example: <?TAG_BODY?>

At the moment, the following tags are available:

  • <?fg:COLOR?> – setting the color of displayed text to the COLOR value,
  • <?fg:?> – setting the color of displayed text to the default value,
  • <?bg:COLOR?> – setting the background color to the COLOR value,
  • <?bg:?> – setting the background color to the default value,
  • <?NAME?> – inserts a static image with the “NAME” title from the media database.

Tags that define color use the following rules for color description: COLOR may have the “#xxxxxx” look, where xxxxxx are six hexadecimal digits setting RRGGBB respectively, and “#xxxxxxxx” are eight hexadecimal digits setting RRBBGGAA respectively. HTML color names can be used as well.

Font Size and Style Management

Starting from version 2.4.26, text in graphic compositions has control sequences:

  • {?weight:bold?} – assigning bold attribute to the font for subsequent symbols,
  • {?weight:normal?} – cancels bold attribute and applies regular font for subsequent symbols,
  • {?slant:italic?} – assigning italic attribute to the font for subsequent symbols,
  • {?slant:normal?} – cancels italic attribute and applies regular font for subsequent symbols,
  • {?bigger?} – assigns increased font size for subsequent symbols,
  • {?smaller?} – assigns decreased font size for subsequent symbols.

Examples

  1. An image with a “LOGO” title is inserted after the text: <?LOGO?>.
  2. A piece of text is displayed in <?fg:#ff0000?>red<?fg:?>.
  3. A piece of text is displayed on the <?bg:white?>white<?bg:?> background.
  4. This text will be {?weight:bold?}bold{?weight:normal?}.
  5. This text will be {?slant:italic?}italic{?slant:normal?}.
  6. This text will be {?bigger?}bigger, and this one – {?bigger?}even more.
  7. This text will be {?smaller?}smaller, and this one – {?bigger?}even more.
manual/text_tags_in_graphics_compositions.txt · Last modified: 2020/01/14 08:40 by Dmitriy Sazhin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

Copyright © 2009-2025 Skylark Technology Inc.