Applies the design-time PPI and resizes the specified control font.
Source position: controls.pp line 1535
protected procedure TControl.DoFixDesignFontPPI( |
const AFont: TFont; |
const ADesignTimePPI: Integer |
); |
AFont |
|
TFont instance updated in the method. |
ADesignTimePPI |
|
Design-time display density to which the font height is adjusted. |
Implements the FixDesignFontsPPI method for the control.
Performs actions needed to restore the design-time PPI (Pixels Per Inch) for controls when they are loaded using the LCL component streaming mechanism. The design-time PPI for fonts is not stored in .FRM files, and could result in invalid scaling operations when loaded on a machine with a different display density. DoFixDesignFontPPI ensures that the font is resized to the specified design-time PPI.
|
Corrects the font size for High-DPI-aware applications. |
CT Web help |
CodeTyphon Studio |