On Fri, 7 Mar 2008 23:53:55 -0300 "Gustavo Sverzut Barbieri"
<[EMAIL PROTECTED]> babbled:

> Hi,
> 
> Just identified that
> 
>          part {
>             name: "text";
>             type: TEXT;
>             description {
>                state: "default" 0.0;
>                rel2 {
>                   relative: 0.0 1.0;
>                   offset: 118 -1;
>                }
>                text {
>                   font: "Vera Sans:style=Bold";
>                   size: 20;
>                   text: "Some text";
>                }
>             }
> 
> will cause Edje to mis calculate and return an empty string as result.
> Increasing or decreasing it by one pixel in width will make it "work"
> again, so it's a bit tricky to found in real world applications (but
> we did).

i have seen this... sometimes. and yes - 1 pixel can make it go from empty to
correct, back to empty to correct again... :(

> But trickier than finding this is to get the logic of
> _edje_text_fit_x()... maybe someone else is more familiar with it and
> can provide some insight? If not then I'll dig into it later.

that is mucho evil code. thar be dragons.

>     BTW, why these kind of constructions are not provided by Evas?
> Evas should provide these high level utilities, like how many of some
> given text will fit in given width, height or both (these last 2 in in
> case of textblock). Also, since adding ellipses are a common case, we
> could add it as well. Maybe we could also use this to speed up these
> calcs, since calling all those Evas functions from inside Edje can be
> a bit a hit in performance :-/

well evas could provide them. i opted for now not to as it wasnt a big
difference if it were inside evas or outside, the code paths wouldnt differ
enough to make a big difference i think.

> -- 
> Gustavo Sverzut Barbieri
> http://profusion.mobi
> Embedded Systems
> --------------------------------------
> MSN: [EMAIL PROTECTED]
> Skype: gsbarbieri
> Mobile: +55 (81) 9927 0010
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to