LayoutOMatic.TextPosition (Scenic Layout-O-Matic v0.6.0)

While Scenic supports text positioning within a component, it does not support positioning based on a point. This works by passing a string and point to be postioned from.

Link to this section Summary

Functions

Centers string according to point.

Link to this section Functions

Link to this function

center(string, arg, font_size, font \\ :roboto)

Specs

center(String.t(), {number(), number()}, number(), atom() | binary()) ::
  {number(), number()}

Centers string according to point.