Override if your font provides multiple sizes of the same symbol. Should return a list of symbols matching *sym* in various sizes. The expression renderer will select the most appropriate size for a given situation from this list.
(self, fontname: str,
sym: str)
| 333 | raise NotImplementedError() |
| 334 | |
| 335 | def get_sized_alternatives_for_symbol(self, fontname: str, |
| 336 | sym: str) -> list[tuple[str, str]]: |
| 337 | """ |
| 338 | Override if your font provides multiple sizes of the same |
| 339 | symbol. Should return a list of symbols matching *sym* in |
| 340 | various sizes. The expression renderer will select the most |
| 341 | appropriate size for a given situation from this list. |
| 342 | """ |
| 343 | return [(fontname, sym)] |
| 344 | |
| 345 | def get_font_constants(self) -> type[FontConstantsBase]: |
| 346 | return FontConstantsBase |
no outgoing calls
no test coverage detected