< Zurück | Inhalt | Weiter >

From BillboardTest.java (see also Text3DTest.java)

Font3D f3d = new Font3D( new Font( "SansSerif", Font.PLAIN, 10),

new FontExtrusion () );

image

Text3D label3D = new Text3D( f3d, “Hello World”, locationPoint ); Shape3D sh = new Shape3D( label3D );


The names of the available font families (e.g., SansSerif) can be retrieved using java.awt.GraphicsEnvironment.getAvailableFontFamilyNames A FontExtrusion object can be used to control the depth of text as follows: