[Lazarus] TextFitInfo

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] TextFitInfo

Free Pascal - Lazarus mailing list

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.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus