summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
blob: 3f4a1ac51183191cfa625aeb25a6fd5a61e4934b (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// src/lib/efl/interfaces/efl_text_font.eo

enum Efl.Text.Font.Weight {
   [[Type of font weight]]
   normal,
   thin,
   ultralight,
   extralight,
   light,
   book,
   medium,
   semibold,
   bold,
   ultrabold,
   extrabold,
   black,
   extrablack,
}

enum Efl.Text.Font.Width {
   [[Type of font width]]
   normal,
   ultracondensed,
   extracondensed,
   condensed,
   semicondensed,
   semiexpanded,
   expanded,
   extraexpanded,
   ultraexpanded,
}

enum Efl.Text.Font.Slant {
    [[Type of font slant]]
    normal,
    oblique,
    italic,
}

interface Efl.Text.Font {
   [[Font settings of the text

     @since 1.20
   ]]
   methods {
      @property font {
         [[The font name and size that is used for the displayed text]]
         values {
            font: string;
            size: int;
         }
      }
      @property font_source {
         [[The source that will be used to lookup the font of the text

           The source can be either a path to a font file e.g.
           "/path/to/font.ttf", or an eet file e.g. "/path/to/font.eet".
         ]]
         values {
            font_source: string;
         }
      }

      @property font_fallbacks {
         [[Comma-separated list of font fallbacks

           Will be used in case the primary font isn't available.
         ]]
         values {
            font_fallbacks: string;
         }
      }

      @property font_weight {
         [[Type of weight of the displayed font

           Default is $Efl.Text.Font.Weight.normal\.
         ]]
         values {
            font_weight: Efl.Text.Font.Weight;
         }
      }

      @property font_slant {
         [[Type of slant of the displayed font

           Default is $Efl.Text.Font.Slant.normal\.
         ]]
         values {
            style: Efl.Text.Font.Slant;
         }
      }

      @property font_width {
         [[Type of width of the displayed font

           Default is $Efl.Text.Font.Width.normal\.
         ]]
         values {
            width: Efl.Text.Font.Width;
         }
      }

      @property font_lang {
         [[Specific language of the displayed font

           This is used to lookup fonts suitable to the specified language, as
           well as helping the font shaper backend.
           The language $lang can be either a code e.g "en_US",
           "auto" to use the system locale, or "none".
         ]]
         values {
            lang: string;
         }
      }
   }
}