pub struct LangInfo {
pub name: String,
pub made_by: MadeBy,
pub wide_font: Option<String>,
pub wide_punctuation: bool,
}Expand description
A pack’s lang.ron.
Fields§
§name: StringThe language’s own name for itself.
made_by: MadeByWho made the text.
wide_font: Option<String>The font atlas’s wide set the language draws from first (its own
word, as font-atlas --wide <set>=<font.bdf> names it), so a
character Japanese and Chinese share has this language’s shape:
None for none of its own. Its wide characters must be in that set
(undrawn).
wide_punctuation: boolWhether WIDE_PUNCTUATION
(“ ” ‘ ’ … —) is wide in this language and drawn from its wide
set, as Chinese writes it; narrow (false) by default.
Implementations§
Source§impl LangInfo
impl LangInfo
Sourcepub fn widths(&self, base: &CellWidths) -> CellWidths
pub fn widths(&self, base: &CellWidths) -> CellWidths
The width table of this language over base, the atlas’s
(CellWidths::of): its wide set and its punctuation’s width
(CellWidths::in_lang).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LangInfo
impl<'de> Deserialize<'de> for LangInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LangInfo
impl StructuralPartialEq for LangInfo
Auto Trait Implementations§
impl Freeze for LangInfo
impl RefUnwindSafe for LangInfo
impl Send for LangInfo
impl Sync for LangInfo
impl Unpin for LangInfo
impl UnsafeUnpin for LangInfo
impl UnwindSafe for LangInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more