Element style

LANSA Integrator

Element - style

The style element is a top-level element that defines a style.

The font attribute is used to select one of the built-in fonts.

The file attribute allows an external True Type Font file to be read and embedded into the PDF document.

The style attribute can contain a single value or one or more values separated by a space.

Syntax:

Element

Attributes

Value

Notes for Element/Attribute/Value

style

name

string

 

font

Courier

Type 1 font.

Courier-Bold

Base Font.

Courier-Oblique

Base Font.

Courier-BoldOblique

Base Font.

Helvetica

Default. Type 1 font.

Helvetica-Bold

Base Font.

Helvetica-Oblique

Base Font.

Helvetica-BoldOblique

Base Font.

Symbol

Type 1 font.

Times-Roman

Type 1 font.

Times-Bold

Base Font.

Time-Italic

Base Font.

Times-BoldItalic

Base Font.

HeiseiMin-W3

CJK Font.
Japanese.

HeiseiKakuGo-W5

CJK Font.
Japanese.

STSong-Light

CJK Font.
Chinese Simplified.

MHei-Medium

CJK Font.
Chinese Traditional.

MSung-Light

CJK Font.
Chinese Traditional.

HYGoThic-Medium

CJK Font.
Korean.

HYSMyeongJo-Medium

CJK Font.
Korean.

size

integer

Default. 10.

style

normal

Default. normal.

Bold

 

Italic

 

line-through

 

Underline

 

color

Color

Default. black.

encoding

Cp1250

Latin 2 Eastern Europe

Cp1251

Cyrillic

Cp1252

Default. Latin 1

Cp1253

Greek

Cp1254

Turkish

Cp1257

Windows Baltic

Identity-H

Unicode Horizontal.

Identity-V

Unicode Vertical.

UniJIS-UCS2-H

Japanese.
Unicode (UCS-2) encoding for the Adobe-Japan character collection.
Horizontal.

UniJIS-UCS2-V

Japanese.
Unicode (UCS-2) encoding for the Adobe-Japan character collection.
Vertical.

UniJIS-UCS2-HW-H

Japanese.
Same as UniJIS-UCS2-H, but replaces proportional Latin characters with half-width forms.
Horizontal.

UniJIS-UCS2-HW-V

Japanese.
Same as UniJIS-UCS2-V, but replaces proportional Latin characters with half-width forms.
Vertical.

UniGB-UCS2-H

Chinese Simplified.
Horizontal.

UniGB-UCS2-V

Chinese Simplified.
Vertical.

UniKS-UCS2-H

Korean.
Horizontal.

UniKS-UCS2-V

Korean.
Vertical.

file

Value

Path of .TTF file.

background

Color

 

embedded

Boolean

Default. false

 

Example

 

<style name="normal" font="Helvetica" size="10" style="normal" />

 

<style name="white" font="Helvetica" size="10" style="normal" color="white" background="black"/>

 

 

<style name="Greek" file="/QIBM/ProdData/OS400/Fonts/TTFonts/mtsansdw.ttf" size="30" encoding="Identity-H" embedded="true"/>