[cairo] how to enable font aliasing

LRN lrn1986 at gmail.com
Tue Mar 24 23:44:11 PDT 2015


On 25.03.2015 5:06, Dan Raymond wrote:
> On 3/24/2015 7:14 PM, Lawrence D'Oliveiro wrote:
>>> You’re not calling cairo_set_antialias, are you? What does
>>> cairo_get_antialias
>>> <http://cairographics.org/manual/cairo-cairo-t.html#cairo-get-antialias>
>>> return?
>> By the way, this setting applies to paths, not text. For text, you
>> control anti-aliasing via the font_options.
> 
> Both APIS return 0 (CAIRO_ANTIALIAS_DEFAULT).
> 
> {
>     cairo_font_options_t *options;
> 
>     options = cairo_font_options_create();
>     printf("cairo_font_options_get_antialias = %d\n", 
> cairo_font_options_get_antialias(options));
>     printf("cairo_get_antialias = %d\n", cairo_get_antialias(cr));
> }
> 
> I just noticed that text anti-aliasing is working on one machine but not 
> another.  Why would this differ between machines?  They both have the 
> same version of cairo installed.
> 

Stupid question: Are you using Windows pangocairo backend (as opposed to
Fontconfig backend), and if so, do you have ClearType enabled?

-- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x922360B0.asc
Type: application/pgp-keys
Size: 1717 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150325/b676cee0/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150325/b676cee0/attachment.sig>


More information about the cairo mailing list