> imacarthur wrote:
> > About 20-plus years ago, I wrote a PS to CGM "interpreter" for a  
> > display unit we had.
> 
>       Yikes -- sounds like a big project to parse postscript 
> and convert..!

Not so bad as it sounds... The device who's output we were processing
only used a subset of all that PS allows (basically only vector drawing
strokes and fills, and some text - no embedded hex images or etc.)

So mainly what I did was convert PS vector drawing commands into CGM
vector drawing commands, and the mapping was not too bad.

Of course, managing the PS stack (which has no real analogue in CGM) was
a bit of a problem, and the text was a problem - no easy way to handle
fonts embedded in the PS output, so I tended to just substitute CGM
fonts in a rather haphazard way...

This worked, and the stuff output (to the plotter) actually looked fine
- nobody knew what a hack it was under the covers.

But I do know I don't fancy doing any of that stuff again...

-- 
Ian


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to