> > > 3. the viewport actually doesn't give you anything you can't
> > > really achieve by just scaling objects.
> > 
> >     Yes, except that they won't be able to scale everything
> > as might be desired.
> >     eg. for image borders one'd need an evas api func to
> > set 'image_border_fill' (lw,rw,th,bh kind of inputs), and for
> > text...... Well, the most satisfying way of dealing with this
> > would be to use freetype to pick an idex that best fits a given
> > x,y scale (though I'm not sure how well that would work with
> > bitmap font glyphs). But without automatic viewport scaling,
> > it would mean an api func for setting a text obj's 'scaling'
> > somehow.
> 
> actually for border scaling before it didn't do this right with
> the viewport anyway - that was my point. it would have given you
> the same output as just scaling the canvas object  :) 

        Yup, it never did it correctly. Neither of 'canvas-scaling'
(per Simon's comments) nor 'viewport-scaling' is really a substitute
for the other. But for completeness and consistency, the api should
allow you to obtain (correct) viewport-scaling via suitably 'scaling'
object properties -- and if the canvas consists only of image objs
say, then this should agree with canvas-scaling.

        Right now this lacks only 'border-fill' and 'text-scaling'
funcs -- and correct implementations thereof (angle related stuff
just needs the user to modify things accordingly. I should've
done it before when viewport-scaling was still around, but just
never got around to it).

        The text related scaling implementation should use freetype
internally to get this 'right' as much as possible - that's likely
to be a pain in the font-butt, but should be doable. Doesn't seem
like a pressing issue to me though to get this 'fixed' right away,
for some reason.

        The border related implementation is easier, very easy
really for the software engines, but for xrender and gl it's
going to be a pita to get this working efficiently (it's a pita
already).
        Actually, now that I think about it.. I'd have to re-write
all the span-based software scaling funcs that I just did..

        Ummmmmm...... absolute border sizing is also starting to
sound like less of an issue to me, for some reason.

   jose.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to