Boxart.Charset (Boxart v0.3.1)

Copy Markdown View Source

Character sets for Unicode and ASCII box-drawing rendering.

Each Charset struct holds all glyphs needed to draw nodes, edges, corners, arrows, and subgraph borders, organized into sub-structs.

Summary

Functions

Returns a charset using plain ASCII characters.

Selects a charset from keyword options.

Returns a charset using Unicode box-drawing characters.

Types

t()

@type t() :: %Boxart.Charset{
  arrows: Boxart.Charset.Arrows.t(),
  box: Boxart.Charset.Box.t(),
  junctions: Boxart.Charset.Junctions.t(),
  lines: Boxart.Charset.Lines.t(),
  markers: Boxart.Charset.Markers.t(),
  subgraph: Boxart.Charset.Subgraph.t()
}

Functions

ascii()

@spec ascii() :: t()

Returns a charset using plain ASCII characters.

from_opts(opts)

@spec from_opts(keyword()) :: t()

Selects a charset from keyword options.

unicode()

@spec unicode() :: t()

Returns a charset using Unicode box-drawing characters.