Asciidoctor-PDF Theming Guide question
Posted by
jlo2k on
Mar 04, 2021; 11:41am
URL: https://discuss.asciidoctor.org/Asciidoctor-PDF-Theming-Guide-question-tp8556.html
Theming Guide says:
If you want to specify the location of custom fonts using the pdf-fontsdir attribute, yet still be able to reference the bundled fonts, you need to refer to the bundled fonts using the GEM_FONTS_DIR token. To do so, you can either a) prefix the path of the bundled font in the theme file with the segment GEM_FONTS_DIR (e.g., GEM_FONTS_DIR/mplus1p-regular-fallback.ttf, or b) use relative paths in the theme file and include GEM_FONT_DIR in the value of the pdf-fontsdir attribute separated by the location of your custom fonts using a comma (e.g., path/to/your/fonts,GEM_FONTS_DIR) or a semi-colon (e.g., path/to/your/fonts;GEM_FONTS_DIR).
Although extending from default, the fonts of default were not found. Since default includes the token already i was confused why i had to add the token also to fontsdir path ...;GEM_FONTS_DIR.
Do i misinterpet the guide?