Skip to content

Commit

Permalink
Document workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 6, 2022
1 parent 42a5a74 commit c24b6ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
limits the number of files that can be open in C at once to 512, so if many
fonts are opened simultaneously and that limit is approached, an
``OSError`` may be thrown, reporting that FreeType "cannot open resource".
A workaround would be to copy the file(s) into memory, and open that instead.
This function requires the _imagingft service.
Expand Down

0 comments on commit c24b6ef

Please sign in to comment.