2008/9/2 Jose Gonzalez <[EMAIL PROTECTED]>

>    Gustavo wrote:
>
> > On Tue, Sep 2, 2008 at 8:28 AM, Dave Andreoli <[EMAIL PROTECTED]>
> wrote:
> >
> >> ----- "Cedric BAIL" <[EMAIL PROTECTED]> ha scritto:
> >>
> >>
> >>> On Tue, Sep 2, 2008 at 12:34 PM, Nicolas Aguirre
> >>> <[EMAIL PROTECTED]> wrote:
> >>>
> >>>> 2008/9/2 Atton Jonathan <[EMAIL PROTECTED]>
> >>>>
> >>>>> Currently Edje allows to create an object with relative position,
> >>>>>
> >>> but the
> >>>
> >>>>> text keep a fix size.
> >>>>>
> >>>>> For example in eyelight (presentation tools), if you change the
> >>>>>
> >>> size of the
> >>>
> >>>>> presentation all the presentation will be adapted except the text.
> >>>>> Currently
> >>>>> eyelight displays a presentation with a size of 1024x768, but if we
> >>>>>
> >>> want
> >>>
> >>>>> display a little presentation (in a help tool, display thumbnails)
> >>>>>
> >>> we can't
> >>>
> >>>>> except if we create an image from the default resolution and then
> >>>>>
> >>> resize
> >>>
> >>>>> it.
> >>>>> (not fun, lost animation ...), same problem with a hight
> >>>>>
> >>> resolution.
> >>>
> >>>>> A way will be to define a "default object size", then edje will
> >>>>>
> >>> adapt the
> >>>
> >>>>> text size in relation with the final size of the object.
> >>>>>
> >>>>> What do you think about this feature ?
> >>>>>
> >>>> It seems that
> >>>> fit : 1 1;  in text options, do the job
> >>>>
> >>> Yes, their is autosizing for font in edje, but last time I used it
> >>> was
> >>> slow (trying different font size with a dichotomy) and not really in
> >>> the same 'idea' as the rest of edje. So why don't we have a way to
> >>> define the font size relatively to the size of the edje object, like
> >>> any other item in edje ?
> >>>
> >> Yes, fit does exactly this. If you set fit then you can resize the text
> part
> >> like an image. But you are right that is slow and crappy.. we just need
> >> to make fit works better ;)
> >>
> >
> >
> > it could use some optimizations, but unless we do the text scale
> > ourselves, it will still be a problem and not as smooth as we want.
> >
> > As others are recommending I'd go with different font sizes, use
> > text_class for that.
> >
> >
>
>    Freetype actually allows one to use a matrix for scaling the glyphs that
> it will rasterize (for given face/size). But this isn't being used by evas
> right
> now.
>   The whole issue of text/fonts is a complex one that needs a lot more fine
> detailed attention in evas... maybe a bit further down the road.
>
>
hum I think we need an easy way for changing the font size now. Rewrite all
the text/fonts engine is not necessary for that (I think).


finally I made a bad test :), text_class work well  with in a textblock. So
now I need to get the font and the font size define in the edje file
(edje_text_class_get ...).


>
>
>
> ____________________________________________________________
> Play it loud with a new car stereo! Click here!
>
> http://thirdpartyoffers.juno.com/TGL2141/fc/Ioyw6i3n6nDJ1Kp90i6Y5Vv8UpdaPxoXZrbbdoRC26y1ZyTEDqGNqM/
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Regards.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to