Skip to main content
Skip table of contents

Style Layout

Introduction

A Style Layout document contains a collection of styles describing the graphical characteristics of texts in documents.

The binding of a Style to a Receipt Part is performed directly in the Receipt Layout document.

File extension for Receipt Layout is: .utds

Structure

The Style Layout is an XML document with the following structure

Level

Node Name

Node Value(s)

Notes

0

StyleLayout

Root Node

1

Styles

Collection of Styles

2

Style

Style Definition

3

Name

<string>

Name of the style. This is the name to be used to refer this style

3

Inherits

<string>

Name of the style from which all values will be copied. The values present in this style will of course override the inherited ones. The values not present will maintain the inherited values. The inherited style must be defined previously.

3

Align

left
right
center
justified

Alignment of the text.
If “justified” is not supported by the hardware it will be treated as “left”

3

Font

Font Characteristics

4

Name

<string>

Font Name

Font names are often “hardware-specific”. For example the font names in Esc-Pos are identified by a letter (usually from A to E)

4

Height

<integer>

Height of a character (hardware-specific)

4

Width

<integer>

Width of a character (hardware-specific)

4

Attributes

bold
italic
underlined

Attributes to be applied to the font. It is possible to specify multiple values, separating each value by a comma.

4

Color

black
white

Color of the character. If the color is “white”, the background will be black (and viceversa)

Example

XML
<StyleLayout>
  <Styles>
    <!-- Receipt Header -->
    <Style>
      <Name>Head</Name>
      <Align>center</Align>
      <Font>
        <Name>B</Name>
        <Height>1</Height>
        <Width>1</Width>
        <Attributes>italic</Attributes>
        <Color>black</Color>
      </Font>
    </Style>
    <!-- Receipt Header: Store Sign -->
    <Style>
    <Name>Head_StoreSign</Name>
      <Inherits>Head</Inherits>
      <Font>
        <Height>2</Height>
      </Font>
    </Style>
  </Styles>
</StyleLayout>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.