FontMetrics.wrap
You're seeing just the function
wrap
, go back to FontMetrics module for more information.
Specs
wrap( String.t() | [integer()], max_width :: number(), pixels :: number(), metrics :: t(), opts :: Keyword.t() ) :: String.t() | [integer()]
Wraps a string to a given width by adding returns.
Options
Supported options:
:wrap
- The default value is:word
.:kern
- The default value isfalse
.
returns the wrapped string