Skia.TextStyle (Skia v0.1.1)

Copy Markdown View Source

Reusable text style options for Skia.text/3.

Summary

Types

t()

@type t() :: %Skia.TextStyle{
  fill: term() | nil,
  font: Skia.Font.t() | nil,
  font_family: String.t() | 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()