Brooooooklyn / canvas

High performance skia binding to Node.js. Zero system dependencies and pure npm packages without any postinstall scripts nor node-gyp.
https://vercel.skia.rs
MIT License
1.78k stars 76 forks source link

GlobalFonts can provide a method to clear or remove a font? #870

Open chenhongtu opened 3 months ago

chenhongtu commented 3 months ago

I load fonts dynamically from object storage each time I render, and I want to clear them after use. Can provide a method similar to deregisterAllFonts, or a method to remove a specific font?