Commit 83feec5
committed
Use more specific patterns for bundled mathtext fonts
Because we previously only asked for a font family (and sometimes a
weight/style), mathtext fonts were at the whim of rcParams for all other
settings. This could mean that we would look for an non-existent weight,
or even set the normal font to italic unintentionally.
The fonts that are available for mathtext are (for now) fixed and
bundled, and we only intend for them to work with the exact fonts we
have. So use more specific fontconfig patterns that should always match
the fonts that we have.
While it could be possible to simply hard-code these paths relative to
our data path, it seems that way back in
157a059, that implementation was
changed to `findfont` intentionally to avoid duplicate embeddings.1 parent 87edae5 commit 83feec5
2 files changed
Lines changed: 45 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
367 | 373 | | |
368 | 374 | | |
369 | 375 | | |
| |||
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
495 | | - | |
| 501 | + | |
496 | 502 | | |
497 | 503 | | |
498 | 504 | | |
| |||
617 | 623 | | |
618 | 624 | | |
619 | 625 | | |
620 | | - | |
| 626 | + | |
621 | 627 | | |
622 | 628 | | |
623 | 629 | | |
| |||
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
722 | | - | |
| 728 | + | |
723 | 729 | | |
724 | 730 | | |
725 | 731 | | |
| |||
748 | 754 | | |
749 | 755 | | |
750 | 756 | | |
751 | | - | |
| 757 | + | |
752 | 758 | | |
753 | | - | |
| 759 | + | |
754 | 760 | | |
755 | 761 | | |
756 | 762 | | |
| |||
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
772 | | - | |
| 778 | + | |
773 | 779 | | |
774 | | - | |
| 780 | + | |
775 | 781 | | |
776 | 782 | | |
777 | 783 | | |
| |||
796 | 802 | | |
797 | 803 | | |
798 | 804 | | |
799 | | - | |
| 805 | + | |
800 | 806 | | |
801 | | - | |
| 807 | + | |
802 | 808 | | |
803 | | - | |
| 809 | + | |
804 | 810 | | |
805 | 811 | | |
806 | 812 | | |
| |||
815 | 821 | | |
816 | 822 | | |
817 | 823 | | |
818 | | - | |
| 824 | + | |
819 | 825 | | |
820 | 826 | | |
821 | 827 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
374 | 402 | | |
375 | 403 | | |
376 | 404 | | |
| |||
0 commit comments