Re: Glyph Outlines in Trace Driver

Allen Blaylock <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <[email protected]>
Ken,

>>How would one transform the glyph outlines into the current coordinate space?

>You need to apply the matrix from the font instance (bearing in mind that it may be a descendant font of a CIDFont or type 0 PostScript composite font, so you may have to apply either/both of the parent and descendant
>matrices) and the Current Transformation Matrix (ctm), which is stored in the graphics state.

How do I determine which transforms I need to apply? 
Where are they stored (I know where ctm is and how to access it)? 
In the gs_font structure I see a gs_matrix FontMatrix, and gs_matrix orig_FontMatrix, as well as the same matrices held in the gs_font *base entry as well as the gs_font *next and prev. There are such a large number of possible matrices and I haven't been able to find a good description of them in the code or the documents online.
Is there a set of code which sets everything up to append the path to the path provided in text_begin? 
Maybe there is a better way of doing this where some function already appends everything to the path and then I can catch it on the tail end?

The end goal is to just grab the text outline and dump it like any other paths in the trace driver, I may be chasing the wrong solution entirely. Feel free to say that as well.

Thank you,
Allen Blaylock
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.