Class TBGRAVectorizedFont

Unit

Declaration

type TBGRAVectorizedFont = class(TBGRACustomTypeWriter)

Description

Allows to vectorize and to load vectorized font and draw them

Hierarchy

Overview

Fields

Public StrikeOutDecoration: boolean;
Public UnderlineDecoration: boolean;

Methods

Public constructor Create; overload;
Public constructor Create(AVectorizeLCL: boolean); overload;
Public destructor Destroy; override;
Public function GetGlyphSize(AIdentifier:string): TPointF;
Public function GetTextGlyphSizes(ATextUTF8:string): TGlyphSizes;
Public function GetTextRectGlyphBoxes(ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload;
Public function GetTextRectGlyphBoxes(ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload;
Public function GetTextSize(ATextUTF8:string): TPointF;
Public function GetTextWordBreakGlyphBoxes(ATextUTF8: string; X,Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment = twaTopLeft): TGlyphBoxes;
Public function LoadGlyphsInfo(AFilenameUTF8: string): TBGRAGlyphsInfo;
Public function TextFitInfo(ATextUTF8: string; AMaxWidth: single): integer;
Protected function ComputeKerning(AIdLeft, AIdRight: string): single; override;
Protected function CustomHeaderSize: integer; override;
Protected function GetGlyph(AIdentifier: string): TBGRAGlyph; override;
Protected function HeaderName: string; override;
Protected function ReadVectorizedFontHeader(AStream: TStream): TBGRAVectorizedFontHeader;
Public procedure CopyTextPathTo(ADest: IBGRAPath; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override;
Public procedure DrawText(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override;
Public procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload;
Public procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload;
Public procedure DrawTextWordBreak(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft);
Public procedure SplitText(var ATextUTF8: string; AMaxWidth: single; out ARemainsUTF8: string);
Public procedure UpdateDirectory;
Protected procedure DefaultWordBreakHandler(var ABefore, AAfter: string);
Protected procedure Init(AVectorize: boolean);
Protected procedure ReadAdditionalHeader(AStream: TStream); override;
Protected procedure SetDirectory(const AValue: string);
Protected procedure UpdateFont;
Protected procedure UpdateMatrix;
Protected procedure WriteCustomHeader(AStream: TStream); override;

Properties

Public property Directory: string read FDirectory write SetDirectory;
Public property EmHeight: single read GetEmHeight write SetEmHeight;
Public property FontEmHeightRatio: single read GetFontEmHeightRatio;
Public property FontFound: boolean read FFontFound;
Public property FontMatrix: TAffineMatrix read FFontMatrix write SetFontMatrix;
Public property FontPixelMetric: TFontPixelMetric read GetFontPixelMetric;
Public property FullHeight: single read FFullHeight write SetFullHeight;
Public property ItalicSlope: single read FItalicSlope write SetItalicSlope;
Public property LCLHeight: single read GetLCLHeight write SetLCLHeight;
Public property Name: string read FName write SetName;
Public property OnWordBreak: TWordBreakHandler read FWordBreakHandler write FWordBreakHandler;
Public property Orientation: single read FOrientation write SetOrientation;
Public property QuadraticCurves: boolean read FQuadraticCurves write SetQuadraticCurves;
Public property Resolution: integer read FResolution write SetResolution;
Public property Style: TFontStyles read FStyle write SetStyle;
Public property VectorizeLCL: boolean read GetVectorizeLCL write SetVectorizeLCL;

Description

Fields

Public StrikeOutDecoration: boolean;

This item has no description.

Public UnderlineDecoration: boolean;

This item has no description.

Methods

Public constructor Create; overload;

This item has no description.

Public constructor Create(AVectorizeLCL: boolean); overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function GetGlyphSize(AIdentifier:string): TPointF;

This item has no description.

Public function GetTextGlyphSizes(ATextUTF8:string): TGlyphSizes;

This item has no description.

Public function GetTextRectGlyphBoxes(ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload;

This item has no description.

Public function GetTextRectGlyphBoxes(ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload;

This item has no description.

Public function GetTextSize(ATextUTF8:string): TPointF;

This item has no description.

Public function GetTextWordBreakGlyphBoxes(ATextUTF8: string; X,Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment = twaTopLeft): TGlyphBoxes;

This item has no description.

Public function LoadGlyphsInfo(AFilenameUTF8: string): TBGRAGlyphsInfo;

This item has no description.

Public function TextFitInfo(ATextUTF8: string; AMaxWidth: single): integer;

This item has no description.

Protected function ComputeKerning(AIdLeft, AIdRight: string): single; override;

This item has no description.

Protected function CustomHeaderSize: integer; override;

This item has no description.

Protected function GetGlyph(AIdentifier: string): TBGRAGlyph; override;

This item has no description.

Protected function HeaderName: string; override;

This item has no description.

Protected function ReadVectorizedFontHeader(AStream: TStream): TBGRAVectorizedFontHeader;

This item has no description.

Public procedure CopyTextPathTo(ADest: IBGRAPath; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override;

This item has no description.

Public procedure DrawText(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override;

This item has no description.

Public procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload;

This item has no description.

Public procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload;

This item has no description.

Public procedure DrawTextWordBreak(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft);

This item has no description.

Public procedure SplitText(var ATextUTF8: string; AMaxWidth: single; out ARemainsUTF8: string);

This item has no description.

Public procedure UpdateDirectory;

This item has no description.

Protected procedure DefaultWordBreakHandler(var ABefore, AAfter: string);

This item has no description.

Protected procedure Init(AVectorize: boolean);

This item has no description.

Protected procedure ReadAdditionalHeader(AStream: TStream); override;

This item has no description.

Protected procedure SetDirectory(const AValue: string);

This item has no description.

Protected procedure UpdateFont;

This item has no description.

Protected procedure UpdateMatrix;

This item has no description.

Protected procedure WriteCustomHeader(AStream: TStream); override;

This item has no description.

Properties

Public property Directory: string read FDirectory write SetDirectory;

This item has no description.

Public property EmHeight: single read GetEmHeight write SetEmHeight;

This item has no description.

Public property FontEmHeightRatio: single read GetFontEmHeightRatio;

This item has no description.

Public property FontFound: boolean read FFontFound;

This item has no description.

Public property FontMatrix: TAffineMatrix read FFontMatrix write SetFontMatrix;

This item has no description.

Public property FontPixelMetric: TFontPixelMetric read GetFontPixelMetric;

This item has no description.

Public property FullHeight: single read FFullHeight write SetFullHeight;

This item has no description.

Public property ItalicSlope: single read FItalicSlope write SetItalicSlope;

This item has no description.

Public property LCLHeight: single read GetLCLHeight write SetLCLHeight;

This item has no description.

Public property Name: string read FName write SetName;

This item has no description.

Public property OnWordBreak: TWordBreakHandler read FWordBreakHandler write FWordBreakHandler;

This item has no description.

Public property Orientation: single read FOrientation write SetOrientation;

This item has no description.

Public property QuadraticCurves: boolean read FQuadraticCurves write SetQuadraticCurves;

This item has no description.

Public property Resolution: integer read FResolution write SetResolution;

This item has no description.

Public property Style: TFontStyles read FStyle write SetStyle;

This item has no description.

Public property VectorizeLCL: boolean read GetVectorizeLCL write SetVectorizeLCL;

This item has no description.