FontMetrics.position_at
You're seeing just the function
position_at
, go back to FontMetrics module for more information.
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 isfalse
.
returns {x_position, line_number}