Skip to content

Commit faf35f3

Browse files
committed
Fix RendererCairo._draw_mathtext implementation
It wasn't updated to handle the change to `VectorParse` in #30335.
1 parent e490626 commit faf35f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/matplotlib/backends/backend_cairo.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ def _draw_mathtext(self, gc, x, y, s, prop, angle):
254254
ctx.new_path()
255255
ctx.select_font_face(*_cairo_font_args_from_font_prop(ttfFontProperty(font)))
256256
ctx.set_font_size(self.points_to_pixels(fontsize))
257-
ctx.show_glyphs([(idx, ox, -oy) for _, _, idx, ox, oy in font_glyphs])
257+
ctx.show_glyphs([
258+
(glyph_index, ox, -oy)
259+
for _font, _size, _ccode, glyph_index, ox, oy in font_glyphs
260+
])
258261

259262
for ox, oy, w, h in rects:
260263
ctx.new_path()

0 commit comments

Comments
 (0)