Class TStrokeCollection (unit UTTF2Vct)

Inherits from

TList

Constructors


constructor Create;

*** TStrokeCollection ******************


Functions

destructor Destroy;


procedure EnumStrokes( Callback: TEnumStrokesCallback );

Enumerates all strokes of all glyphs

function GlyphNumStrokes( GlyphNumber: integer ): integer;

Returns the count of strokes for the glyph number GlyphNumber.

function StartOfGlyph( GlyphNumber: integer ): integer;

Returns the index of the first stroke for the glyph number GlyphNumber

procedure FreeStrokes;


function GetBounds: TRect;


function GetFontStroke( Idx: integer ): TFontStroke;


function GetNumGlyphs: integer;


Properties

property Bounds : TRect

Returns the smallest rectangle that completely bounds all glyphs

property NumGlyphs : integer

Returns the number of glyphs

property Stroke : TFontStroke

Returns the stroke number Idx.

Events

Variables


Constructors


constructor Create;

*** TStrokeCollection ******************


Functions


destructor Destroy;


procedure EnumStrokes( Callback: TEnumStrokesCallback );

Enumerates all strokes of all glyphs


function GlyphNumStrokes( GlyphNumber: integer ): integer;

Returns the count of strokes for the glyph number GlyphNumber.


function StartOfGlyph( GlyphNumber: integer ): integer;

Returns the index of the first stroke for the glyph number GlyphNumber


procedure FreeStrokes;


function GetBounds: TRect;


function GetFontStroke( Idx: integer ): TFontStroke;


function GetNumGlyphs: integer;


Properties


property Bounds : TRect

Returns the smallest rectangle that completely bounds all glyphs


property NumGlyphs : integer

Returns the number of glyphs


property Stroke : TFontStroke

Returns the stroke number Idx. Use StrartOfGlyph to determine the index of the first stroke for a given glyph. Use GlyphNumStrokes to determine the number of strokes a glyph is.


Events


Variables