I know this is probably a quite specific question but I would like to use the rrcurveto Operator in a PostScript File to draw a Font Glyph. I am using ps2pdf as Interpreter (Because I don't get GhostView to run on my M1 Mac) which might make trouble in this case. Furthermore I can't use for example the hsbw Operator. Do I have to use a certain Dictionary for these Operators? I would appreciate help a lot!
I tried replacing the Operators, which isn't easy when it comes to rrcurve. I also tried to use the CharStrings Dictionary but I'm not sure wether I implemented it correctly.
CodePudding user response:
This operator doesn't exist in PostScript, but it is very similar to the rcurveto
operator. You can write it like this, adding the various vectors together:
/rrcurveto { % dx1 dy1 dx2 dy2 dx3 dy3 . -
1 dict begin
{dy3 dx3 dy2 dx2 dy1 dx1}{exch def}forall
dx1 dy1
dx1 dx2 add dy1 dy2 add
dx1 dx2 dx3 add add dy1 dy2 dy3 add add
rcurveto
end
} def