Replies: 1 comment
-
Hello Mario, You can take a look at https://github.com/Mogztter/asciidoctor-web-pdf/blob/master/tasks/update-font-face.js It will generate something like: @font-face {
font-family: 'Droid Sans Mono';
font-style: normal;
font-weight: 400;
font-display: block;
src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABA.....) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} The idea is to encode the font in base64 and inline it in the CSS. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it supported to embed a custom font from a TTF file into the generated PDF and how can I control this in the ADOC file or custom CSS?
Thanks, Mario
Beta Was this translation helpful? Give feedback.
All reactions