World: r3wp
[Postscript] Emitting Postscript from REBOL
older newer | first last |
Graham 19-Apr-2006 [782x3] | Perhaps they should be equal. |
but it may relate to the horizontal displacement problem you're having. | |
can any view experts explain why the difference? | |
Henrik 19-Apr-2006 [785] | that's right. the font points are of a smaller dpi than the coordinate system it seems |
Graham 19-Apr-2006 [786] | I'll submit a rambo ... |
Henrik 19-Apr-2006 [787x2] | I think the font size is bound to the screen resolution |
under linux they tend to go up or down, because you can set the DPI settings in X | |
Graham 19-Apr-2006 [789] | So, what do you suggest? |
Henrik 19-Apr-2006 [790] | post a RAMBO and see what happens. at least on the size difference between fonts in VID and fonts in DRAW |
Graham 19-Apr-2006 [791] | Perhaps you can .. |
Henrik 19-Apr-2006 [792] | I can't confirm it, and I haven't worked that much with it yet to be certain. |
Graham 20-Apr-2006 [793x3] | Posted a rambo on the subject. |
I can't see RT changing anything here without invalidating every script before that uses a | |
font. | |
Henrik 20-Apr-2006 [796] | it'll have to be worked around for now. if the size deviation is proportional to the size of the font, it could be fixed with a coefficient on the font size of the DRAW text |
Graham 20-Apr-2006 [797x2] | Chris posted this to me |
Is this indicative of the current problem? >> foreach typeface ["arial" "times new roman" "verdana" "trebuchet ms"][ [ layout [tx: text font [name: typeface size: 10] do [probe second size-text tx]] [ ] 13 12 12 15 | |
Henrik 21-Apr-2006 [799x2] | hmm... preview.app has a funny way of detecting when to rotate the paper. if the first given text is rotated 90 degrees, it will rotate the paper, otherwise it will not. I wonder if this is standard behaviour? |
oh, great, now I can't print Danish letters with PS | |
JaimeVargas 21-Apr-2006 [801] | Starting to hit the inticancies of the postscript language? |
Henrik 21-Apr-2006 [802x7] | geomol, seems postscript.r needs to be patched to convert the chars to octals to print them out |
jaime, just need to figure out how to do it | |
(under a bit of time pressure) | |
geomol: http://www.sslug.dk/emailarkiv/prog/2002_09/msg00132.html <--- this might be interesting | |
geomol, actually the entire thread is interesting | |
by inserting the code in postscript.r I can get the chars I want. works fine now, but you need to specify the fonts correctly from "HelveticaBold" to "HelveticaBold-ISOLatin1" instead. | |
(the code mentioned in the link) | |
Geomol 21-Apr-2006 [809] | Ok, I'll take a look... |
Henrik 21-Apr-2006 [810] | geomol, I can upload what I did |
Geomol 21-Apr-2006 [811] | Seems a bit complicated to get ISO-8859-1. What about other languages? |
Henrik 21-Apr-2006 [812x2] | I don't know. strangely, I didn't need them :-) |
I tried representing the chars with octals, but that didn't work. I don't know what I did wrong, but it would be a simpler solution | |
Gabriele 22-Apr-2006 [814] | pdf does not support unicode fonts, and i guess the same might be true for ps... so good luck :) |
Henrik 22-Apr-2006 [815] | is anyone working on higher level stuff for postscript.r? I'm going to work on a table generator |
Graham 22-Apr-2006 [816] | I'm semi-wondering about implementing text that flows from page to page with full justification. |
Henrik 22-Apr-2006 [817] | about DRAW, I'm sure how fit it is for this yet. I had serious problems with it under Linux today (misalignment and crashes too) |
Graham 22-Apr-2006 [818x2] | well, if you have crashes, you need to report them. |
Did I mention that I have three columns of text snaking up and down an A4 page? | |
Henrik 22-Apr-2006 [820x2] | if I could test it... wasn't on my machine and I couldn't get console output |
that sounds interesting? | |
Graham 22-Apr-2006 [822] | that was your runner labeling application? |
Henrik 22-Apr-2006 [823x2] | the centering algorithm I wrote didn't work under Linux either |
because of the stupid differences in font sizes | |
Graham 22-Apr-2006 [825] | Hang on. |
Henrik 22-Apr-2006 [826] | yes, I rewrote the preview to be done with VID. I lost anti alias, but gained proper centering |
Graham 22-Apr-2006 [827x2] | What you should be doing is writing a preview in draw, but have a postscript routine that does centering for you. |
That would work. | |
Henrik 22-Apr-2006 [829x3] | yes it would |
I suppose I should modify postscript.r some more | |
it would also be needed for proper paragraphs in tables | |
older newer | first last |