Sign in Join
FPDoc Onlineexperiment

TGridColumnTitle.ScaleFontsPPI procedure

Member of TGridColumnTitlepublicIn unit Grids

Scales font sizes in the class instance to the specified display density.

Declaration

pascal
procedure ScaleFontsPPI(const AToPPI: Integer; 
 const AProportion: Double); virtual

Arguments

AToPPI

Explicit Pixels per Inch setting for the fonts.

AProportion

Scaling factor applied to the existing PPI setting for the fonts.

Description

ScaleFontsPPI is an overridden procedure used to scale the size for the fonts in the Grid and Title properties to the specified display density (PPI) (Pixels Per Inch).

AToPPI contains the value assigned to the fonts used when a non-zero value is specified.

If AToPPI is omitted, the scaling factor in AProportion is used to adjust the existing PPI setting in the fonts by the indicated factor.

ScaleFontsPPI is called when the AutoAdjustLayout method is used to apply a layout policy to a control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.