summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-05-22 17:36:41 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2017-05-28 13:36:16 +0300
commitda2ef30f2b4d53aa3c1658b83c8c8381743469a0 (patch)
treea6c7bc8bdf26546de71592c90ff4b915df4e03dc /src/lib/efl/interfaces/efl_text_font.eo
parent57a0343775f41e256d8b8d7e0e2faeec19851b09 (diff)
Efl text: add Font, Format and Style interfaces
The following text interfaces are added: - Efl.Text.Font: font settings that decide which font to display in the text - Efl.Text.Format: formatting that affects the looks and layout of the text - Efl.Text.Style: decorations and overlays that shouldn't affect the font choice or the layout @feature
Diffstat (limited to 'src/lib/efl/interfaces/efl_text_font.eo')
-rw-r--r--src/lib/efl/interfaces/efl_text_font.eo117
1 files changed, 117 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
new file mode 100644
index 0000000000..3f4a1ac511
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_text_font.eo
@@ -0,0 +1,117 @@
1// src/lib/efl/interfaces/efl_text_font.eo
2
3enum Efl.Text.Font.Weight {
4 [[Type of font weight]]
5 normal,
6 thin,
7 ultralight,
8 extralight,
9 light,
10 book,
11 medium,
12 semibold,
13 bold,
14 ultrabold,
15 extrabold,
16 black,
17 extrablack,
18}
19
20enum Efl.Text.Font.Width {
21 [[Type of font width]]
22 normal,
23 ultracondensed,
24 extracondensed,
25 condensed,
26 semicondensed,
27 semiexpanded,
28 expanded,
29 extraexpanded,
30 ultraexpanded,
31}
32
33enum Efl.Text.Font.Slant {
34 [[Type of font slant]]
35 normal,
36 oblique,
37 italic,
38}
39
40interface Efl.Text.Font {
41 [[Font settings of the text
42
43 @since 1.20
44 ]]
45 methods {
46 @property font {
47 [[The font name and size that is used for the displayed text]]
48 values {
49 font: string;
50 size: int;
51 }
52 }
53 @property font_source {
54 [[The source that will be used to lookup the font of the text
55
56 The source can be either a path to a font file e.g.
57 "/path/to/font.ttf", or an eet file e.g. "/path/to/font.eet".
58 ]]
59 values {
60 font_source: string;
61 }
62 }
63
64 @property font_fallbacks {
65 [[Comma-separated list of font fallbacks
66
67 Will be used in case the primary font isn't available.
68 ]]
69 values {
70 font_fallbacks: string;
71 }
72 }
73
74 @property font_weight {
75 [[Type of weight of the displayed font
76
77 Default is $Efl.Text.Font.Weight.normal\.
78 ]]
79 values {
80 font_weight: Efl.Text.Font.Weight;
81 }
82 }
83
84 @property font_slant {
85 [[Type of slant of the displayed font
86
87 Default is $Efl.Text.Font.Slant.normal\.
88 ]]
89 values {
90 style: Efl.Text.Font.Slant;
91 }
92 }
93
94 @property font_width {
95 [[Type of width of the displayed font
96
97 Default is $Efl.Text.Font.Width.normal\.
98 ]]
99 values {
100 width: Efl.Text.Font.Width;
101 }
102 }
103
104 @property font_lang {
105 [[Specific language of the displayed font
106
107 This is used to lookup fonts suitable to the specified language, as
108 well as helping the font shaper backend.
109 The language $lang can be either a code e.g "en_US",
110 "auto" to use the system locale, or "none".
111 ]]
112 values {
113 lang: string;
114 }
115 }
116 }
117}