FontMetrics.wrap

You're seeing just the function wrap, go back to FontMetrics module for more information.
Link to this function

wrap(source, max_width, pixels, font_metric, opts \\ [])

View Source

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 is false.

returns the wrapped string