File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
====
3
3
4
4
- Bumped dependencies to Python≥3.8.
5
+ - Fixed compatibility with Matplotlib≥3.10.
5
6
- Fixed support for macos backend on Matplotlib≥3.6.
6
7
- Fixed compatibility with wheel≥0.41.
7
8
- Support pdf MaxVersion up to 1.7 (if the underlying cairo supports it).
Original file line number Diff line number Diff line change @@ -862,9 +862,11 @@ std::vector<cairo_font_face_t*> font_faces_from_prop(py::object prop)
862
862
long get_hinting_flag ()
863
863
{
864
864
// FIXME[matplotlib]: Should be moved out of backend_agg.
865
- return
865
+ auto const & hf =
866
866
py::module::import (" matplotlib.backends.backend_agg" )
867
- .attr (" get_hinting_flag" )().cast <long >();
867
+ .attr (" get_hinting_flag" )();
868
+ // Matplotlib 3.10 changed the flag from int to enum.Flag.
869
+ return (py::hasattr (hf, " value" ) ? hf.attr (" value" ) : hf).cast <long >();
868
870
}
869
871
870
872
void adjust_font_options (cairo_t * cr, bool subpixel_antialiased_text_allowed)
You can’t perform that action at this time.
0 commit comments