[cairo] scale with text

Tobias Ceglarek dev at ceglarek.eu
Fri Feb 23 02:34:22 PST 2007


> 1. Turn off the hinting
> 
>    You can do this with cairo_font_options_set_hint_style and
>    cairo_font_options_set_hint_metrics. See the example I attached
>    below for details. (And note that I also explicitly set
>    ANTIALIAS_GRAY since you really don't want ANTIALIAS_SUBPIXEL
>    without hinting).
> 
>    This is the right answer if you want to be able to scale without
>    any change in shape, (for example, if you're animating a zoom with
>    text, the changes in shape and position can be very
>    undesirable). But, without hinting, text can also be much less
>    legible, so it's not necessarily always the right thing.

For me this is the best/quickest solution. Thank you very very much for
your help!!!

I have attached the pics.

Regards,

Prinz Igor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: original.png
Type: image/png
Size: 8602 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070223/cd6f50f9/original-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomed_1_1.png
Type: image/png
Size: 9752 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070223/cd6f50f9/zoomed_1_1-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomed_1_7.png
Type: image/png
Size: 15603 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070223/cd6f50f9/zoomed_1_7-0001.png


More information about the cairo mailing list