[cairo] postscript bug.

Charles Samir Doutriaux doutriaux1 at llnl.gov
Wed Oct 8 07:54:35 PDT 2008


Ok i'm reposting this to the list so we can involve more people.

I now understand what you "see"

Actually i use plain "gs" to look at the files, it understand the  
actual size of the postscript and displays the whole thing, you can  
also simply send them to a printer

in ggv i used to see the same thing as you but then simply telling it  
what the page size actuall is did fix the "viewing" problem.

Once it understand that the page is actually portrait not landscape  
and that it displays the whole thing, (or you sent it to the printer  
under Linux/Mac) you will see that the plot is drawn correctly except  
for the text part that is not drawn since 1.7.4

Please let me know if you can reproduce this, it is consitent for me  
under multiple Linux type and Mac OS 10.4 and 10.5

Also, if you can tell me how i should initialise my postscript in  
order to have it "landscape" right away it would be great. I am still  
wondering why i need to declare it 792,612 and then rotate in order to  
draw with the same function as say png/pdf, etc...

C.

On Oct 7, 2008, at 10:22 AM, Carl Worth wrote:

> On Tue, 2008-10-07 at 08:55 -0700, Charles Samir Doutriaux wrote:
>> I'm writing to you directly because i don't answers from the list.
>
> Hi Charles,
>
> I thought I did see answers on the list.
>
>> I'm stuck on the following bug:
>>
>> http://bugs.freedesktop.org/show_bug.cgi?id=17830
>>
>> I don't understand if there's anything I can do prevent it? It
>> appeared around 1.7
>
> From my reading of the bug, it sounds like Chris pointed out a mistake
> in your code, ("You've transposed your page dimensions in the call to
> cairo_ps_surface_create() [and in the rotation function]."). Does that
> not make sense to you?
>
>> The lines and boxes and all are working great. Why not the text?
>
> I'm not sure what you mean here. Like Chris, when I view either of the
> PostScript files you posted I see a result like what I've attached. I
> assumey you're seeing something different.
>
>> Also maybe you could just help me to understand better how to  
>> generate
>> a postscript file oriented landscape so i don't have to use the  
>> rotate/
>> translate trick that seems to be triggering the issue.
>
> And here, I can't help unless you make it easier for me to see what  
> you
> are doing. For example, can you trim your code down to just the setup,
> the rotate/translate, a working line, and some non-working text?
>
> There's certainly nothing wrong with using rotate/translate if you
> actually want graphics to be rotated. But if you instead want them to
> appear unrotated, then don't do the rotate, but *do* specify the width
> and height you want when you create the surface.
>
> Finally, Chris is the person that has looked a lot into your test  
> case,
> (Behdad has as well). So as you need clarification, I suggest you
> continue to talk to them where you have been, (either within  
> bugzilla or
> else on the mailing list). They actually know the answer to your
> problem, but I don't.
>
> I hope that helps,
>
> -Carl
>
> <test-1.6.4.png>



More information about the cairo mailing list