summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2017-09-25 18:34:22 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-09-26 11:31:31 +0900
commit17504106501cec1a0a85eb380c5dea7e0ca3729c (patch)
tree942944734aa98b84c791206bdc6c5db1e084c3ae /src/lib/efl
parentbb887f9869c3dd9eca72c8e65f335d148f9dbdd3 (diff)
evas: Add scale feature for embedded bitmap fonts.
Summary: When evas selects a strike of embedded bitmap font, calculate ratio and use it for scaling embedded bitmap. @feature Reviewers: jpeg, tasn, woohyun, raster, herdsman Reviewed By: raster Subscribers: charlesmilette, Francesco149, cedric Differential Revision: https://phab.enlightenment.org/D2713
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_text_font.eo24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
index b43c522c2a..b68e142b6f 100644
--- a/src/lib/efl/interfaces/efl_text_font.eo
+++ b/src/lib/efl/interfaces/efl_text_font.eo
@@ -37,6 +37,18 @@ enum Efl.Text.Font.Slant {
37 italic, [[Italic font slant]] 37 italic, [[Italic font slant]]
38} 38}
39 39
40/* FIXME: It needs to support "normal" option for non-color bitmap font.
41 For supporting "normal" option, S/W glyph drawing engine should be updated.
42 */
43enum Efl.Text.Font.Bitmap_Scalable {
44 [[Scalable of bitmap fonts
45
46 @since 1.21
47 ]]
48 none = 0, [[Disable scalable feature for bitmap fonts.]]
49 color = (1 << 0), [[Enable scalable feature for color bitmap fonts.]]
50}
51
40interface Efl.Text.Font { 52interface Efl.Text.Font {
41 [[Font settings of the text 53 [[Font settings of the text
42 54
@@ -114,5 +126,17 @@ interface Efl.Text.Font {
114 lang: string; [[Language]] 126 lang: string; [[Language]]
115 } 127 }
116 } 128 }
129
130 @property font_bitmap_scalable {
131 [[The bitmap fonts have fixed size glyphs for several available sizes.
132 Basically, it is not scalable. But, it needs to be scalable for some use cases.
133 (ex. colorful emoji fonts)
134
135 Default is $Efl.Text.Font.Bitmap_Scalable.none\.
136 ]]
137 values {
138 scalable: Efl.Text.Font.Bitmap_Scalable; [[Scalable]]
139 }
140 }
117 } 141 }
118} 142}