Typeface resource independent of font size.
{:ok, families} = Skia.Typeface.families()
{:ok, typeface} = Skia.Typeface.match_family("Inter", weight: 700)
font = Skia.Font.new(typeface, size: 18)
Summary
Functions
Matches an installed typeface capable of rendering one Unicode character.
Types
Functions
@spec load_path(Path.t()) :: {:ok, t()} | {:error, atom() | File.posix()}
@spec match_character( String.t() | non_neg_integer(), keyword() ) :: {:ok, t()} | {:error, atom()}
Matches an installed typeface capable of rendering one Unicode character.
The optional :family, :weight, :slant, and :languages values map
directly to Skia's font-manager matching inputs. An empty family allows Skia
to select any installed family.