dxGetFontHeightForDefaultDPI(Integer,Integer) Method
Returns the font pixel height for the specified font size at the specified monitor DPI.
Declaration
function dxGetFontHeightForDefaultDPI(AFontSize: Integer; ADesignDPI: Integer = dxDefaultDPI): Integer;
Parameters
Name | Type | Description |
---|---|---|
AFontSize | Integer | The font size. |
ADesignDPI | Integer | The target monitor DPI. |
Returns
Type | Description |
---|---|
Integer | Returns the height in pixels based on the |
Remarks
The default monitor DPI depends on the current Windows API implementation, and can be different for applications running under different operating systems. Call this global function to obtain the pixel height corresponding to the font size passed as the AFontSize
parameter at the default monitor DPI.
See Also