Commit b1691d9
committed
Remove the use_cmex font fallback mechanism.
The `use_cmex` flag and `latex_to_cmex` table is a
fallback-to-computermodern mathtext system that is strictly less
powerful than the `mathtext.fallback_to_cm` (now `mathtext.fallback`)
system. Also, the `latex_to_cmex` table was incomplete.
Previously, with something like
```
rcParams["mathtext.fontset"] = "custom"; figtext(.5, .5, r"$\leftangle\langle$")
```
`\leftangle` would get unconditionally replaced by a Computer Modern
glyph, whereas `\langle` would stay as DejaVu Sans (as DejaVu provides
that glyph). With this patch, both glyphs now use DejaVu.
Conversely, if one forces the use of a font which does not contain the
`\langle` glyph (e.g. adding `rcParams["mathtext.rm"] = "Comic Sans
MS"`), then both `\leftangle` and `\langle` get substituted to use
Computer Modern; this is not changed by this PR (except that now *both*
fallbacks can be controlled by `rcParams["mathtext.fallback"]`.
`latex_to_cmex` and `use_cmex` were marked as deprecated, but with no
actual deprecation machinery as they can all go away once `mathtext`
fully goes private anyways.1 parent b2802b5 commit b1691d9
2 files changed
Lines changed: 12 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
452 | 451 | | |
453 | 452 | | |
454 | 453 | | |
455 | | - | |
| 454 | + | |
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
| |||
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
516 | 506 | | |
517 | 507 | | |
518 | 508 | | |
| |||
574 | 564 | | |
575 | 565 | | |
576 | 566 | | |
577 | | - | |
| 567 | + | |
578 | 568 | | |
579 | 569 | | |
580 | 570 | | |
| |||
677 | 667 | | |
678 | 668 | | |
679 | 669 | | |
680 | | - | |
| 670 | + | |
681 | 671 | | |
682 | 672 | | |
683 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
0 commit comments