Michael Van Canneyt via Lazarus
2018-08-15 08:49:00 UTC
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.
--
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.
--