Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commite3236e9
committed
Remove used_characters tracking in mathtext.
Backends that need to track what characters have been used (pdf/ps, forsubsetting purposes) already have their own logic to do so, so don't doit in mathtext as well.Changes in Fonts are only touching private API.Changes in the call signature of MathtextBackendAgg/MathtextBackendPathlook like they are touching public API, but it is in fact impossible foran external user to construct a valid `box` parameter (this requiresclasses defined in `_mathtext`), so `get_results` is effectively privateAPI from a caller PoV. It is also impossible to register newMathtextBackends without touching private API.Thus, the only difference is in the tuple returned byMathtextBackendAgg, which now has one fewer element. Because the returnvalue is a tuple which is unpacked at the call site, it is not possibleto emit a proper deprecation warning (one would need to know whether theresult is being unpacked to 6 or 7 values). Callers can work aroundthis by e.g. unpacking the last item into `*_`. Note that because thisis only for MathtextBackendAgg (i.e., a raster backend), it is unlikelythat callers actually care about the used_characters info at all.1 parent1101b8e commite3236e9
File tree
4 files changed
+12
-16
lines changed- doc/api/next_api_changes/behavior
- lib/matplotlib
- backends
4 files changed
+12
-16
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
93 | 92 |
| |
94 | 93 |
| |
95 | 94 |
| |
| |||
147 | 146 |
| |
148 | 147 |
| |
149 | 148 |
| |
150 |
| - | |
151 | 149 |
| |
152 | 150 |
| |
153 | 151 |
| |
| |||
169 | 167 |
| |
170 | 168 |
| |
171 | 169 |
| |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 | 170 |
| |
181 | 171 |
| |
182 | 172 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
214 |
| - | |
| 214 | + | |
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
263 |
| - | |
| 263 | + | |
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
| 137 | + | |
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
156 |
| - | |
| 155 | + | |
157 | 156 |
| |
158 | 157 |
| |
159 | 158 |
| |
| |||
182 | 181 |
| |
183 | 182 |
| |
184 | 183 |
| |
185 |
| - | |
| 184 | + | |
186 | 185 |
| |
187 | 186 |
| |
188 | 187 |
| |
|
0 commit comments
Comments
(0)