Struct truetype::compound::WindowsMetrics5 [] [src]

pub struct WindowsMetrics5 {
    pub version: u16,
    pub xAvgCharWidth: i16,
    pub usWeightClass: u16,
    pub usWidthClass: u16,
    pub fsType: u16,
    pub ySubscriptXSize: i16,
    pub ySubscriptYSize: i16,
    pub ySubscriptXOffset: i16,
    pub ySubscriptYOffset: i16,
    pub ySuperscriptXSize: i16,
    pub ySuperscriptYSize: i16,
    pub ySuperscriptXOffset: i16,
    pub ySuperscriptYOffset: i16,
    pub yStrikeoutSize: i16,
    pub yStrikeoutPosition: i16,
    pub sFamilyClass: i16,
    pub panose: Vec<u8>,
    pub ulUnicodeRange1: u32,
    pub ulUnicodeRange2: u32,
    pub ulUnicodeRange3: u32,
    pub ulUnicodeRange4: u32,
    pub achVendID: Vec<i8>,
    pub fsSelection: u16,
    pub usFirstCharIndex: u16,
    pub usLastCharIndex: u16,
    pub sTypoAscender: i16,
    pub sTypoDescender: i16,
    pub sTypoLineGap: i16,
    pub usWinAscent: u16,
    pub usWinDescent: u16,
    pub ulCodePageRange1: u32,
    pub ulCodePageRange2: u32,
    pub sxHeight: i16,
    pub sCapHeight: i16,
    pub usDefaultChar: u16,
    pub usBreakChar: u16,
    pub usMaxContext: u16,
    pub usLowerOpticalPointSize: u16,
    pub usUpperOpticalPointSize: u16,
}

OS/2 and Windows metrics of version 5.

Fields

version: u16 xAvgCharWidth: i16 usWeightClass: u16 usWidthClass: u16 fsType: u16 ySubscriptXSize: i16 ySubscriptYSize: i16 ySubscriptXOffset: i16 ySubscriptYOffset: i16 ySuperscriptXSize: i16 ySuperscriptYSize: i16 ySuperscriptXOffset: i16 ySuperscriptYOffset: i16 yStrikeoutSize: i16 yStrikeoutPosition: i16 sFamilyClass: i16 panose: Vec<u8> ulUnicodeRange1: u32 ulUnicodeRange2: u32 ulUnicodeRange3: u32 ulUnicodeRange4: u32 achVendID: Vec<i8> fsSelection: u16 usFirstCharIndex: u16 usLastCharIndex: u16 sTypoAscender: i16 sTypoDescender: i16 sTypoLineGap: i16 usWinAscent: u16 usWinDescent: u16 ulCodePageRange1: u32 ulCodePageRange2: u32 sxHeight: i16 sCapHeight: i16 usDefaultChar: u16 usBreakChar: u16 usMaxContext: u16 usLowerOpticalPointSize: u16 usUpperOpticalPointSize: u16

Trait Implementations

impl PartialEq for WindowsMetrics5
[src]

fn eq(&self, __arg_0: &WindowsMetrics5) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &WindowsMetrics5) -> bool

This method tests for !=.

impl Eq for WindowsMetrics5
[src]

impl Default for WindowsMetrics5
[src]

fn default() -> WindowsMetrics5

Returns the "default value" for a type. Read more

impl Debug for WindowsMetrics5
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for WindowsMetrics5
[src]

fn clone(&self) -> WindowsMetrics5

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Value for WindowsMetrics5
[src]

fn read<T: Tape>(tape: &mut T) -> Result<Self>

Read a value.