asciidoctor-pdf: Call out number inside code block replaced by `not` glyph

Hello, I’m struggling to render conum inside coderay code blocks. I read almost every glyph issues I could find in this repo but I’m still missing something code block

As you can see conum are ok outside code blocks but not inside.

Using

<asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
<asciidoctorj.version>1.5.6</asciidoctorj.version>
<jruby.version>9.1.8.0</jruby.version>

And my theme with arial ttf extracted from a Win10 install:

font:
  catalog:
    Arial:
      normal: arial.ttf
      bold: arialbd.ttf
      italic: ariali.ttf
      bold_italic: arialbi.ttf
    # Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
    Noto Serif:
      normal: notoserif-regular-subset.ttf
      ...skipped...
    # M+ 1mn supports ASCII and the circled numbers used for conums
    M+ 1mn:
      normal: mplus1mn-regular-ascii-conums.ttf
      ...skipped...
    # M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
    # It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
    M+ 1p Fallback:
      normal: mplus1p-regular-fallback.ttf
     ...skipped...
  fallbacks:
    - M+ 1mn
    - M+ 1p Fallback

conum:
  font_family: M+ 1mn
literal:
  font_family: M+ 1mn
base:
  font_family: Arial

Thanks for your help

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Perfect ! Thanks for your support.

As soon as you start customizing fonts you need to customize ALL font settings.

Correct. We could add that statement to the docs.

For a ease of use, is it possible that all Courrier references are changed to use $literal_font_familly by default?

If you create your own theme, you have 100% control over the references. If you start with the provided default theme, this is already the case. See https://github.com/asciidoctor/asciidoctor-pdf/blob/f7337023eb9aa60671c85528f5a95c9b80513715/data/themes/default-theme.yml#L165