dxGetFontHeight(Integer,TdxScaleFactor) Method
Calculates the font pixel height from the specified font size for a target scale factor.
Declaration
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