Skip to content

Conversation

@mamg22
Copy link
Contributor

@mamg22 mamg22 commented Jun 12, 2024

Changes proposed in this pull request:

For ImageFont.freetype:

  • Add support for searching fonts in the user data directory indicated by XDG_DATA_HOME or its default, before searching in system-wide directories.
  • Update the default value for XDG_DATA_DIRS to include the directory for system-local fonts in /usr/local/share/fonts.

These changes allow searching for both user-installed fonts, and fonts that aren't managed by the system package manager, such as when Microsoft fonts are installed by mscorefonts-installer into /usr/local.

Reference: version 0.8 of the freedesktop base directory spec

mamg22 and others added 3 commits June 15, 2024 19:48
The proposed changes don't match match with previous release notes'
meaning of "API Changes".
@radarhere radarhere changed the title Improve XDG directories support for ImageFont.freetype on Linux Improve ImageFont.freetype support for XDG directories on Linux Jun 16, 2024
@radarhere radarhere merged commit 1c8d270 into python-pillow:main Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants