pub struct FontScheme {
pub name: String,
pub major_latin: String,
pub major_ea: String,
pub major_cs: String,
pub minor_latin: String,
pub minor_ea: String,
pub minor_cs: String,
}Expand description
字体方案(对应 <a:fontScheme>)。
解析 majorFont / minorFont 的 latin / ea / cs typeface。
Fields§
§name: String字体方案名(<a:fontScheme name="Office">)。
major_latin: String主标题字体 latin(<a:majorFont><a:latin typeface="..."/>)。
major_ea: String主标题字体 东亚(<a:majorFont><a:ea typeface="..."/>)。
major_cs: String主标题字体 复杂文种(<a:majorFont><a:cs typeface="..."/>)。
minor_latin: String正文字体 latin(<a:minorFont><a:latin typeface="..."/>)。
minor_ea: String正文字体 东亚(<a:minorFont><a:ea typeface="..."/>)。
minor_cs: String正文字体 复杂文种(<a:minorFont><a:cs typeface="..."/>)。
Implementations§
Source§impl FontScheme
impl FontScheme
Sourcepub fn write_xml(&self, w: &mut XmlWriter)
pub fn write_xml(&self, w: &mut XmlWriter)
写出 <a:fontScheme> 元素到 writer。
§元素结构
<a:fontScheme name="...">
<a:majorFont>
<a:latin typeface="..."/>
<a:ea typeface="..."/>
<a:cs typeface="..."/>
</a:majorFont>
<a:minorFont>
<a:latin typeface="..."/>
<a:ea typeface="..."/>
<a:cs typeface="..."/>
</a:minorFont>
</a:fontScheme>Trait Implementations§
Source§impl Clone for FontScheme
impl Clone for FontScheme
Source§fn clone(&self) -> FontScheme
fn clone(&self) -> FontScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontScheme
impl Debug for FontScheme
Source§impl Default for FontScheme
impl Default for FontScheme
Source§fn default() -> FontScheme
fn default() -> FontScheme
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FontScheme
impl RefUnwindSafe for FontScheme
impl Send for FontScheme
impl Sync for FontScheme
impl Unpin for FontScheme
impl UnsafeUnpin for FontScheme
impl UnwindSafe for FontScheme
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