Error Invalid Font when printing

Jan Erik Moström's Avatar

Jan Erik Moström

14 Sep, 2018 09:56 AM

// Please enter a detailed description of the issue // Description of the issue:

When I try to print (or make an PDF and then print) the included document I get an error: Invalid Font, offending command: xshow

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Print the included document

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 958 (Direct)

macOS Version: 10.13.6

allowPageBreakInCode: TRUE
bookTxtIsLeanpub: TRUE
summaryMdIsGitBook: TRUE
codeIsPoetry: TRUE
codeCanWrap: TRUE
collapsibleHeadlines: TRUE
convertGithubCheckboxes: TRUE
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 6
defaultProcessor: MultiMarkdown
enableMiniMap: TRUE
excludeBlockQuotesFromCounts: TRUE
excludeFootnotesFromCounts: TRUE
excludeVerbatimFromCounts: TRUE
excludeCaptionsFromCounts: TRUE
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: TRUE
h1IsPageBreak: TRUE
h2IsPageBreak: TRUE
hrIsPageBreak: TRUE
includeMathJax: TRUE
limitTextWidth: TRUE
minimalJavaScript: TRUE
permissionGranted: TRUE
printHeaderFirstPage: TRUE
printFooterFirstPage: TRUE
processHTMLFiles: TRUE
removeMetadataForPreview: TRUE
removeYAMLHeaders: TRUE
scrollToEdit: TRUE
shouldDetectCritic: TRUE
shouldHighlightMarkupErrors: TRUE
shouldLoadCritic: TRUE
syntaxHighlight: TRUE
syntaxHighlightOnlyLang: NO

  1. Support Staff 1 Posted by Brett on 14 Sep, 2018 11:43 AM

    Brett's Avatar

    With which theme/style?


  2. 2 Posted by Jan Erik Moströ... on 14 Sep, 2018 11:45 AM

    Jan Erik Moström's Avatar

    Swiss (the first standard theme, I’m not at my Mac at the moment so i can’t check)

  3. 3 Posted by Jan Erik Moströ... on 14 Sep, 2018 01:30 PM

    Jan Erik Moström's Avatar

    On 14 Sep 2018, at 13:43, Brett wrote:

    Yep, the swiss theme

  4. Support Staff 4 Posted by Brett on 14 Sep, 2018 03:17 PM

    Brett's Avatar

    Hi Jan,

    I'm able to print that file to paper and PDF without issue. It sounds
    more like you're having a printer issue than one caused by Marked.


  5. 5 Posted by Jan Erik Moströ... on 14 Sep, 2018 06:43 PM

    Jan Erik Moström's Avatar

    On 14 Sep 2018, at 17:17, Brett wrote:

    Yes, it's definitely possible. I tried to use Marked to convert to RTF
    and then tried to print from there with the same result. However, I
    then used pandoc to go to docx and that worked.

    = jem

  6. Support Staff 6 Posted by Brett on 18 Sep, 2018 04:42 PM

    Brett's Avatar

    I'm guessing that there's a particular issue with the font that Marked
    is including with the Swiss theme, probably in combination with
    language-specific characters. Have you tried with other themes to see if
    it's only Swiss?


  7. 7 Posted by Jan Erik Moströ... on 20 Sep, 2018 10:53 AM

    Jan Erik Moström's Avatar

    On 18 Sep 2018, at 18:42, Brett wrote:

    Yes, it looks like that is the problem. When I use Lopash only some code
    is printed (no text sections) before I get the error while Github
    produces the full document.

  8. Support Staff 8 Posted by Brett on 20 Sep, 2018 01:05 PM

    Brett's Avatar

    Lopash uses an embedded font, so that one doesn't surprise me given the
    other issues. Github and Swiss both use system fonts, so I think there
    might be some font issues on your machine or print system (particularly
    with Helvetica).


  9. 9 Posted by Jan Erik Moströ... on 20 Sep, 2018 01:08 PM

    Jan Erik Moström's Avatar

    On 20 Sep 2018, at 15:05, Brett wrote:

    I've never tried tracking down font errors, do you have any
    advice/links/resources for how to do that?

  10. Support Staff 10 Posted by Brett on 20 Sep, 2018 02:09 PM

    Brett's Avatar

    Well, I'm really taking a stab in the dark with the recommendation. I've
    never heard of these issues in any form, so I'm just guessing. To repair
    font issues, you'd perform these steps:

    Can't hurt to try it...


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • 7.16 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac