Skip to content

fix: get fonts inside subdirectories on macOS#2809

Merged
Anteru merged 1 commit intopygments:masterfrom
cherryblossom000:macos-fonts
Jan 5, 2025
Merged

fix: get fonts inside subdirectories on macOS#2809
Anteru merged 1 commit intopygments:masterfrom
cherryblossom000:macos-fonts

Conversation

@cherryblossom000
Copy link
Contributor

I use Home Manager with Nix on macOS to install new fonts, which stores the fonts in ~/Library/Fonts/HomeManager/{opentype,truetype}. However, the FontManager was not able to get these fonts so I couldn’t use them when rendering as an image.

This PR fixes this by adding all the fonts inside subdirectories of ~/Library/Fonts, /Library/Fonts, etc. to the font map.

@Anteru Anteru added this to the 2.19.0 milestone Jan 5, 2025
@Anteru
Copy link
Collaborator

Anteru commented Jan 5, 2025

Merged, thanks.

@Anteru Anteru merged commit b717321 into pygments:master Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants