Rapport.Font (rapport v0.7.2)

Summary

Functions

Converts a font file (woff2) to a base64 encoded string that can be embedded

Functions

@spec as_data(String.t()) :: String.t()

Converts a font file (woff2) to a base64 encoded string that can be 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