foliojs / fontkit

An advanced font engine for Node and the browser
1.45k stars 213 forks source link

reading a font file hosted on s3 bucket #237

Open chawkichalladia opened 4 years ago

chawkichalladia commented 4 years ago

while using the fontkit library for some calculations related to fonts, i get this error

Error: ENOENT: no such file or directory, open 'S3 bucket url'

i appreciate any insight on what might be causing the problem and how to solve it.

jpanged commented 2 years ago

Not sure if you're still having this issue, but thought it would be helpful if anyone else is trying to do this.

You can retrieve the file with getObject from S3 and use the body as a file buffer with the fontkit.create API.