Skia.TextBlob (Skia v0.1.1)

Copy Markdown View Source

Immutable shaped text blob resource for repeated text drawing.

Summary

Types

t()

@type t() :: %Skia.TextBlob{ref: reference(), size: float(), text: String.t()}

Functions

bounds(blob)

@spec bounds(t()) :: {:ok, {float(), float(), float(), float()}} | {:error, atom()}

new(text, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: {:ok, t()} | {:error, atom()}