Skia.TextStyle (Skia v0.3.7)

Copy Markdown View Source

Reusable text style options for Skia.text/3.

Summary

Types

t()

@type t() :: %Skia.TextStyle{
  decoration: :none | :underline | :line_through | nil,
  decoration_color: Skia.Command.color() | nil,
  decoration_mode: :gaps | :through | nil,
  decoration_style: :solid | :double | :dotted | :dashed | :wavy | nil,
  fill: term() | nil,
  font: Skia.Font.t() | nil,
  font_family: String.t() | nil,
  letter_spacing: number() | nil,
  line_height: number() | nil,
  size: number() | nil,
  weight: integer() | nil
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

to_opts(style)

@spec to_opts(t()) :: keyword()