[cairo] null stream pdf surface

Behdad Esfahbod behdad at behdad.org
Thu Aug 26 08:36:17 PDT 2010

On 08/26/10 03:11, Dov Grobgeld wrote:
> Just to make sure, are you refering to the internal cairo text
> rendering? I guess if it was pango, then you would have said so.

Both.  Any user of cairo_show_glyphs() api.

> I'm curious what is there to fix? As far as I understand the only proper
> way of doing text scaling for hinted fonts is to do it iteratively until
> you satisfy some criteria. Even then you might get stuck in the problem
> that when you increase the font size by ε your rendered text is to large
> and when you decrease the font by the same ε, then text is too small.

Correct.  I'm talking about the case of metrics-hinting off though.  With no
metrics hinting, you expect text to be fully linearly scalable.  It currently
is not.  Part of it is coming from rounding error in FreeType.


> Regards,
> Dov
> On Thu, Aug 26, 2010 at 00:57, Behdad Esfahbod <behdad at behdad.org
> <mailto:behdad at behdad.org>> wrote:
>     On 08/25/10 17:49, Arjen Nienhuis wrote:
>     >
>     >     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?
>     Fixing the cairo text implementation to do that internally has been
>     on my
>     plate for way too long.  Would appreciate if someone takes it over.
>     http://lists.freedesktop.org/archives/cairo/2008-May/014146.html
>     behdad
>     > Groeten, Arjen
>     --
>     cairo mailing list
>     cairo at cairographics.org <mailto:cairo at cairographics.org>
>     http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list