World: r3wp
[Postscript] Emitting Postscript from REBOL
older newer | first last |
Graham 15-Apr-2006 [632] | I'm pretty sure they're supposed to be equivalent. |
Maxim 15-Apr-2006 [633] | IIRC when I was trying to match linux fonts to windows... arial and helvetica where pretty different when applied over each other... |
Graham 16-Apr-2006 [634x2] | Sigh .. looks like I need a better way to map postscript points to the draw coordinate system. |
Gabriele .. any hints? | |
Henrik 16-Apr-2006 [636] | would it be possible to use caret-to-offset? |
Graham 16-Apr-2006 [637x2] | I need some fudge factor .. at present I am off by a little high and to the right. |
I am previewing my draw doc, and when I generate the ps file, the coordinates are to the north-east in the ps file. | |
Henrik 16-Apr-2006 [639x2] | could it be an aspect ratio problem? |
or is the offset constant all over the drawing area? | |
Graham 16-Apr-2006 [641x14] | so presumably I have to reduce them a little in the south-west direction |
I'm not sure. I guess I should try a scientific method of determing this. | |
ie. draw a grid and see what happens | |
at present, I am keeping the x as is, and just reducing the y by the size of the page | |
so an a4 page which is 595x842 points, 0x0 becomes 0x842 | |
This Rops viewer is very demanding .. doesn't like the postscript I am emitting, but ps2pdf works fine :( | |
Agghh.. maybe the mapping is okay after all! | |
Using my "postscript" draw viewer at 83%, it looks almost exactly the same as the RoPS viewer at 60%. So, the mapping is pretty accurate. I was being fooled by the acrobate conversion which is not so accurate. | |
try this out ... | |
do http://www.compkarori.com/reb/psd2draw.r | |
when you click on the "print" button, it generates a test.ps file which is the postscript "equivalent" of the stuff on screen ... except for the rotated objects | |
which are not placed correctly. | |
I map the standard postscript fonts to the free GNU postscript equivalents in that zip file I mentioned. | |
true type equivalents ie. | |
Henrik 16-Apr-2006 [655] | ok |
Graham 16-Apr-2006 [656] | I am a little confused about some of these ps fonts - sometime it's called BoldItalic, and other times it's called BoldOblique |
Henrik 16-Apr-2006 [657x2] | http://www.hmkdesign.dk/chestmark.pdf<-- an old version of the chestmark |
but this is basically what I need to do | |
Graham 16-Apr-2006 [659x6] | It looks doable to me. |
You don't actually have to change to using my dialect. | |
You can create the barcode in John's as an eps image, and insert it into the postscript. | |
I presume you don't really need to preview the barcode. | |
an eps file is just a postscript file which obeys certain conventions. | |
Anyways, I quite chuffed to get this preview and printing to postscript working ... after years of no way of printing from Rebol. | |
Henrik 16-Apr-2006 [665] | got a bit of a makeshift preview now. maybe I'll use it for the next version for the other races I'm doing this for |
Graham 16-Apr-2006 [666] | So, you got mine working?? |
Henrik 16-Apr-2006 [667x3] | nope, I made a little layout that works like a preview |
hand-made but it's enough | |
for now... later on I will be needing to create a real preview, so I'll be looking into it | |
Graham 16-Apr-2006 [670] | to get the ps dialect matching the draw dialect, I need to make the text obey cr/lfs. |
Henrik 16-Apr-2006 [671] | fortunately I don't think I need that |
Anton 17-Apr-2006 [672] | That's pretty good work Graham ! Well done guys. |
Chris 17-Apr-2006 [673] | OT: How to Spot Arial -- http://www.ms-studio.com/articlesarialsid.html |
Graham 17-Apr-2006 [674x2] | This is one of the main things that makes Arial look like Helvetica at first glance, even though the details are different. |
At work today, and got a chance to try out the postscript printers. It's amazing .. I can print from my draw preview to either the network colour postscript printer, or to the old HP Laserjet 4MP on the lpt1: | |
Henrik 17-Apr-2006 [676x2] | and with ridiculously little code |
I'm wondering now whether the tendency for new printers to have built in postscript is going up or down... | |
Graham 17-Apr-2006 [678x4] | I remember that NeXT printers were so cheap because all the postscript processing was done by the NeXt OS, and so the printer was just a bare engine. |
A bit like Windows printers I guess. | |
If you don't have a postscript printer .. I recall in the old days you created a large bitmap in memory, and then printed it all out dot by dot. | |
I remember driving my dot matrix printer like that. | |
older newer | first last |