diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2017-09-25 18:34:22 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-09-26 11:31:31 +0900 |
commit | 17504106501cec1a0a85eb380c5dea7e0ca3729c (patch) | |
tree | 942944734aa98b84c791206bdc6c5db1e084c3ae /src/lib/efl/interfaces | |
parent | bb887f9869c3dd9eca72c8e65f335d148f9dbdd3 (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/interfaces')
-rw-r--r-- | src/lib/efl/interfaces/efl_text_font.eo | 24 |
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 | */ | ||
43 | enum 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 | |||
40 | interface Efl.Text.Font { | 52 | interface 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 | } |