orbtk_utils/text_baseline.rs
1/// Text baseline being used when drawing text
2pub enum TextBaseline {
3 /// Text baseline is top of the em square
4 Top,
5
6 /// Text baseline is the hanging baseline.
7 Hanging,
8
9 /// Text baseline is the middle of the em square.
10 Middle,
11
12 /// Text baseline is the normal alphabetic baseline. (default)
13 Alphabetic,
14
15 /// Text baseline is the ideographic baseline
16 Ideographic,
17
18 /// Text baseline is the bottom of the bounding box.
19 Bottom,
20}
21
22impl Default for TextBaseline {
23 fn default() -> Self {
24 TextBaseline::Alphabetic
25 }
26}