Back to Devexpress

dxAssignFont(TFont,TFont,TdxScaleFactor,TdxScaleFactor) Method

vcl-dxdpiawareutils-dot-dxassignfont-x28-b3773e2e-x29.md

latest1.0 KB
Original Source

dxAssignFont(TFont,TFont,TdxScaleFactor,TdxScaleFactor) Method

Assigns the source font’s settings to the target font and scales it.

Declaration

delphi
procedure dxAssignFont(ATargetFont: TFont; ASourceFont: TFont; ATargetScaleFactor: TdxScaleFactor; ASourceScaleFactor: TdxScaleFactor);

Parameters

NameType
ATargetFontTFont
ASourceFontTFont
ATargetScaleFactorTdxScaleFactor
ASourceScaleFactorTdxScaleFactor

Remarks

Call this global procedure to copy settings between two fonts and take both their scale factors into account. Use the ATargetFont, ASourceFont, ATargetScaleFactor, and ASourceScaleFactor parameters to pass the both fonts and their corresponding scale factors.

See Also

dxDPIAwareUtils Unit