Skip to content

Commit c24b6ef

Browse files
committed
Document workaround
1 parent 42a5a74 commit c24b6ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/PIL/ImageFont.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
911911
limits the number of files that can be open in C at once to 512, so if many
912912
fonts are opened simultaneously and that limit is approached, an
913913
``OSError`` may be thrown, reporting that FreeType "cannot open resource".
914+
A workaround would be to copy the file(s) into memory, and open that instead.
914915
915916
This function requires the _imagingft service.
916917

0 commit comments

Comments
 (0)