Back to Devexpress

dxGetFontData(HFONT) Method

vcl-dxcoregraphics-dot-dxgetfontdata-x28-874372e9-x29.md

latest1.1 KB
Original Source

dxGetFontData(HFONT) Method

Returns settings of a font object identified by its handle.

Declaration

delphi
function dxGetFontData(AFontHandle: HFONT): TLogFont;

Parameters

NameType
AFontHandleHFONT

Returns

Type
TLogFont

Remarks

Call this function to obtain the style, size, pitch, orientation, and charset settings of the font object whose handle is passed as the AFontHandle parameter.

The first overloaded variant stores the font settings to the ALogFont parameter and returns True if these settings are found. Otherwise, False is returned.

The second overloaded variant returns the font settings as the function’s result.

See Also

dxCoreGraphics.dxGetBrushData

dxCoreGraphics.dxGetPenData

dxCoreGraphics Unit