summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-12-26 18:08:00 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-12-26 18:08:00 +0900
commit55e9d31569eabe313a60cc2ea2ccb103d52ab203 (patch)
tree7a3b14588778e0213bf365c7702caa0aeda70ef2 /src/lib/efl/interfaces/efl_text_font.eo
parent3bd4f04ec7392c7e4b745082303ac28fbfc2b2d6 (diff)
efl.text.font: rename to efl.text.font.properties
Reviewers: segfaultxavi, woohyun, zmike, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7855 Differential Revision: https://phab.enlightenment.org/D10966
Diffstat (limited to 'src/lib/efl/interfaces/efl_text_font.eo')
-rw-r--r--src/lib/efl/interfaces/efl_text_font.eo172
1 files changed, 0 insertions, 172 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
deleted file mode 100644
index dce81a7e10..0000000000
--- a/src/lib/efl/interfaces/efl_text_font.eo
+++ /dev/null
@@ -1,172 +0,0 @@
1import efl_gfx_types;
2enum @beta Efl.Text_Font_Weight {
3 [[Type of font weight.]]
4 normal, [[Normal font weight.]]
5 thin, [[Thin font weight.]]
6 ultralight, [[Ultralight font weight.]]
7 extralight, [[Extralight font weight.]]
8 light, [[Light font weight.]]
9 book, [[Book font weight.]]
10 medium, [[Medium font weight.]]
11 semibold, [[Semibold font weight.]]
12 bold, [[Bold font weight.]]
13 ultrabold, [[Ultrabold font weight.]]
14 extrabold, [[Extrabold font weight.]]
15 black, [[Black font weight.]]
16 extrablack, [[Extrablack font weight.]]
17}
18
19enum @beta Efl.Text_Font_Width {
20 [[Type of font width.]]
21 normal, [[Normal font width.]]
22 ultracondensed, [[Ultracondensed font width.]]
23 extracondensed, [[Extracondensed font width.]]
24 condensed, [[Condensed font width.]]
25 semicondensed, [[Semicondensed font width.]]
26 semiexpanded, [[Semiexpanded font width.]]
27 expanded, [[Expanded font width.]]
28 extraexpanded, [[Extraexpanded font width.]]
29 ultraexpanded, [[Ultraexpanded font width.]]
30}
31
32enum @beta Efl.Text_Font_Slant {
33 [[Type of font slant.]]
34 normal, [[Normal font slant.]]
35 oblique, [[Oblique font slant.]]
36 italic, [[Italic font slant.]]
37}
38
39/* FIXME: It needs to support "normal" option for non-color bitmap font.
40 For supporting "normal" option, S/W glyph drawing engine should be updated.
41 */
42enum @beta Efl.Text_Font_Bitmap_Scalable {
43 [[Scalable of bitmap fonts.
44 ]]
45 none = 0, [[Disable scalable feature for bitmap fonts.]]
46 color = (1 << 0), [[Enable scalable feature for color bitmap fonts.]]
47}
48
49interface @beta Efl.Text_Font {
50 [[Font settings for text.
51 ]]
52 c_prefix: efl_text;
53 methods {
54 @property font_family {
55 [[The font family, filename for a given text object.
56
57 This property controls the font name of a text object.
58 The font string has to follow fontconfig's convention for
59 naming fonts, as it's the underlying library used to query system
60 fonts by EFL (see the $[fc-list] command's output, on your system,
61 to get an idea). Alternatively, you can use the full path to a font
62 file.
63
64 When reading it, the font name string is still owned by
65 EFL and should not be freed.
66 See also @.font_source.
67 ]]
68 set {
69 }
70 get {
71 }
72 values {
73 font: string; [[The font family name or filename.]]
74 }
75 }
76
77 @property font_size {
78 [[The font size for a given text object.
79
80 This property controls the font size of a text object.
81 ]]
82 set {}
83 get {}
84 values {
85 size: Efl.Font.Size; [[The font size, in points.]]
86 }
87 }
88
89 @property font_source {
90 [[The font (source) file to be used on a given text object.
91
92 This function allows the font file to be explicitly set for a
93 given text object, overriding system lookup, which will first
94 occur in the given file's contents.
95
96 See also @.font_family.
97 ]]
98 set {
99 }
100 get {
101 }
102 values {
103 font_source: string; [[The font file's path.]]
104 }
105 }
106
107 @property font_fallbacks {
108 [[Comma-separated list of font fallbacks.
109
110 Will be used in case the primary font isn't available.
111 ]]
112 values {
113 font_fallbacks: string; [[List of fallback font names.]]
114 }
115 }
116
117 @property font_weight {
118 [[Type of weight of the displayed font
119
120 Default is @Efl.Text_Font_Weight.normal.
121 ]]
122 values {
123 font_weight: Efl.Text_Font_Weight; [[Font weight.]]
124 }
125 }
126
127 @property font_slant {
128 [[Type of slant of the displayed font.
129
130 Default is @Efl.Text_Font_Slant.normal.
131 ]]
132 values {
133 style: Efl.Text_Font_Slant; [[Font slant.]]
134 }
135 }
136
137 @property font_width {
138 [[Type of width of the displayed font.
139
140 Default is @Efl.Text_Font_Width.normal.
141 ]]
142 values {
143 width: Efl.Text_Font_Width; [[Font width.]]
144 }
145 }
146
147 @property font_lang {
148 [[Specific language of the displayed font
149
150 This is used to lookup fonts suitable to the specified language, as
151 well as helping the font shaper backend.
152 The language $lang can be either a code e.g "en_US",
153 "auto" to use the system locale, or "none".
154 ]]
155 values {
156 lang: string; [[Language code.]]
157 }
158 }
159
160 @property font_bitmap_scalable {
161 [[The bitmap fonts have fixed size glyphs for several available sizes.
162 Basically, it is not scalable. But, it needs to be scalable for some use cases.
163 (e.g. colorful emoji fonts)
164
165 Default is @Efl.Text_Font_Bitmap_Scalable.none.
166 ]]
167 values {
168 scalable: Efl.Text_Font_Bitmap_Scalable; [[Scalable.]]
169 }
170 }
171 }
172}