Formas primitivas
Text
12
Un nodo de geometría
Text
construye texto
El campo
string
especifica el texto
El campo
fontStyle
tiene como valor un nodo
FontStyle
Shape {
geometry Text {
string [ "Shape:",
"Texto"]
fontStyle FontStyle {
style "BOLD"
family "SERIF"
justify "FIRST"
size 2.0
spacing 3.0
}
}
appearance Appearance {
material Material { }
}
}
Un nodo
FontStyle
describe una fuente
El campo
family
puede ser
SERIF, SANS
o
TYPEWRITER
El campo
style
puede ser
BOLD, ITALIC, BOLDITALIC
o
PLAIN
Los campos
size
y
spacing
especifican tamaño e interlineado
El campo
justify
puede ser
FIRST, BEGIN, MIDDLE
o
END
Los campos
horizontal, leftToRight
y
topToBottom
indican dirección y sentido