pub struct FIGfont {
pub header_line: HeaderLine,
pub comments: String,
pub fonts: HashMap<u32, FIGcharacter>,
}
Expand description
FIGlet font, which will hold the mapping from u32 code to FIGcharacter
Fields§
§header_line: HeaderLine
§comments: String
§fonts: HashMap<u32, FIGcharacter>
Implementations§
source§impl FIGfont
impl FIGfont
sourcepub fn from_content(contents: &str) -> Result<FIGfont, String>
pub fn from_content(contents: &str) -> Result<FIGfont, String>
generate FIGlet font from string literal
sourcepub fn from_file(fontname: &str) -> Result<FIGfont, String>
pub fn from_file(fontname: &str) -> Result<FIGfont, String>
generate FIGlet font from specified file