You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The copy() method for the Color object is currently broken. This was discovered in #47 by cAttte while refactoring all the classes. The blue component is not copied by pango_color_copy() and always defaults to 0.
A workaround for now is to manually copy the red, green, and blue components and instantiate a new object. Functionally this is identical to pango_color_copy(), so it's not a terrible compromise. But it does make the code in color.py a bit ugly.
The issue is not due to the Pango library itself. I've confirmed this by 1. confirming that a test for this exists, and 2. attempting to replicate the issue in C. See below for the program and commands I ran:
So the next layer up the chain that could be causing problems is the C-FFI.
So the next steps are to create a small proof of concept which implements PangoColor and some of the Pango functions and see if the issue can be replicated outside of pangocffi.
The text was updated successfully, but these errors were encountered:
The
copy()
method for the Color object is currently broken. This was discovered in #47 by cAttte while refactoring all the classes. The blue component is not copied bypango_color_copy()
and always defaults to 0.A workaround for now is to manually copy the
red
,green
, andblue
components and instantiate a new object. Functionally this is identical topango_color_copy()
, so it's not a terrible compromise. But it does make the code incolor.py
a bit ugly.The issue is not due to the Pango library itself. I've confirmed this by 1. confirming that a test for this exists, and 2. attempting to replicate the issue in C. See below for the program and commands I ran:
So the next layer up the chain that could be causing problems is the C-FFI.
So the next steps are to create a small proof of concept which implements
PangoColor
and some of the Pango functions and see if the issue can be replicated outside of pangocffi.The text was updated successfully, but these errors were encountered: