|
From: Salman K. <sk...@ta...> - 2003-11-26 02:31:48
|
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 Also from the PDF specification, one can use character glyphs as clipping paths. One can also apply patterns and shadings to character glyphs. I was thinking about using freetype for all font rendering. If one uses freetype, then this would not be possible. 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? BTW, I would like to start a project that can create PDF using C++. One should be able to do the drawings in user-space coords using AGG and then export the result as a PDF file. Right now, I am not interested in supporting all the color specifications that PDF specifies....just device dependent RGB is enough for me. Anyone already got a similar C++ based project that I might contribute to? Salman |