Children of the sizeInfos element
sizeInfo element
Description | Parent element | Child elements | No. of occurrences |
<sizeInfo id: NonEmptyString> Content: (lines?, width?, height?, lineSpacing?, wordwrap?) </styleInfo> | sizeInfos | lines width height lineSpacing wordwrap kerning dpiX dpiY engine | One or more |
Note that the attribute id value should be unique because it's a key value.
Example 1:
<sizeInfoid="sizeinfo2"><width>420 sym</width><height>130px</height><lineSpacing>1</lineSpacing><wordwrap>true</wordwrap></sizeInfo>
Example 2:
<sizeInfoid="sizeinfo2"><lines><line><width>20 px</width></line><line><width>100 px</width></line></lines><wordwrap>true</wordwrap></sizeInfo>
lines element
Defines a display configuration with variable length of lines. Height of a display is defined in sym and equal to amount of line elements.
Description | Parent element | Child element | No. of occurrences |
<lines> Content:(line+) </lines> | sizeInfo | line | None or once |
In case lines is defined and contains one or more line descriptions, the height of sizeInfo is ignored.
The width of all child line elements should be defined in the same measurement units.
width and height element
Those elements are for usage of symbols in dimensions for mono-spaced fonts.
Description | Parent element | No. of occurrences |
<width> Content:(positive double,(px|sym)?) </width> | sizeInfo or line | Once |
<height> Content:(positive double,(px|sym)?) </height> | sizeInfo |
Tip
In case not a mono-spaced font is used or the text contains format ranges: No frame is shown in the preview picture, but delta (how much symbols left/over) for each line is shown instead.
wordwrap, kerning, dpi and engine elements
Description | Parent element | No. of occurrences | |
wordwrap | Defines whether word-wrap is enabled or not. <wordwrap> | sizeInfo | None or once |
kerning | Defines whether kerning is enabled or not. <kerning> | ||
dpiX | The display horizontal text resolution. <dpiX> | ||
dpiY | The display vertical text resolution. <dpiY> | ||
engine | Rendering engine name. If not specified, the default Display Texts plugin is used. <engine> |
Example:
<sizeInfoid="sizeinfo2"><width>420 sym</width><height>130px</height><kerning>false</kerning><dpiX>72</dpiX><dpiY>72</dpiY><engine>MyRenderingEngine</engine></sizeInfo>