Skip to content

Note a Windows limit on opening fonts#4020

Merged
hugovk merged 4 commits intopython-pillow:masterfrom
radarhere:freetype_docs
Aug 12, 2019
Merged

Note a Windows limit on opening fonts#4020
hugovk merged 4 commits intopython-pillow:masterfrom
radarhere:freetype_docs

Conversation

@radarhere
Copy link
Copy Markdown
Member

Resolves #3730

The issue reports OSError: cannot open resource when opening many fonts on Windows. This is a FreeType error that is thrown, presumably because on Windows, 'The C run-time libraries have a 512 limit for the number of files that can be open at any one time.'

This PR suggests resolving this situation by simply documenting the limitation.

Also improved some other FreeType documentation while I'm here.

radarhere and others added 2 commits August 12, 2019 20:42
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Aug 12, 2019

Thanks!

@hugovk hugovk merged commit a54beca into python-pillow:master Aug 12, 2019
@radarhere radarhere deleted the freetype_docs branch August 12, 2019 10:51
@ismael-elatifi
Copy link
Copy Markdown

Good to document this issue. You could also add the BytesIO workaround in the doc.

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.

"OSError: cannot open resource" when trying to load more than exactly 509 ImageFonts

3 participants