<<VRML 2.0 - An Introductory view by examples

FontStyle

[example]                                                          [run]

It specifies the visual properties of a text geometry by defining the following characteristics :

{
field SFString family "SERIF" # (serif, sans, typewriter,...)
field SFBool horizontal TRUE # (major text advances direction; FALSE : VERTICAL)
field MFString justify "BEGIN" # 2 values - major and minor axis - (FIRST, BEGIN, MIDDLE, END)
field SFString language "" # jp for japanese; zh_CN for China; etc.
field SFBool leftToRight TRUE # writing following X positive; FALSE : opposite)
field SFFloat size 1.0 # characters size
field SFFloat spacing 1.0 # lines spacing
field SFString style "PLAIN" # (plain, bold, italic, bolditalic)
field SFBool topToBottom TRUE # writing following Y positive; FALSE : opposite)
}