[cairo-bugs] [Bug 14239] New: text with non-black fill color don' t show for cairo_win32_printing_surface
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 24 19:05:02 PST 2008
http://bugs.freedesktop.org/show_bug.cgi?id=14239
Summary: text with non-black fill color don't show for
cairo_win32_printing_surface
Product: cairo
Version: 1.5.6
Platform: x86 (IA32)
OS/Version: Windows (All)
Status: NEW
Severity: major
Priority: medium
Component: win32 backend
AssignedTo: cairo-bugs at cairographics.org
ReportedBy: bounin at gmail.com
QAContact: cairo-bugs at cairographics.org
If one of the color components for fill color is not zero it is converted to
one and does not show on white background which is usual for printing. Looks
like spy ink. Can be seen only on non-white background
Fix: in _cairo_win32_printing_surface_show_glyphs() function for the block when
source->type == CAIRO_PATTERN_TYPE_SOLID
replace the line
opaque = cairo_pattern_create_rgb (GetRValue (color), GetGValue (color),
GetBValue (color));
with
opaque = cairo_pattern_create_rgb (GetRValue (color)/255., GetGValue
(color)/255., GetBValue (color)/255.);
arguments should be double in range 0.0-1.0
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the cairo-bugs
mailing list