[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Scales the fonts for the column to a specified display density using a scaling factor.
Source position: grids.pas line 603
public procedure TGridColumn.ScaleFontsPPI( |
const AToPPI: Integer; |
const AProportion: Double |
); virtual; |
AToPPI |
|
Target pixels per inch for the fonts in the grid column. |
AProportion |
|
Scaling factor applied to pixels per inch when aToPPI is 0. |
ScaleFontsPPI is a method used to scale the height for fonts used to display the data and title in the grid column. It implements the method introduced in TControl, and applies the operation to the fonts used in the TGridColumn instance. It is called from the ScaleFontsPPI method in TCustomGrid when Columns have been defined for the grid control.
ScaleFontsPPI calls the DoScaleFontPPI method in Grid to adjust the control font using the arguments in AToPPI and AProportion.
AToPPI contains the pixels per inch value assigned to the fonts used when a non-zero value is specified. If AToPPI is omitted (0), the scaling factor in AProportion is used to scale the existing PixelsPerInch setting in the fonts by the factor in AProportion.
The ScaleFontsPPI method in Title is called to adjust the font used in the fixed title displayed for the column. It uses the same logic applied to the control Font.
ScaleFontsPPI is called when the AutoAdjustLayout method is used to apply a layout policy to a control.
|
The grid control to which this column belongs. |
|
|
The font used for text displayed in the column. |
|
|
Contains the attributes for the title in the fixed header for the column. |
|
|
Scales font sizes in the class instance to the specified display density. |
|
|
The font to be used for text display in this control. |
|
|
The font to be used for text display in this control. |
|
|
The font used for text in a column title. |
|
|
Resizes fonts using a target PPI and a scaling factor. |
|
|
Resizes a font to the specified Pixels per Inch setting. |
Version 4.0 | Generated 2025-05-03 | Home |