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. |
||
HeiseiKakuGo-W5 |
CJK Font. |
||
STSong-Light |
CJK Font. |
||
MHei-Medium |
CJK Font. |
||
MSung-Light |
CJK Font. |
||
HYGoThic-Medium |
CJK Font. |
||
HYSMyeongJo-Medium |
CJK Font. |
||
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. |
||
UniJIS-UCS2-V |
Japanese. |
||
UniJIS-UCS2-HW-H |
Japanese. |
||
UniJIS-UCS2-HW-V |
Japanese. |
||
UniGB-UCS2-H |
Chinese Simplified. |
||
UniGB-UCS2-V |
Chinese Simplified. |
||
UniKS-UCS2-H |
Korean. |
||
UniKS-UCS2-V |
Korean. |
||
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"/>