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.
Implementations§
Source§impl FontScheme
impl FontScheme
Trait Implementations§
Source§impl Clone for FontScheme
impl Clone for FontScheme
Source§fn clone(&self) -> FontScheme
fn clone(&self) -> FontScheme
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FontScheme
impl RefUnwindSafe for FontScheme
impl Send for FontScheme
impl Sync for FontScheme
impl Unpin 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