[cairo] how to enable font aliasing

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Tue Mar 24 18:13:31 PDT 2015


On Tue, 24 Mar 2015 19:08:25 -0600, Dan Raymond wrote:

> On 3/24/2015 7:04 PM, Lawrence D'Oliveiro wrote:
>
>> Text anti-aliasing should be on by default. Are you creating a
>> CAIRO_FORMAT_A1 image surface, by any chance?
> 
> I've tried the following surfaces (same results each time):
> 
> surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, 640, 480);
> surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 640, 480);
> surface = (void 
> *)cairo_win32_surface_create_with_dib(CAIRO_FORMAT_RGB24, 640, 480);

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?



More information about the cairo mailing list