FontMetrics.position_at

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

position_at(source, n, pixels, font_metric, opts \\ [])

View Source

Specs

position_at(
  String.t() | [integer()],
  character_index :: number(),
  pixels :: number(),
  metrics :: t(),
  opts :: Keyword.t()
) :: {x :: number(), line :: integer()}

Returns the coordinates just before the given character number.

Options

Supported options:

  • :kern - The default value is false.

returns {x_position, line_number}