You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add FontManager.addfont to register fonts at specific paths.
The naming (without underscore) is similar to findfont.
I chose to provide an API adding a single path rather than also wrap
findSystemFonts given that the later is basically just a recursive glob
(``Path(...).glob("**/*.ttf")``).
addfont has no deduplication logic but I think that's fine (really
ttflist should be ttfset, but that's a bigger API change).
findSystemFonts already assumes that the font extension gives the font
type so assuming the same in addfont seems fine.
0 commit comments