Feature Request: Add support for loading fonts from in-memory bytes in ttLib.TTFont #3577
-
|
Currently, ttLib.TTFont only supports loading fonts from file paths or file-like objects. However, there are situations where the font data is already loaded into memory as bytes, and it would be more efficient to load the font directly from memory instead of writing it to a temporary file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can wrap your bytes in an |
Beta Was this translation helpful? Give feedback.
You can wrap your bytes in an
io.BytesIOobject and you have the behavior you want.