On Fri, Feb 11, 2011 at 11:10 AM, John Dovers <j30...@hotmail.com> wrote:
> Is in Evas functionality provided for wordwrapping text and text alignment? > I have a bounding rectangle in which a text should be displayed. I would > like to > > - align it to the left, center or right (horizonally), and > - align it in the middle (vertically), and > - wordwrap it such that text is appended with '...' when a text overflow > occurs. > First of all, yes. As for exact details, it depends what you need. There are two text objects in evas, text and textblock. text is for simple text, i.e single line and no mixed formatting (i.e multi-colors or bold and non-bold in the same text) and textblock has multi-line and mixed formatting support. There are more differences, but those are the most important ones. If you are willing to use edje, the text object supports vertical and horizontal alignment and also "wrapping" which is actually called ellipsis, wrapping is mostly use for cutting text and going down a line. Text actually supports ellipsis in many positions in the text, for example, 0.0 means start, 1.0 end, 0.7 somewhere in between. Textblock can do horizontal alignment and 1.0 ellipsis without edje, but no vertical alignment. I don't remember if textblock + edje lets you do vertical alignment. In other words, if you don't need any complex formatting, use text object. -- Tom. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel