[−][src]Struct oox::shared::drawingml::text::runformatting::TextFont
Fields
typeface: TextTypeFace
Specifies the typeface, or name of the font that is to be used. The typeface is a string name of the specific font that should be used in rendering the presentation. If this font is not available within the font list of the generating application than font substitution logic should be utilized in order to select an alternate font.
panose: Option<Panose>
Specifies the Panose-1 classification number for the current font using the mechanism defined in §5.2.7.17 of ISO/IEC 14496-22.
pitch_family: Option<i32>
Specifies the font pitch as well as the font family for the corresponding font. Because the value of this attribute is determined by an octet value this value shall be interpreted as follows:
Value | Description |
---|---|
0x00 | DEFAULT PITCH + UNKNOWN FONT FAMILY |
0x01 | FIXED PITCH + UNKNOWN FONT FAMILY |
0x02 | VARIABLE PITCH + UNKNOWN FONT FAMILY |
0x10 | DEFAULT PITCH + ROMAN FONT FAMILY |
0x11 | FIXED PITCH + ROMAN FONT FAMILY |
0x12 | VARIABLE PITCH + ROMAN FONT FAMILY |
0x20 | DEFAULT PITCH + SWISS FONT FAMILY |
0x21 | FIXED PITCH + SWISS FONT FAMILY |
0x22 | VARIABLE PITCH + SWISS FONT FAMILY |
0x30 | DEFAULT PITCH + MODERN FONT FAMILY |
0x31 | FIXED PITCH + MODERN FONT FAMILY |
0x32 | VARIABLE PITCH + MODERN FONT FAMILY |
0x40 | DEFAULT PITCH + SCRIPT FONT FAMILY |
0x41 | FIXED PITCH + SCRIPT FONT FAMILY |
0x42 | VARIABLE PITCH + SCRIPT FONT FAMILY |
0x50 | DEFAULT PITCH + DECORATIVE FONT FAMILY |
0x51 | FIXED PITCH + DECORATIVE FONT FAMIL |
0x52 | VARIABLE PITCH + DECORATIVE FONT FAMILY |
This information is determined by querying the font when present and shall not be modified when the font is not available. This information can be used in font substitution logic to locate an appropriate substitute font when this font is not available.
Defaults to 0x00
Note
Although the attribute name is pitchFamily, the integer value of this attribute specifies the font family with higher 4 bits and the font pitch with lower 4 bits.
charset: Option<i32>
Specifies the character set which is supported by the parent font. This information can be used in font substitution logic to locate an appropriate substitute font when this font is not available. This information is determined by querying the font when present and shall not be modified when the font is not available.
The value of this attribute shall be interpreted as follows:
Value | Description |
---|---|
0x00 | Specifies the ANSI character set. (IANA name iso-8859-1) |
0x01 | Specifies the default character set. |
0x02 | Specifies the Symbol character set. This value specifies that the |
characters in the Unicode private use area (U+FF00 to U+FFFF) of the | |
font should be used to display characters in the range U+0000 to | |
U+00FF. | |
0x4D | Specifies a Macintosh (Standard Roman) character set. (IANA name |
macintosh) | |
0x80 | Specifies the JIS character set. (IANA name shift_jis) |
0x81 | Specifies the Hangul character set. (IANA name ks_c_5601-1987) |
0x82 | Specifies a Johab character set. (IANA name KS C-5601-1992) |
0x86 | Specifies the GB-2312 character set. (IANA name GBK) |
0x88 | Specifies the Chinese Big Five character set. (IANA name Big5) |
0xA1 | Specifies a Greek character set. (IANA name windows-1253) |
0xA2 | Specifies a Turkish character set. (IANA name iso-8859-9) |
0xA3 | Specifies a Vietnamese character set. (IANA name windows-1258) |
0xB1 | Specifies a Hebrew character set. (IANA name windows-1255) |
0xB2 | Specifies an Arabic character set. (IANA name windows-1256) |
0xBA | Specifies a Baltic character set. (IANA name windows-1257) |
0xCC | Specifies a Russian character set. (IANA name windows-1251) |
0xDE | Specifies a Thai character set. (IANA name windows-874) |
0xEE | Specifies an Eastern European character set. (IANA name windows-1250) |
0xFF | Specifies an OEM character set not defined by ECMA-376. |
_ | Application-defined, can be ignored. |
Defaults to 0x01
Methods
impl TextFont
[src]
pub fn from_xml_element(xml_node: &XmlNode) -> Result<TextFont>
[src]
Trait Implementations
impl Clone for TextFont
[src]
impl Debug for TextFont
[src]
impl PartialEq<TextFont> for TextFont
[src]
impl StructuralPartialEq for TextFont
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextFont
impl Send for TextFont
impl Sync for TextFont
impl Unpin for TextFont
impl UnwindSafe for TextFont
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,