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

dxGetFontHeight(Integer,TdxScaleFactor) Method

Calculates the font pixel height from the specified font size for a target scale factor.

#Declaration

Delphi
function dxGetFontHeight(AFontSize: Integer; AScaleFactor: TdxScaleFactor): Integer;

#Parameters

Name Type
AFontSize Integer
AScaleFactor TdxScaleFactor

#Returns

Type
Integer

#Remarks

Call this global function and pass the source font size as the AFontSize parameter to calculate the corresponding pixel height for the AScaleFactor target scale factor. The dxGetFontHeight function calls the dxGetFontHeightForDefaultDPI global function internally to calculate the base font pixel height (that is, at the default monitor DPI).

See Also