Re: Rotated text



Have a look at paps at:

    http://imagic.weizmann.ac.il/~dov/freesw/paps/

It shows you how to extract the freetype2 glyphs from a pango layout.
Rendering the glyphs at an angle should be pretty straightforward 
through the freetype2 API.

Regards,
Dov

On Thu, Nov 21, 2002 at 08:04:30PM +0100, Sven Neumann wrote:
> Hi,
> 
> "Ian King [ES]" <king eiffel com> writes:
> 
> > What makes you think this is so easy?  For 90, 180 and 270 degrees it's
> > fairly simple but what about 45?  I have played about with the gimp and they
> > only support limited (90, 180, 270) rotation.  Am I missing something here,
> > gdk allows me to render text, can I render that text (or even anything)
> > rotated or is that beyond the scope of the `drawing' kit.
> 
> afaik, it is beyond its scope at the moment. Perhaps it will be added
> with a later release of Pango.
> 
> There are however ways to to hack around this limitation. You could
> for example render the text to an offscreen drawable and rotate it
> then. That's OK for multiples of 90 degrees but totally ruins
> antialiasing and hinting for other angles. Probably better to do the
> rendering yourself using with freetype2. The glyph layout can be
> calculated by transforming the metrics calculated by PangoFT2 for the
> unrotated text.
> 
> 
> Salut, Sven
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 
                                                        ___   ___
                                                      /  o  \   o \
Dov Grobgeld                                         ( o  o  ) o   |
The Weizmann Institute of Science, Israel             \  o  /o  o /
"Where the tree of wisdom carries oranges"              | |   | |
                                                       _| |_ _| |_
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]