Skip to content

Commit 12ec8d0

Browse files
committed
Update fallback font from asciidoctor-pdf
This ensures that the u000a glyph is included. Using the current version directly triggers another missing glyph warning which I fixed by generating a new font version that has the heavy ballot box X character. Update the existing font to use the new one from the asciidoctor-pdf pull request asciidoctor/asciidoctor-pdf#2634. Fixes: #187 Signed-off-by: Alex Richardson <alexrichardson@google.com>
1 parent 40aed03 commit 12ec8d0

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

-1.3 MB
Binary file not shown.

fonts/mplus1p-regular-fallback.ttf

1.49 MB
Binary file not shown.

themes/riscv-pdf.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ font:
2929
bold: mplus-1mn-bold.ttf
3030
italic: mplus-1mn-light.ttf
3131
bold_italic: mplus-1mn-medium.ttf
32-
M+ 1p Fallback:
33-
normal: mplus-1p-regular-fallback.ttf
34-
bold: mplus-1p-regular-fallback.ttf
35-
italic: mplus-1p-regular-fallback.ttf
36-
bold_italic: mplus-1p-regular-fallback.ttf
32+
# M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
33+
# It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
34+
# TODO: use asciidoctor-pdf version (GEM_FONTS_DIR) once PR XXX is merged and used by the RISC-V docker container.
35+
M+ 1p Fallback: mplus1p-regular-fallback.ttf
3736
Droid Fallback:
3837
normal: droid-sans-fallback.ttf
3938
italic: droid-sans-fallback.ttf
@@ -44,8 +43,6 @@ font:
4443
italic: JetBrainsMono-Italic.ttf
4544
bold: JetBrainsMono-Bold.ttf
4645
bold_italic: JetBrainsMono-BoldItalic.ttf
47-
# M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
48-
# It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
4946
fallbacks:
5047
- M+ 1p Fallback
5148
- Droid Fallback

0 commit comments

Comments
 (0)