Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 354 Bytes

drawStrings.width.md

File metadata and controls

16 lines (10 loc) · 354 Bytes

width function

Calculate the width of a string in pixels. Used in the Blocks interface.

drawStrings.width(text: string, fi: FontInfo): number

Parameters

  • text: string Text to measure.
  • fi: FontInfo FontInfo object to use when calculating width.

Return value

A number representing the width of the text in pixels.