pub struct FontConfig {
pub chars: HashMap<String, CharConfig>,
pub font_name: Option<String>,
pub output_dir: Option<PathBuf>,
}Expand description
Font configuration from JSON
Fields§
§chars: HashMap<String, CharConfig>Character to config mapping
font_name: Option<String>Optional font name
output_dir: Option<PathBuf>Optional output directory
Implementations§
Trait Implementations§
Source§impl Debug for FontConfig
impl Debug for FontConfig
Source§impl<'de> Deserialize<'de> for FontConfig
impl<'de> Deserialize<'de> for FontConfig
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
Auto Trait Implementations§
impl Freeze for FontConfig
impl RefUnwindSafe for FontConfig
impl Send for FontConfig
impl Sync for FontConfig
impl Unpin for FontConfig
impl UnsafeUnpin for FontConfig
impl UnwindSafe for FontConfig
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