retroglyph_core/symbols/line.rs
1use super::LineSet;
2
3/// Single-line gridline characters (`─│┼┤├┬┴`).
4pub const NORMAL: LineSet = LineSet {
5 horizontal: '─',
6 vertical: '│',
7 cross: '┼',
8 vertical_left: '┤',
9 vertical_right: '├',
10 horizontal_down: '┬',
11 horizontal_up: '┴',
12};
13
14/// Double-line gridline characters (`═║╬╣╠╦╩`).
15pub const DOUBLE: LineSet = LineSet {
16 horizontal: '═',
17 vertical: '║',
18 cross: '╬',
19 vertical_left: '╣',
20 vertical_right: '╠',
21 horizontal_down: '╦',
22 horizontal_up: '╩',
23};
24
25/// Heavy (thick) gridline characters (`━┃╋┫┣┳┻`).
26///
27/// `horizontal`/`vertical` are the same glyphs as [`super::border::THICK`]'s and share its notdef
28/// gap. The 4 tees and the cross (`┫┣┳┻╋`) have no glyph in any font this crate bundles
29/// either; drawing with `THICK` through `retroglyph_window`'s fullest bundled
30/// `FontChain` falls back to the notdef substitute for all 7 entries. Supply a font
31/// with real heavy-line glyphs to draw this set as intended.
32pub const THICK: LineSet = LineSet {
33 horizontal: '━',
34 vertical: '┃',
35 cross: '╋',
36 vertical_left: '┫',
37 vertical_right: '┣',
38 horizontal_down: '┳',
39 horizontal_up: '┻',
40};