Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit92b1d40
committed
Improve font spec for SVG font referencing.
The 'font: ...' shorthand is much more concise than setting eachproperty separately: This replaces e.g.`"font-family:DejaVu Sans;font-size:12px;font-style:book;font-weight:book;"`by `"font: 400 12px 'DejaVu Sans'"`.Note that the previous font weight was plain wrong...Also this revealed a bug in generate_css (we shouldn't run it throughescape_attrib, as quotes (e.g. around the font family name) getmangled); and we don't need to load the font at all (we should justreport whatever font the user actually requested).1 parente429603 commit92b1d40
File tree
3 files changed
+56
-41
lines changed- lib/matplotlib
- backends
- tests
3 files changed
+56
-41
lines changedLines changed: 44 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 | 24 |
| |
27 | 25 |
| |
28 | 26 |
| |
| |||
94 | 92 |
| |
95 | 93 |
| |
96 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 |
| |
98 | 102 |
| |
99 | 103 |
| |
| |||
159 | 163 |
| |
160 | 164 |
| |
161 | 165 |
| |
162 |
| - | |
163 |
| - | |
| 166 | + | |
| 167 | + | |
164 | 168 |
| |
165 | 169 |
| |
166 | 170 |
| |
| |||
262 | 266 |
| |
263 | 267 |
| |
264 | 268 |
| |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
| 269 | + | |
274 | 270 |
| |
275 | 271 |
| |
276 | 272 |
| |
| |||
464 | 460 |
| |
465 | 461 |
| |
466 | 462 |
| |
467 |
| - | |
468 |
| - | |
| 463 | + | |
| 464 | + | |
469 | 465 |
| |
470 | 466 |
| |
471 | 467 |
| |
| |||
1128 | 1124 |
| |
1129 | 1125 |
| |
1130 | 1126 |
| |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 | 1127 |
| |
1135 |
| - | |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1141 | 1144 |
| |
1142 | 1145 |
| |
1143 | 1146 |
| |
| |||
1197 | 1200 |
| |
1198 | 1201 |
| |
1199 | 1202 |
| |
1200 |
| - | |
1201 |
| - | |
1202 |
| - | |
1203 |
| - | |
1204 |
| - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1205 | 1219 |
| |
1206 | 1220 |
| |
1207 | 1221 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 |
| - | |
| 219 | + | |
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 |
| - | |
233 |
| - | |
234 |
| - | |
| 232 | + | |
235 | 233 |
| |
236 | 234 |
| |
237 | 235 |
| |
|
Lines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
4 | 6 |
| |
5 | 7 |
| |
6 | 8 |
| |
| |||
349 | 351 |
| |
350 | 352 |
| |
351 | 353 |
| |
352 |
| - | |
| 354 | + | |
353 | 355 |
| |
354 | 356 |
| |
355 | 357 |
| |
| |||
363 | 365 |
| |
364 | 366 |
| |
365 | 367 |
| |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 |
| |
371 |
| - | |
| 374 | + | |
372 | 375 |
| |
373 | 376 |
| |
374 | 377 |
| |
|
0 commit comments
Comments
(0)