Class TBGRAVectorizedFont
Unit
Declaration
type TBGRAVectorizedFont = class(TBGRACustomTypeWriter)
Description
Allows to vectorize and to load vectorized font and draw them
Hierarchy
- TObject
- TBGRACustomTypeWriter
- TBGRAVectorizedFont
Overview
Fields
![]() |
StrikeOutDecoration: boolean; |
![]() |
UnderlineDecoration: boolean; |
Methods
![]() |
constructor Create; overload; |
![]() |
constructor Create(AVectorizeLCL: boolean); overload; |
![]() |
destructor Destroy; override; |
![]() |
function GetGlyphSize(AIdentifier:string): TPointF; |
![]() |
function GetTextGlyphSizes(ATextUTF8:string): TGlyphSizes; |
![]() |
function GetTextRectGlyphBoxes(ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload; |
![]() |
function GetTextRectGlyphBoxes(ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload; |
![]() |
function GetTextSize(ATextUTF8:string): TPointF; |
![]() |
function GetTextWordBreakGlyphBoxes(ATextUTF8: string; X,Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment = twaTopLeft): TGlyphBoxes; |
![]() |
function LoadGlyphsInfo(AFilenameUTF8: string): TBGRAGlyphsInfo; |
![]() |
function TextFitInfo(ATextUTF8: string; AMaxWidth: single): integer; |
![]() |
function ComputeKerning(AIdLeft, AIdRight: string): single; override; |
![]() |
function CustomHeaderSize: integer; override; |
![]() |
function GetGlyph(AIdentifier: string): TBGRAGlyph; override; |
![]() |
function HeaderName: string; override; |
![]() |
function ReadVectorizedFontHeader(AStream: TStream): TBGRAVectorizedFontHeader; |
![]() |
procedure CopyTextPathTo(ADest: IBGRAPath; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override; |
![]() |
procedure DrawText(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override; |
![]() |
procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload; |
![]() |
procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload; |
![]() |
procedure DrawTextWordBreak(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); |
![]() |
procedure SplitText(var ATextUTF8: string; AMaxWidth: single; out ARemainsUTF8: string); |
![]() |
procedure UpdateDirectory; |
![]() |
procedure DefaultWordBreakHandler(var ABefore, AAfter: string); |
![]() |
procedure Init(AVectorize: boolean); |
![]() |
procedure ReadAdditionalHeader(AStream: TStream); override; |
![]() |
procedure SetDirectory(const AValue: string); |
![]() |
procedure UpdateFont; |
![]() |
procedure UpdateMatrix; |
![]() |
procedure WriteCustomHeader(AStream: TStream); override; |
Properties
![]() |
property Directory: string read FDirectory write SetDirectory; |
![]() |
property EmHeight: single read GetEmHeight write SetEmHeight; |
![]() |
property FontEmHeightRatio: single read GetFontEmHeightRatio; |
![]() |
property FontFound: boolean read FFontFound; |
![]() |
property FontMatrix: TAffineMatrix read FFontMatrix write SetFontMatrix; |
![]() |
property FontPixelMetric: TFontPixelMetric read GetFontPixelMetric; |
![]() |
property FullHeight: single read FFullHeight write SetFullHeight; |
![]() |
property ItalicSlope: single read FItalicSlope write SetItalicSlope; |
![]() |
property LCLHeight: single read GetLCLHeight write SetLCLHeight; |
![]() |
property Name: string read FName write SetName; |
![]() |
property OnWordBreak: TWordBreakHandler read FWordBreakHandler write FWordBreakHandler; |
![]() |
property Orientation: single read FOrientation write SetOrientation; |
![]() |
property QuadraticCurves: boolean read FQuadraticCurves write SetQuadraticCurves; |
![]() |
property Resolution: integer read FResolution write SetResolution; |
![]() |
property Style: TFontStyles read FStyle write SetStyle; |
![]() |
property VectorizeLCL: boolean read GetVectorizeLCL write SetVectorizeLCL; |
Description
Fields
![]() |
StrikeOutDecoration: boolean; |
This item has no description. |
![]() |
UnderlineDecoration: boolean; |
This item has no description. |
Methods
![]() |
constructor Create; overload; |
This item has no description. |
![]() |
constructor Create(AVectorizeLCL: boolean); overload; |
This item has no description. |
![]() |
destructor Destroy; override; |
This item has no description. |
![]() |
function GetGlyphSize(AIdentifier:string): TPointF; |
This item has no description. |
![]() |
function GetTextGlyphSizes(ATextUTF8:string): TGlyphSizes; |
This item has no description. |
![]() |
function GetTextRectGlyphBoxes(ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload; |
This item has no description. |
![]() |
function GetTextRectGlyphBoxes(ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft): TGlyphBoxes; overload; |
This item has no description. |
![]() |
function GetTextSize(ATextUTF8:string): TPointF; |
This item has no description. |
![]() |
function GetTextWordBreakGlyphBoxes(ATextUTF8: string; X,Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment = twaTopLeft): TGlyphBoxes; |
This item has no description. |
![]() |
function LoadGlyphsInfo(AFilenameUTF8: string): TBGRAGlyphsInfo; |
This item has no description. |
![]() |
function TextFitInfo(ATextUTF8: string; AMaxWidth: single): integer; |
This item has no description. |
![]() |
function ComputeKerning(AIdLeft, AIdRight: string): single; override; |
This item has no description. |
![]() |
function CustomHeaderSize: integer; override; |
This item has no description. |
![]() |
function GetGlyph(AIdentifier: string): TBGRAGlyph; override; |
This item has no description. |
![]() |
function HeaderName: string; override; |
This item has no description. |
![]() |
function ReadVectorizedFontHeader(AStream: TStream): TBGRAVectorizedFontHeader; |
This item has no description. |
![]() |
procedure CopyTextPathTo(ADest: IBGRAPath; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override; |
This item has no description. |
![]() |
procedure DrawText(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); override; |
This item has no description. |
![]() |
procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; X1,Y1,X2,Y2: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload; |
This item has no description. |
![]() |
procedure DrawTextRect(ADest: TBGRACanvas2D; ATextUTF8: string; ATopLeft,ABottomRight: TPointF; AAlign: TBGRATypeWriterAlignment=twaTopLeft); overload; |
This item has no description. |
![]() |
procedure DrawTextWordBreak(ADest: TBGRACanvas2D; ATextUTF8: string; X, Y, MaxWidth: Single; AAlign: TBGRATypeWriterAlignment=twaTopLeft); |
This item has no description. |
![]() |
procedure SplitText(var ATextUTF8: string; AMaxWidth: single; out ARemainsUTF8: string); |
This item has no description. |
![]() |
procedure UpdateDirectory; |
This item has no description. |
![]() |
procedure DefaultWordBreakHandler(var ABefore, AAfter: string); |
This item has no description. |
![]() |
procedure Init(AVectorize: boolean); |
This item has no description. |
![]() |
procedure ReadAdditionalHeader(AStream: TStream); override; |
This item has no description. |
![]() |
procedure SetDirectory(const AValue: string); |
This item has no description. |
![]() |
procedure UpdateFont; |
This item has no description. |
![]() |
procedure UpdateMatrix; |
This item has no description. |
![]() |
procedure WriteCustomHeader(AStream: TStream); override; |
This item has no description. |
Properties
![]() |
property Directory: string read FDirectory write SetDirectory; |
This item has no description. |
![]() |
property EmHeight: single read GetEmHeight write SetEmHeight; |
This item has no description. |
![]() |
property FontEmHeightRatio: single read GetFontEmHeightRatio; |
This item has no description. |
![]() |
property FontFound: boolean read FFontFound; |
This item has no description. |
![]() |
property FontMatrix: TAffineMatrix read FFontMatrix write SetFontMatrix; |
This item has no description. |
![]() |
property FontPixelMetric: TFontPixelMetric read GetFontPixelMetric; |
This item has no description. |
![]() |
property FullHeight: single read FFullHeight write SetFullHeight; |
This item has no description. |
![]() |
property ItalicSlope: single read FItalicSlope write SetItalicSlope; |
This item has no description. |
![]() |
property LCLHeight: single read GetLCLHeight write SetLCLHeight; |
This item has no description. |
![]() |
property Name: string read FName write SetName; |
This item has no description. |
![]() |
property OnWordBreak: TWordBreakHandler read FWordBreakHandler write FWordBreakHandler; |
This item has no description. |
![]() |
property Orientation: single read FOrientation write SetOrientation; |
This item has no description. |
![]() |
property QuadraticCurves: boolean read FQuadraticCurves write SetQuadraticCurves; |
This item has no description. |
![]() |
property Resolution: integer read FResolution write SetResolution; |
This item has no description. |
![]() |
property Style: TFontStyles read FStyle write SetStyle; |
This item has no description. |
![]() |
property VectorizeLCL: boolean read GetVectorizeLCL write SetVectorizeLCL; |
This item has no description. |