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
/// Text baseline being used when drawing text
pub enum TextBaseline {
    /// Text baseline is top of the em square
    Top,

    /// Text baseline is the hanging baseline.
    Hanging,

    /// Text baseline is the middle of the em square.
    Middle,

    /// Text baseline is the normal alphabetic baseline. (default)
    Alphabetic,

    /// Text baseline is the ideographic baseline
    Ideographic,

    /// Text baseline is the bottom of the bounding box.
    Bottom,
}

impl Default for TextBaseline {
    fn default() -> Self {
        TextBaseline::Alphabetic
    }
}