Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commite66a701
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 parent792fc13 commite66a701
File tree
3 files changed
+53
-38
lines changed- lib/matplotlib
- backends
- tests
3 files changed
+53
-38
lines changedLines changed: 41 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
| 24 | + | |
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
| |||
94 | 93 |
| |
95 | 94 |
| |
96 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 |
| |
98 | 103 |
| |
99 | 104 |
| |
| |||
159 | 164 |
| |
160 | 165 |
| |
161 | 166 |
| |
162 |
| - | |
163 |
| - | |
| 167 | + | |
| 168 | + | |
164 | 169 |
| |
165 | 170 |
| |
166 | 171 |
| |
| |||
262 | 267 |
| |
263 | 268 |
| |
264 | 269 |
| |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
| 270 | + | |
274 | 271 |
| |
275 | 272 |
| |
276 | 273 |
| |
| |||
1128 | 1125 |
| |
1129 | 1126 |
| |
1130 | 1127 |
| |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 | 1128 |
| |
1135 |
| - | |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
| 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 |
| |
| |||
328 | 330 |
| |
329 | 331 |
| |
330 | 332 |
| |
331 |
| - | |
| 333 | + | |
332 | 334 |
| |
333 | 335 |
| |
334 | 336 |
| |
| |||
342 | 344 |
| |
343 | 345 |
| |
344 | 346 |
| |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
349 | 352 |
| |
350 |
| - | |
| 353 | + | |
351 | 354 |
| |
352 | 355 |
| |
353 | 356 |
| |
|
0 commit comments
Comments
(0)