pub struct CtFont {
pub id: StId,
pub font_name: String,
pub family_name: Option<String>,
pub charset: Option<String>,
pub italic: Option<bool>,
pub bold: Option<bool>,
pub serif: Option<bool>,
pub fixed_width: Option<bool>,
pub font_file: Option<StLoc>,
}Expand description
CT_Font:字型资源描述(见第 11 章;在基础类型上扩展 ID)。
Fields§
§id: StId资源标识(必选)。
font_name: String字型名(必选)。
family_name: Option<String>字型族名(可选)。
charset: Option<String>字型适用的字符分类(可选)。
italic: Option<bool>是否为斜体(可选)。
bold: Option<bool>是否为粗体(可选)。
serif: Option<bool>是否为衬线字体(可选)。
fixed_width: Option<bool>是否为等宽字体(可选)。
font_file: Option<StLoc>指向内嵌字型文件(可选)。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CtFont
impl<'de> Deserialize<'de> for CtFont
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 CtFont
impl RefUnwindSafe for CtFont
impl Send for CtFont
impl Sync for CtFont
impl Unpin for CtFont
impl UnsafeUnpin for CtFont
impl UnwindSafe for CtFont
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