Skip to main content

Glyphs class

Namespace: Arlecchino.Rendering.Text · Assembly: Arlecchino.Core

The symbols in use, reachable from anywhere that draws, the way Theme is. It is written on the drawing thread and asks for a frame itself, so every graph follows on the next one.

public static class Glyphs

Properties

MemberSummary
CellHeightHow many pixels tall a cell is taken to be. See Glyphs.CellWidth.
CellWidthHow many pixels wide a cell is taken to be, which only ImageProtocol.Sixel needs. TerminalProbe.Ask sets it, and ten by twenty is the guess for a silent terminal.
GraphWhat graphs are drawn with when a widget does not say otherwise.
PictureHow pictures reach the terminal when a widget does not say otherwise, which is ImageProtocol.Auto by default. A terminal that cannot speak a named protocol shows the escape sequence as text.

Properties in detail

CellHeight

public static int CellHeight { get; set; }

How many pixels tall a cell is taken to be. See Glyphs.CellWidth.

Type int

Exceptions

TypeThrown when
InvalidOperationExceptionAssigned from off the drawing thread.

CellWidth

public static int CellWidth { get; set; }

How many pixels wide a cell is taken to be, which only ImageProtocol.Sixel needs. TerminalProbe.Ask sets it, and ten by twenty is the guess for a silent terminal.

Type int

Exceptions

TypeThrown when
InvalidOperationExceptionAssigned from off the drawing thread.

Graph

public static GraphSymbols Graph { get; set; }

What graphs are drawn with when a widget does not say otherwise.

Type GraphSymbols

Exceptions

TypeThrown when
InvalidOperationExceptionAssigned from off the drawing thread.

Picture

public static ImageProtocol Picture { get; set; }

How pictures reach the terminal when a widget does not say otherwise, which is ImageProtocol.Auto by default. A terminal that cannot speak a named protocol shows the escape sequence as text.

Type ImageProtocol

Exceptions

TypeThrown when
InvalidOperationExceptionAssigned from off the drawing thread.