Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetFontData(HFONT) Method

Returns settings of a font object identified by its handle.

#Declaration

Delphi
function dxGetFontData(AFontHandle: HFONT): TLogFont;

#Parameters

Name Type
AFontHandle HFONT

#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