1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// The OutPrecision enumeration defines values for output precision, which is
/// the requirement for the font mapper to match specific font parameters,
/// including height, width, character orientation, escapement, pitch, and font
/// type.
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd, strum::FromRepr, strum::EnumIter)]
#[repr(u8)]
pub enum OutPrecision {
/// A value that specifies default behavior.
OUT_DEFAULT_PRECIS = 0x00000000,
/// A value that is returned when rasterized fonts are enumerated.
OUT_STRING_PRECIS = 0x00000001,
/// A value that is returned when TrueType and other outline fonts, and
/// vector fonts are enumerated.
OUT_STROKE_PRECIS = 0x00000003,
/// A value that specifies the choice of a TrueType font when the system
/// contains multiple fonts with the same name.
OUT_TT_PRECIS = 0x00000004,
/// A value that specifies the choice of a device font when the system
/// contains multiple fonts with the same name.
OUT_DEVICE_PRECIS = 0x00000005,
/// A value that specifies the choice of a rasterized font when the system
/// contains multiple fonts with the same name.
OUT_RASTER_PRECIS = 0x00000006,
/// A value that specifies the requirement for only TrueType fonts. If
/// there are no TrueType fonts installed in the system, default behavior
/// is specified.
OUT_TT_ONLY_PRECIS = 0x00000007,
/// A value that specifies the requirement for TrueType and other outline
/// fonts.
OUT_OUTLINE_PRECIS = 0x00000008,
/// A value that specifies a preference for TrueType and other outline
/// fonts.
OUT_SCREEN_OUTLINE_PRECIS = 0x00000009,
/// A value that specifies a requirement for only PostScript fonts. If
/// there are no PostScript fonts installed in the system, default behavior
/// is specified.
OUT_PS_ONLY_PRECIS = 0x0000000A,
}
crate::wmf::parser::constants::impl_parser!(OutPrecision, u8);