[cairo] Question regarding recording surfaces

Ian Britten britten at caris.com
Fri Mar 25 09:28:38 PDT 2011


[ Sorry for the late reply, but I see you got no other replies ... ]

On 25/02/11 12:26 PM, Zoltán Turányi wrote:

> I plan to use recording surfaces to create a drawing and then replay it
> into a window using different scaling factors (as the user zooms in). I
> read the documentation and it seems to say that recording surfaces
> record the high-level drawing commands - from which I would expect a
> high resolution output if replayed on a high resolution target surface
> (appropriate scaling applied to the context onto which it is being
> replayed).
> I do not seem to be able to get this behaviour. In the below code I draw
> some text and I replay it onto a PNG surface with 2x magnification. Yet
> the text and line comes out as blurred - as if it were already rendered
> to some bitmap on the recording surface (instead of just being recorded
> as a show_text and a stroke). (See attachment.)
> Is this something fundamental or am I doing something wrong?

Your problem sounds suspiciously like the problem I already
encountered:
     https://bugs.freedesktop.org/show_bug.cgi?id=30282

Ian


More information about the cairo mailing list