From 5978d79858c89b75860cbd6cee324b54f213a259 Mon Sep 17 00:00:00 2001 From: Ali Alzyod Date: Mon, 2 Dec 2019 10:41:35 +0100 Subject: [PATCH] efl_canvas_text: documentation for style set Summary: Depends on D10607 Original Material: https://www.enlightenment.org/_legacy_embed/evas_textblock_style_page.html Reviewers: woohyun, segfaultxavi, AbdullehGhujeh Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10729 --- src/lib/evas/canvas/efl_canvas_text.eo | 320 ++++++++++++++++++++++++- 1 file changed, 317 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/efl_canvas_text.eo b/src/lib/evas/canvas/efl_canvas_text.eo index e242c78920..25153c2bdd 100644 --- a/src/lib/evas/canvas/efl_canvas_text.eo +++ b/src/lib/evas/canvas/efl_canvas_text.eo @@ -83,10 +83,324 @@ class @beta Efl.Canvas.Text extends Efl.Canvas.Object implements Efl.Text, [[Applies a style to the text object. Applied style attributes override old ones, leaving other attributes unaffected. This is similar to setting individual style attributes using properties like @Efl.Text_Font.font_slant or - @Efl.Text_Format.wrap.]] + @Efl.Text_Format.wrap. + + The style can be set as "attribute"="Value". + Multible attribute can be set at once separated by space. + + The following styling attributes are accepted: + + - Font + - Font fallback + - Font size + - Font source + - Font weight + - Font style + - Font width + - Language + - Color + - Underline Color + - Second Underline Color + - Underline Dash Color + - Outline Color + - Shadow Color + - First Glow Color + - Second Glow Color + - Backing Color + - Strikethrough Color + - Horizontal Align + - Vertical Align + - Wrap + - Left margin + - Right margin + - Underline + - Strikethrough + - Backing + - Style + - Tabstops + - Line size + - Relative line size + - Line gap + - Relative line gap + - Item + - Line fill + - Ellipsis + - Password + - Underline dash width + - Underline dash gap + - Underline height + + Font + This sets the name of the font to be used. + font= + + Font fallback + A comma delimited list of fonts to try if finding the primary font fails. + font_fallbacks= + + Font size + This sets the the size of font in points to be used. + font_size= + + Font source + Specify source from which to search for the font. + font_source= + + Font weight + Sets the weight of the font. The value must be one of: + "normal" + "thin" + "ultralight" + "extralight" + "light" + "book" + "medium" + "semibold" + "bold" + "ultrabold" + "extrabold" + "black" + "extrablack" + font_weight= + + Font style + Sets the style of the font. The value must be one of: + "normal" + "oblique" + "italic" + font_style=