summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2006-08-08 06:08:53 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-08-08 06:09:23 -0400
commit89fc22de871d61517a4955875f12326b4dc3389a (patch)
tree2151e9ebe1ea22c768aea66d1f8c58ec91392d69 /src
parent1f854fcf32e6909e4c52779f093132d8c749c285 (diff)
[fontconfig] Set FC_RGBA_NONE on the pattern if we don't want subpixel.
otherwise, it looks like "I don't care" and fontconfig configuration is allowed to decide to turn subpixel on. This fixes the bug that subpixel colors where showing up in fallback images in PS/PDF/SVG backends, observed in the test fallback-resolution.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-ft-font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index cb90a502..ca78d62c 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2187,6 +2187,8 @@ cairo_ft_font_options_substitute (const cairo_font_options_t *options,
if (FcPatternGet (pattern, FC_ANTIALIAS, 0, &v) == FcResultNoMatch)
{
FcPatternAddBool (pattern, FC_ANTIALIAS, options->antialias != CAIRO_ANTIALIAS_NONE);
+ if (options->antialias != CAIRO_ANTIALIAS_SUBPIXEL)
+ FcPatternAddInteger (pattern, FC_RGBA, FC_RGBA_NONE);
}
}