Unit BGRATypewriter

Description

Cached vectorial font renderer with affine transform

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TBGRACustomTypeWriter Abstract class for font rendering using cached glyphs
Record TBGRACustomTypeWriterHeader Header of typewriter stream
Class TBGRAGlyph Abstract class for a glyph
Record TBGRAGlyphDisplayInfo Information on how to display a glyph
Class TBGRAPolygonalGlyph Polygonal or curved glyph

Functions and Procedures

function ComputeEasyBezier(APoints: array of TPointF; ACurveMode: array of TGlyphPointCurveMode; AClosed: boolean; AMinimumDotProduct: single = 0.707): ArrayOfTPointF; overload;
function ComputeEasyBezier(APoints: array of TPointF; AClosed: boolean; AMinimumDotProduct: single = 0.707): ArrayOfTPointF; overload;

Types

TBGRATextDisplayInfo = array of TBGRAGlyphDisplayInfo;
TBrowseGlyphCallback = procedure(ATextUTF8: string; AGlyph: TBGRAGlyph; AFlags: TBrowseGlyphCallbackFlags; AData: Pointer; out AContinue: boolean) of object;
TBrowseGlyphCallbackFlag = (...);
TBrowseGlyphCallbackFlags = set of TBrowseGlyphCallbackFlag;
TGlyphBoxes = array of record Glyph: string; Box: TAffineBox; end;
TGlyphPointCurveMode= TEasyBezierCurveMode;

Constants

cmAngle = TEasyBezierCurveMode.cmAngle;
cmAuto = TEasyBezierCurveMode.cmAuto;
cmCurve = TEasyBezierCurveMode.cmCurve;

Description

Functions and Procedures

function ComputeEasyBezier(APoints: array of TPointF; ACurveMode: array of TGlyphPointCurveMode; AClosed: boolean; AMinimumDotProduct: single = 0.707): ArrayOfTPointF; overload;

This item has no description.

function ComputeEasyBezier(APoints: array of TPointF; AClosed: boolean; AMinimumDotProduct: single = 0.707): ArrayOfTPointF; overload;

This item has no description.

Types

TBGRATextDisplayInfo = array of TBGRAGlyphDisplayInfo;

Information on how to display text

TBrowseGlyphCallback = procedure(ATextUTF8: string; AGlyph: TBGRAGlyph; AFlags: TBrowseGlyphCallbackFlags; AData: Pointer; out AContinue: boolean) of object;

This item has no description.

TBrowseGlyphCallbackFlag = (...);

This item has no description.

Values
  • gcfMirrored
  • gcfMerged
  • gcfRightToLeft
  • gcfKerning
TBrowseGlyphCallbackFlags = set of TBrowseGlyphCallbackFlag;

This item has no description.

TGlyphBoxes = array of record Glyph: string; Box: TAffineBox; end;

Array of boxes for each glyph in text

TGlyphPointCurveMode= TEasyBezierCurveMode;

Enumerates modes for handling curves in a Bezier curve sequence

Constants

cmAngle = TEasyBezierCurveMode.cmAngle;

This item has no description.

cmAuto = TEasyBezierCurveMode.cmAuto;

This item has no description.

cmCurve = TEasyBezierCurveMode.cmCurve;

This item has no description.