Glyph Runs

The glyph run is the most primitive, device-independent representation of a text string that can be drawn by a drawing port. In most cases, you would use TTextDisplay and related Text system classes to add text strings to your graphics applications because you get more functionality without having to specifically program for it. The TGGlyphRun is intended for making a localized system for text layout. Do not use TGGlyphRun to display a simple text string, but use TTextDisplay instead.

You can convert a 2D glyph run to a 3D glyph run by passing a TGGlyphRun to a TGLoop. Because a TGLoop derives from TGCurve, you can pass the TGLoop to the TCurve3D or a TGCurve3D constructor.

See Chapter 2 for an example that uses TTextDisplay.

TGGlyphRun CopyFont GetAttachment GetOrigin
CopyGlyhphs GetFont GetXOffsets
CopyXOffsets GetGlyphs GetYOffsets
CopyYOffsets GetNumberofGlyphs SetOrigin


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker