Re: Glyph Outlines in Trace Driver
Ken Sharp <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
At 17:24 12/06/2015 +0000, Allen Blaylock wrote:
>approximately the same value. The next time text_begin is called a similar
>move to is executed the passed in path variable is approximately the same
>while the first element of the path returned by glyph_outline is (5927
>1.05166e+006 moveto) with all subsequent path elements having points of
>approximately the same value.
>
>Why is there such a large difference in the magnitudes of the path values
>between glyph outlines?
I'd have to see your code to see what you are doing, but I suspect the
simple answer is that you shouldn't be doing it in text_begin.
You should be appending each glyph in the enumerator's 'text_process'
method I think.
>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.
>Is text_begin the correct place to be doing this kind of operation?
I suspect not, but its kind of hard to be sure without seeing and tracing
your code. Also I'm working from memory at this time of night which is not
completely reliable....
Ken