[cairo] font antialiasing options

Behdad Esfahbod behdad at behdad.org
Mon Dec 13 07:55:15 PST 2010


On 12/13/10 09:43, Fried, Vojtech wrote:
> When I use set_antialias(cairo.ANTIALIAS_SUBPIXEL) (using pycairo) font option
> for image surface, it does not do what I would expect. When there is e.g. a
> black text on white background, there should be colored (sub)pixels visible
> but what I see is only gray pixels. Is it subpixel antialiasing converted to
> grayscale or “gray” antialiasing? (Or something else?) As far as I know,
> freetype does not by default support subpixel antialiasing, so it is ok, but
> it is strange for win32 fonts. On the other hand when I use win32 fonts and
> win32 surface, subpixel antialiasing works.

Did you set subpixel order in your font options when rendering to the iamge
surface?

behdad


More information about the cairo mailing list