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
The font enumeration logic on Windows was relatively difficult to
follow, being split over three different functions (win32FontDirectory,
_win32RegistryFonts, and win32InstalledFonts), with variable names that
did not clearly indicate whether they are directories (such as
MSUserFontDirectories) or registry keys (such as MSFontDirectories).
Inline most of the logic to _get_win32_installed_fonts, and also
get rid of the extension filtering (both here and in
get_fontconfig_fonts), as it can be done once for all at the call site
(in `findSystemFonts`); also make the helpers return Paths, for simpler
manipulation (we still convert to strs at the end).
0 commit comments