goText Package


This is a text package that uses line primitives to render text. Any rendered text is first transformed with Graphico's model view and projection matrices.

To create text located relative to a three dimensional coordinate but always drawn as flat (2D) relative to the screen, use the constructor

    GoText(xPosition, yPosition, zPosition,
           xPath, yPath,           /* 2D horizontal path vector */
           xScale, yScale,
           alignment,
           font,
           text)
    

To create text located relative to a three dimensional coordinate and drawn along a three dimensional path specified with horizontal and vertical path vectors, use the constructor

    GoText(xPosition, yPosition, zPosition,
           xPath, yPath, zPath,    /* 3D horizontal path vector */
           xUp, yUp, zUp,          /* 3D vertical path vector   */
           xScale, yScale,
           alignment,
           font,
           text)
    

Currently the fonts available to render the text include the Hershey font set. Hershey fonts are creates with GoHershey(String font).

To learn more about the text package see GoText Reference Manual.


Reference Manual (see package "goText")


Examples


Download Source Files for goText

Java and C++ files -> goText.src.jar