Interface IGDIPlus.IGPFont
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Contents |
Syntax
Delphi:
type IGPFont = interface
Summary
Interface to a TGPFont object.
Description
Defines interface to a TGPFont object.
The TGPFont class encapsulates the characteristics, such as family, height, size, and style (or combination of styles), of a specific font. A Font object is used when drawing strings.
Properties
- Style - Returns the style of this font's typeface.
- Size - Returns the font size (commonly called the em size) of this Font object.
- Units - Returns the unit of measure of this Font object.
- Family - Returns the font family on which this font is based.
Methods
- function GetNativeFont() : GpFont
- function GetLogFontA(g : IGPGraphics) : TLogFontA - Returns LOGFONTA structure with the attributes of the TGPFont object.
- function GetLogFontW(g : IGPGraphics) : TLogFontW - Returns LOGFONTW structure with the attributes of the TGPFont object.
- function Clone() : TGPFont - Creates a new TGPFont object based on this TGPFont object.
- function IsAvailable() : Boolean - Returns whether this Font object was created successfully.
- function GetStyle() : Integer - Returns the style of this font's typeface.
- function GetSize() : Single - Returns the font size (commonly called the em size) of this Font object.
- function GetUnit() : TGPUnit - Returns the unit of measure of this Font object.
- function GetHeight(graphics : IGPGraphics) : Single - Gets the line spacing of this font in the current unit of a specified Graphics object.
- function GetHeight(dpi : Single) : Single - Gets the line spacing, in pixels, of this font.
- function GetFamily() : IGPFontFamily - Returns the font family on which this font is based.