[cairo] null stream pdf surface

Arjen Nienhuis a.g.nienhuis at gmail.com
Wed Aug 25 14:49:00 PDT 2010

On Wed, Aug 25, 2010 at 9:11 PM, Behdad Esfahbod <behdad at behdad.org> wrote:

> On 08/24/10 16:32, Kozhevnikov Mikhail wrote:
> > In the other one we have to fit the content into given target image size.
> In the latter case, I'd like to render it into a temporary surface and then
> copy to the target surface with scaling.
> You shouldn't do that.  You should measure it at a nominal size, scale, and
> draw to the target.  If you do that, you still find that your text doesn't
> quite fit in.  That's because (unfortunately) cairo doesn't do fully
> linearly
> scalable text yet :(.  What I suggest you do is to get the path for the
> text
> at the nominal size, scale, append path, fill.

If you draw text like that it looks a lot better. Especially if the text is
slightly rotated or skewed.

Why is there no setting to draw all text like that?

Groeten, Arjen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100825/922faa64/attachment.html>

More information about the cairo mailing list