A style bean that sets the font of any Text nodes beneath it.
| XML Element | XML Type | Java Class |
| style | font | uk.ac.ic.doc.scenebeans.Font |
| Name | Type | Default Value | Getter Method | Setter Method | Description |
| font | java.awt. Font | null |
getFont
|
setFont
|
The font used to render text.
When set from an XML document, the textual value in the document is
parsed into a font by calling the static
BOLD",
"BOLDITALIC", or "ITALIC", and point
size is a decimal representation of the point size. The default
style is PLAIN. The default point size is 12.
|
<style type="font">
<param name="font" value="SansSerif-BOLDITALIC-38"/>
<primitive type="text">
<param name="text" value="hello, world!"/>
</primitive>
</style>