Commit ec7a731
committed
Deprecate the TTFPATH & AFMPATH environment variables.
These undocumented environment variables allow one to selectively add
paths to the font cache... but only if the font cache doesn't exist yet
(they don't force cache regen). The font-cache regen API (_rebuild())
is also private (even though one can trigger it "publically" e.g. by
calling `findfont` with a nonexisting font...).
Instead, we now expose `addfont()` which is a documented API for
registering fonts with the font manager.1 parent af49c1b commit ec7a731
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
974 | 977 | | |
975 | 978 | | |
976 | 979 | | |
| |||
0 commit comments