1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Shared sub-cell glyph vocabularies: braille dot bits, quadrant
//! blocks and the two eighth-block ramps. ONE authority — the widget
//! layer and `gfx::mosaic_fit`'s image fitters consume these same
//! tables (backlog 0420: the dedup covers tables, not fitters; the
//! sextant table stays in `mosaic_fit` because no stroke mode uses it).
//!
//! OWNER: CANVAS (extensions wave).
/// Braille dot bit for (col in 0..2, row in 0..4) — Unicode braille
/// bit order (dots 1-8). Dots are numbered column-first (1-3,7 left;
/// 4-6,8 right) with the bottom row split out historically, hence the
/// irregular mapping. `0x2800 + OR of lit bits` is the codepoint.
pub const
/// Quadrant glyphs indexed by fg pattern bits (bit i = subpixel i is
/// fg; subpixels row-major: 0=UL, 1=UR, 2=LL, 3=LR). Index 0 is a
/// space (empty cell), index 15 the full block.
pub const QUADRANT_CHARS: = ;
/// Vertical eighth blocks rising from the cell bottom, index =
/// eighths filled minus one (1..=8): `V_EIGHTHS[7]` is the full block.
pub const V_EIGHTHS: = ;
/// Horizontal eighth blocks anchored at the cell's left edge, same
/// indexing: `H_EIGHTHS[7]` is the full block.
pub const H_EIGHTHS: = ;