| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -787,6 +787,13 @@ def __init__(self, default_font_prop: FontProperties, load_glyph_flags: LoadFlag | |||
| 787 | 787 | ||
| 788 | 788 | _slanted_symbols = set(r"\int \oint".split()) | |
| 789 | 789 | ||
| 790 | + def _get_font(self, font: str | int) -> FT2Font: | ||
| 791 | + # work around, since we only populate 'mathfont' in the fontmap | ||
| 792 | + if not font in ('default', 'general'): | ||
| 793 | + font = 'mathfont' | ||
| 794 | + | ||
| 795 | + return super()._get_font(font) | ||
| 796 | + | ||
| 790 | 797 | def _get_glyph(self, fontname: str, font_class: str, | |
| 791 | 798 | sym: str) -> tuple[FT2Font, int, bool]: | |
| 792 | 799 | # `fontname' is one of rm cal it tt sf bf bfit default bb frak scr regular | |
| Back | FazBrowse Home | New Git URL |
0 commit comments