From 17504106501cec1a0a85eb380c5dea7e0ca3729c Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Mon, 25 Sep 2017 18:34:22 +0900 Subject: 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 --- src/lib/efl/interfaces/efl_text_font.eo | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/lib/efl/interfaces') 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 { italic, [[Italic font slant]] } +/* FIXME: It needs to support "normal" option for non-color bitmap font. + For supporting "normal" option, S/W glyph drawing engine should be updated. + */ +enum Efl.Text.Font.Bitmap_Scalable { + [[Scalable of bitmap fonts + + @since 1.21 + ]] + none = 0, [[Disable scalable feature for bitmap fonts.]] + color = (1 << 0), [[Enable scalable feature for color bitmap fonts.]] +} + interface Efl.Text.Font { [[Font settings of the text @@ -114,5 +126,17 @@ interface Efl.Text.Font { lang: string; [[Language]] } } + + @property font_bitmap_scalable { + [[The bitmap fonts have fixed size glyphs for several available sizes. + Basically, it is not scalable. But, it needs to be scalable for some use cases. + (ex. colorful emoji fonts) + + Default is $Efl.Text.Font.Bitmap_Scalable.none\. + ]] + values { + scalable: Efl.Text.Font.Bitmap_Scalable; [[Scalable]] + } + } } } -- cgit v1.2.1