Castle Game Engine: CastleGLOutlineFonts: Class TGLOutlineFontAbstract

# Class TGLOutlineFontAbstract
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleGLOutlineFonts ## Declaration `type TGLOutlineFontAbstract = class(TObject)` ## Description Abstract class for all OpenGL outline fonts. ## Hierarchy TObject TGLOutlineFontAbstract ## Overview ### Methods
| `procedure Print(const s: string); virtual; abstract;`
| `procedure PrintAndMove(const s: string); virtual; abstract;`
| `function TextWidth(const s: string): single; virtual; abstract;`
| `function TextHeight(const s: string): single; virtual; abstract;`
| `function Descend: single; virtual;`
### Properties
| `property RowHeight: single read FRowHeight;`
## Description ### Methods
| `procedure Print(const s: string); virtual; abstract;`
Draw text at position determined by the current OpenGL modelview matrix. In contrast to PrintAndMove, modelview matrix value is not changed. May require 1 free slot on the attributes stack and on the modelview stack. May only be called when current matrix is modelview. Doesn't modify any OpenGL state or matrix.
| `procedure PrintAndMove(const s: string); virtual; abstract;`
Draw text at position determined by the current OpenGL modelview matrix, and change modelview matrix to contain a transformation of the text end. This way you can immediately call another `PrintAndMove` again, to add something at the end. May require 1 free slot on the attributes stack and on the modelview stack. May only be called when current matrix is modelview. Doesn't modify any OpenGL state or matrix, except it changes modelview matrix.
| `function TextWidth(const s: string): single; virtual; abstract;`
| `function TextHeight(const s: string): single; virtual; abstract;`
| `function Descend: single; virtual;`
How low the text may go below the baseline. By default this returns `TextHeight('y')-TextHeight('a')`, which is suitable for normal fonts.
### Properties
| `property RowHeight: single read FRowHeight;`
Height of a row of text in this font. This may be calculated as simply `TextHeight('Wy')` for most normal fonts.
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12