[cairo-bugs] [Bug 4792] New: CAIRO_ANTIALIAS_GRAY font option
doesn't turn off subpixel rendering
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Oct 17 16:55:29 PDT 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=4792
Summary: CAIRO_ANTIALIAS_GRAY font option doesn't turn off
subpixel rendering
Product: cairo
Version: 1.0.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: ft font backend
AssignedTo: otaylor at redhat.com
ReportedBy: irkheikk at cs.helsinki.fi
QAContact: cairo-bugs at cairographics.org
Setting context's font_options->antialias to CAIRO_ANTIALIAS_GRAY leaves
FT_LOAD_TARGET_LCD on in cairo-ft-font.c.
This causes FT to load the glyphs with subpixel antialiasing.
Manually zeroing the FT_LOAD_TARGET_LCD flag from load_flags in
_cairo_ft_scaled_font_create_toy made it use grayscale antialiasing.
Quick hack workaround is to do something like this before the call to
_cairo_ft_scaled_font_create:
if (options->antialias == CAIRO_ANTIALIAS_GRAY)
load_flags &= !FT_LOAD_TARGET_LCD;
I don't know where the correct place to do the flag zeroing is (ie. what
function is responsible.)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the cairo-bugs
mailing list