[][src]Struct msoffice_shared::drawingml::FontScheme

pub struct FontScheme {
    pub name: String,
    pub major_font: Box<FontCollection>,
    pub minor_font: Box<FontCollection>,
}

Fields

name: String

The name of the font scheme shown in the user interface.

major_font: Box<FontCollection>

This element defines the set of major fonts which are to be used under different languages or locals.

Xml example

<majorFont>
<latin typeface="Calibri"/>
  <ea typeface="Arial"/>
  <cs typeface="Arial"/>
  <font script="Jpan" typeface="MS Pゴシック "/>
  <font script="Hang" typeface="HY중고딕"/>
  <font script="Hans" typeface="隶 书"/>
  <font script="Hant" typeface="微軟正黑體 "/>
  <font script="Arab" typeface="Traditional Arabic"/>
  <font script="Hebr" typeface="Arial"/>
  <font script="Thai" typeface="Cordia New"/>
  <font script="Ethi" typeface="Nyala"/>
  <font script="Beng" typeface="Vrinda"/>
  <font script="Gujr" typeface="Shruti"/>
  <font script="Khmr" typeface="DaunPenh"/>
  <font script="Knda" typeface="Tunga"/>
</majorFont>

In this example, we see the latin, east asian, and complex script fonts defined along with many fonts for different locals.

minor_font: Box<FontCollection>

This element defines the set of minor fonts that are to be used under different languages or locals.

<minorFont>
  <latin typeface="Calibri"/>
  <ea typeface="Arial"/>
  <cs typeface="Arial"/>
  <font script="Jpan" typeface="MS Pゴシック "/>
  <font script="Hang" typeface="HY중고딕"/>
  <font script="Hans" typeface="隶 书"/>
  <font script="Hant" typeface="微軟正黑體 "/>
  <font script="Arab" typeface="Traditional Arabic"/>
  <font script="Hebr" typeface="Arial"/>
  <font script="Thai" typeface="Cordia New"/>
  <font script="Ethi" typeface="Nyala"/>
  <font script="Beng" typeface="Vrinda"/>
  <font script="Gujr" typeface="Shruti"/>
  <font script="Khmr" typeface="DaunPenh"/>
  <font script="Knda" typeface="Tunga"/>
</minorFont>

In this example, we see the latin, east asian, and complex script fonts defined along with many fonts for different locals.

Methods

impl FontScheme[src]

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self, Box<dyn Error>>[src]

Trait Implementations

impl Clone for FontScheme[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FontScheme[src]

Auto Trait Implementations

impl Send for FontScheme

impl Sync for FontScheme

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]