We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f944e28 commit 0ebb071Copy full SHA for 0ebb071
ext/_mplcairo.cpp
@@ -1469,8 +1469,8 @@ void GraphicsContextRenderer::draw_text(
1469
// NOTE: This uses unhinted metrics for parsing/positioning but normal
1470
// hinting for rendering, not sure whether this is a problem...
1471
auto const& parse =
1472
- py::cast(this).attr("_text2path").attr("mathtext_parser").attr("parse")(
1473
- s, dpi_, prop);
+ py::module::import("matplotlib.mathtext").attr("MathTextParser")("path")
+ .attr("parse")(s, dpi_, prop);
1474
auto mb = MathtextBackend{};
1475
for (auto const& spec: parse.attr("glyphs")) {
1476
// We must use the character's unicode index rather than the symbol name,
0 commit comments