1use freetype::{FT_Char, FT_UShort, FT_Short, FT_ULong, FT_Byte};
11
12#[repr(C)]
13pub struct TT_OS2 {
14 pub version: FT_UShort,
15 pub xAvgCharWidth: FT_Short,
16 pub usWeightClass: FT_UShort,
17 pub usWidthClass: FT_UShort,
18 pub fsType: FT_Short,
19 pub ySubscriptXSize: FT_Short,
20 pub ySubscriptYSize: FT_Short,
21 pub ySubscriptXOffset: FT_Short,
22 pub ySubscriptYOffset: FT_Short,
23 pub ySuperscriptXSize: FT_Short,
24 pub ySuperscriptYSize: FT_Short,
25 pub ySuperscriptXOffset: FT_Short,
26 pub ySuperscriptYOffset: FT_Short,
27 pub yStrikeoutSize: FT_Short,
28 pub yStrikeoutPosition: FT_Short,
29 pub sFamilyClass: FT_Short,
30
31 pub panose: [FT_Byte; 10],
32
33 pub ulUnicodeRange1: FT_ULong, pub ulUnicodeRange2: FT_ULong, pub ulUnicodeRange3: FT_ULong, pub ulUnicodeRange4: FT_ULong, pub achVendID: [FT_Char; 4],
39
40 pub fsSelection: FT_UShort,
41 pub usFirstCharIndex: FT_UShort,
42 pub usLastCharIndex: FT_UShort,
43 pub sTypoAscender: FT_Short,
44 pub sTypoDescender: FT_Short,
45 pub sTypoLineGap: FT_Short,
46 pub usWinAscent: FT_UShort,
47 pub usWinDescent: FT_UShort,
48
49 pub ulCodePageRange1: FT_ULong, pub ulCodePageRange2: FT_ULong, pub sxHeight: FT_Short,
57 pub sCapHeight: FT_Short,
58 pub usDefaultChar: FT_UShort,
59 pub usBreakChar: FT_UShort,
60 pub usMaxContext: FT_UShort,
61}