Skip to main content

rocketsplash_formats/
render_mode.rs

1// <FILE>crates/rocketsplash-formats/src/render_mode.rs</FILE>
2// <DESC>Render mode for serialized font atlases</DESC>
3// <VERS>VERSION: 1.1.0</VERS>
4// <WCTX>Add octant rendering mode</WCTX>
5// <CLOG>Add Octant variant for Unicode 16.0 octant character support.</CLOG>
6
7use serde::{Deserialize, Serialize};
8
9/// Render mode used during export.
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
11pub enum RenderMode {
12    Braille,
13    Block,
14    /// Octant block elements (2x4 solid blocks, requires Unicode 16.0)
15    Octant,
16}
17
18impl Default for RenderMode {
19    fn default() -> Self {
20        Self::Braille
21    }
22}
23
24// <FILE>crates/rocketsplash-formats/src/render_mode.rs</FILE>
25// <VERS>END OF VERSION: 1.1.0</VERS>