You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to generate an SCSS template with embedded font URLs rather than a URL pointing to an external file. This is to speedup the font loading (at the cost of increasing the file size) without having to open an additional http request to the web server.
To be more concise. Current templates are based on nunjuncs and inside the template we have access to options. But AFAIK there is no access to the result.ttf, result.woff, result.woff2 fields that are part of result {}. So it is not possible to use the Buffer.toString('base64') method and generate an URL of the form url="data:font/woff2;base64,...." inside the @WebFont
I'll try to clone the repository and implement this change for my own purposes and, if there is interest, I'll be happy to share my changes.
Cheers
Ignacio
The text was updated successfully, but these errors were encountered:
Hi,
This is a feature request!
I would like to generate an SCSS template with embedded font URLs rather than a URL pointing to an external file. This is to speedup the font loading (at the cost of increasing the file size) without having to open an additional http request to the web server.
To be more concise. Current templates are based on nunjuncs and inside the template we have access to options. But AFAIK there is no access to the result.ttf, result.woff, result.woff2 fields that are part of result {}. So it is not possible to use the Buffer.toString('base64') method and generate an URL of the form url="data:font/woff2;base64,...." inside the @WebFont
I'll try to clone the repository and implement this change for my own purposes and, if there is interest, I'll be happy to share my changes.
Cheers
Ignacio
The text was updated successfully, but these errors were encountered: