rapport v0.6.1 Rapport.Font
Link to this section Summary
Functions
Converts a font file (woff2) to a base64 encoded string that can be to embedded
Link to this section Functions
Link to this function
as_data(font)
Converts a font file (woff2) to a base64 encoded string that can be to embedded:
@font-face { src: url(data:font/woff2;charset=utf-8;base64,d09GRgA…kAAA==) format(‘woff’) }
Only woff2 format is supported at the moment
Options
font
- Font binary