|
From: Maxim S. <mcs...@ya...> - 2003-11-26 04:31:34
|
> Can someone tell me which kinds of shading does AGG support from the PDF > specification? The list from version 1.3 of PDF reference is: > > 1. Function-based shading > 2 Axial shading > 3. Radial shading > 4 Free Form Gouraud > 5. Lattice-from Gouraud > 6 Coons patch mesh > 7 Tensor product patch mesh For now there're only gradients with use an arbitrary C++ functor and Gouraud shading of triangles (linear color interpolation between triangle vertices). The standards usually have gigantomania, they try to describe the whole known Universe, whatever it takes. Take SVG, for example. It's almost impossible to implement all its features in reasonable time and budget. The only more or less full implementation I know is Adobe SVG viewer. But when you try to use some non-trivial possibilities of SVG, it starts crashing, leaking, etc. I try to concentrate on primary needs keeping the implementation efficient and reliable. > Will it be enough if I can somehow convert the outline of the character glyph > > from freetype into a path that AGG can understand? Then instead of having > freetype do the rendering and blending it on top the agg graphics, one can > let AGG render the outlines? Am I making any sense? Yes. There're two ways of using FreeType. Fist is just rendering the rasterized glyps, and secong, to use FreeType as a path source. In the last case you can apply any available transformations, like stroke, contour, etc. Particulary, you can use it as a clipping path (which is not implemented yet). McSeem __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |