Commit cb5d039
committed
Move listing of Type1 glyph widths to backend_pdf.
DviFont.widths (the widths of each glyph in a font) is only used
by backend_pdf to embed (classic, Type1) TeX fonts; deprecate that
attribute and instead compute it where needed. This change is in
preparation for supporting {xe,lua}tex, where DviFont can also refer to
OpenType fonts which would be embedded via a different mechanism into
the pdf file, and which can contain so many glyphs that explicitly
listing the width of each one would be wasteful.1 parent a9dc9ac commit cb5d039Copy full SHA for cb5d039
4 files changed
+16-14Lines changed: 16 additions & 14 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api/next_api_changes/deprecations
- lib/matplotlib
- backends
Expand file treeCollapse file tree
Open diff view settings
Collapse file
doc/api/next_api_changes/deprecations/29817-AL.rst
Copy file name to clipboard+3Lines changed: 3 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
Collapse file
lib/matplotlib/backends/backend_pdf.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
991 | 991 | |
992 | 992 | |
993 | 993 | |
994 | | - |
| 994 | + |
| 995 | + |
| 996 | + |
| 997 | + |
| 998 | + |
995 | 999 | |
996 | 1000 | |
997 | 1001 | |
998 | 1002 | |
999 | 1003 | |
1000 | 1004 | |
1001 | 1005 | |
1002 | | - |
| 1006 | + |
1003 | 1007 | |
1004 | 1008 | |
1005 | 1009 | |
|
Collapse file
+5-11Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
577 | 577 | |
578 | 578 | |
579 | 579 | |
580 | | - |
581 | | - |
582 | | - |
583 | | - |
584 | 580 | |
585 | | - |
| 581 | + |
586 | 582 | |
587 | 583 | |
588 | 584 | |
| ||
591 | 587 | |
592 | 588 | |
593 | 589 | |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
| 590 | + |
| 591 | + |
| 592 | + |
| 593 | + |
600 | 594 | |
601 | 595 | |
602 | 596 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | | - |
60 | 59 | |
61 | 60 | |
62 | 61 | |
63 | 62 | |
64 | 63 | |
| 64 | + |
| 65 | + |
65 | 66 | |
66 | 67 | |
67 | 68 | |
|
0 commit comments