Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-08

TextFitInfo

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

TCanvas has a TextFitInfo method:

{------------------------------------------------------------------------------ Function: TCanvas.TextFitInfo
Params: Text: The text in consideration
MaxWidth: The size, the major input
Returns: The number of characters which will fit into MaxWidth

Returns how many characters will fit in a specified width ------------------------------------------------------------------------------} function TCanvas.TextFitInfo(const Text: string; MaxWidth: Integer): Integer;

How must I understand 'Characters' ? As Code points or as bytes ?

Michael.

Reply by email