On Mon, Jan 7, 2013 at 6:47 PM, Tom Hacohen <t...@stosb.com> wrote: > Oh you were talking about the whole grid, not just the text. > > Well as for the grid itself (background for example) textgrid should do > this logic on it's own, why would it need an engine to merge rects? This > way textgrid will be able to do it for more than just one row... >
the bg color coalescing/merge yes, could be done. Yet in many cases it wouldn't help yet. if you have alternating colors, it would still issue one context_set() + rectangle_draw() PER char, that will calculate color multiply, that would apply cutouts... and of course generate one useless thread command. The render engine could do better at that. Really I'm even thinking about exposing the Evas_Textgrid_Cell to the engine, removing the need to convert it to its own structure as it's now. It's more efficient, as you can use the indexed palette to save space and operations when looking for colors and multiply. Bad is only that Eina_Unicode codepoint would require exposing the translation to glyph. As for text: the current font_draw will handle a line just fine, unless I > don't understand you correctly. > evas_object_textgrid_size_set() can change the grid cell size, then we'd have to ignore the usual kerning/spacing and use that. We'd have to work to fix and make it usable. with a custom textgrid engine we can simplify the loop: for (y = y0; y < y1; y += h) for (x = x0; x < x1; x += w, glyph++) draw(x, y, w, h, *glyph) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel