View Source Chisel.Font (chisel v0.2.1)
Interface for managing fonts
Summary
Functions
Loads a font from a file
Types
@type load_opts() :: [
{:encoding,
:latin1
| :unicode
| :utf8
| :utf16
| :utf32
| {:utf16, :big | :little}
| {:utf32, :big | :little}}
]
@type t() :: %Chisel.Font{ glyphs: %{required(Chisel.Font.Glyph.codepoint()) => Chisel.Font.Glyph.t()}, name: String.t(), offset: {x :: integer(), y :: integer()}, size: {w :: integer(), h :: integer()} }
Functions
Loads a font from a file