Merge pull request #29829 from anntzer/dvi2ft · matplotlib/matplotlib@3da6ea9 · GitHub
Skip to content

Commit 3da6ea9

Browse files
authored
Merge pull request #29829 from anntzer/dvi2ft
Rework mapping of dvi glyph indices to freetype indices.
2 parents b4cb934 + a3c14cf commit 3da6ea9

3 files changed

Lines changed: 45 additions & 23 deletions

File tree

lib/matplotlib/dviread.py

Lines changed: 42 additions & 12 deletions

lib/matplotlib/dviread.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Text(NamedTuple):
4141
@property
4242
def font_effects(self) -> dict[str, float]: ...
4343
@property
44+
def index(self) -> int: ... # type: ignore[override]
45+
@property
4446
def glyph_name_or_index(self) -> int | str: ...
4547

4648
class Dvi:

lib/matplotlib/textpath.py

Lines changed: 1 addition & 11 deletions

0 commit comments

Comments
 (0)