Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/matplotlib/_mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@ def __init__(self, c: str, state: ParserState):
# The real width, height and depth will be set during the
# pack phase, after we know the real fontsize
self._update_metrics()
self._is_slanted = self._metrics.slanted

def __repr__(self) -> str:
return '`%s`' % self.c
Expand All @@ -1104,7 +1105,7 @@ def _update_metrics(self) -> None:
self.depth = -(metrics.iceberg - metrics.height)

def is_slanted(self) -> bool:
return self._metrics.slanted
return self._is_slanted

def get_kerning(self, next: Node | None) -> float:
"""
Expand Down