Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Investigate font loading #70

Closed
styfle opened this issue Mar 7, 2019 · 1 comment
Closed

Investigate font loading #70

styfle opened this issue Mar 7, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@styfle
Copy link
Member

styfle commented Mar 7, 2019

It might be faster to load fonts with the new font api instead of reading the file and then injecting css for reach request.

const chromium = require('chrome-aws-lambda');
await chromium.font('https://example.com/googlei18n/noto-emoji/fonts/NotoColorEmoji.ttf');

Related issue: alixaxel/chrome-aws-lambda#16

@leerob
Copy link
Member

leerob commented Jan 19, 2023

Closing for #226

@leerob leerob closed this as completed Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants