Login  Register

Re: Troubleshoot missing glyphs (pdf) from TOC generation

Posted by mojavelinux on Apr 09, 2021; 8:39am
URL: https://discuss.asciidoctor.org/Troubleshoot-missing-glyphs-pdf-from-TOC-generation-tp8585p8586.html

Have you consulted this section of the docs? https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.5.x/docs/theming-guide.adoc#modifying-the-font It identifies every special character in the font that Asciidoctor PDF depends on.

If it's too much trouble to modify the font, you can add a fallback font that catches anything the primary font doesn't have. See https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.5.x/data/themes/default-with-fallback-font-theme.yml

Best Regards,

-Dan

On Fri, Apr 9, 2021 at 2:17 AM arillbert [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I get warnings from asciidoctor-pdf as soon as I include a table-of-contents and use my custom theme. As soon as I enable a toc (via :toc: left in the header), I get the following warning:


asciidoctor: WARNING: Could not locate the character `​' in the following fonts: MyFont, MPlus


I am using a custom theme with custom fonts.

 - If I use the default theme/font, no warning is issued.
 - If I use my custom theme/fonts and skip the toc, no warning is issued

Supposedly, asciidoctor-pdf needs a glyph when generating the toc that is missing in the fonts I use for my custom theme.

Any pointers on how I go about troubleshooting this?

/Anders

ps In my theme, I use the M+ 1p font as the fallback font (mplus-1p-regular.ttf) ds






If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Troubleshoot-missing-glyphs-pdf-from-TOC-generation-tp8585.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux