use crate::{error, AsPaletteColor, Result, XmlWritable, XmlWriter}; use decorum::R64; use indexmap::{indexmap, IndexMap, IndexSet}; use rgb::RGB8; use std::cell::RefCell; use std::rc::Rc; const SIZE_MIN: f64 = 1.0f64; const SIZE_MAX: f64 = 409.0f64; const SIZE_DEFAULT: f64 = 11.0f64; const NAME_DEFAULT: &str = "Calibri"; const FONT_FAMILY_DEFAULT: u8 = 2; #[derive(PartialEq, Eq, Clone, Hash, Debug, Default)] pub struct Font { pub name: Option, pub size: FontSize, pub color: Option, pub bold: bool, pub italic: bool, pub underline: Option, pub strikeout: bool, pub script: Option