View Source Chisel.Font.Glyph (chisel v0.2.1)

Defines a glyph for font rendering, including its properties and bitmap data. Useful for managing glyph rendering in graphics applications.

Attributes

  • name: Identifies the glyph.
  • codepoint: Unicode codepoint of the glyph.
  • dwx: Horizontal drawing width.
  • size: Width and height of the glyph.
  • offset: Position offset from the baseline.
  • data: Bitmap data of the glyph.

Summary

Types

@type codepoint() :: integer()
@type data() :: [binary()]
@type t() :: %Chisel.Font.Glyph{
  codepoint: codepoint(),
  data: data(),
  dwx: integer(),
  name: String.t(),
  offset: {x :: integer(), y :: integer()},
  size: {w :: integer(), h :: integer()}
}