Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Up/down arrow symbols not rendered to pdf #1811

Closed
AndreasEhret opened this issue Nov 3, 2020 · 2 comments
Closed

Up/down arrow symbols not rendered to pdf #1811

AndreasEhret opened this issue Nov 3, 2020 · 2 comments
Milestone

Comments

@AndreasEhret
Copy link

I have the following asciidoc shortcut cheatsheet that uses arrow key symbols:

= Shortcuts
----
Ctrl + →            Alles aufklappen
Ctrl + ←            Alles zuklappen
Ctrl + ↑            Nach oben verschieben
Ctrl + ↓            Nach unten verschieben
----

|===
|Ctrl + → |Alles aufklappen
|Ctrl + ← |Alles zuklappen
|Ctrl + ↑ |Nach oben verschieben
|Ctrl + ↓ |Nach unten verschieben
|===

|===
|Ctrl + → |Alles aufklappen
|Ctrl + ← |Alles zuklappen
|Ctrl + ↑ |Nach oben verschieben
|Ctrl + ↓ |Nach unten verschieben
|===

When I render this to PDF the left and right arrow are fine but the up and down arrows are not displayed correctly, neither in the block nor in the table:

cheatsheet_result_pdf

I've already tried to change font by applying a custom theme without any success.

I am using asciidoctorj-pdf version 1.5.3, asciidoctorj 2.4.1, asciidoctor-maven-plugin 2.1.0.

Any ideas what is going wrong and why it works for left/right but not for up/down?

@mojavelinux
Copy link
Member

The provided default theme does not provide all the glyphs in Unicode. Usually, you can find them in the default-with-fallback-font theme (pdf-theme=default-with-fallback-font). That seems to be the case here.

If the default-with-fallback-font theme does not provide a glyph you want to use, then you'll need to add your own font or fallback font. See https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#fonts

@mojavelinux mojavelinux added this to the support milestone Nov 3, 2020
@AndreasEhret
Copy link
Author

switching from default to default-with-fallback-font do the trick with the missing arrow symbols. Thanks for the fast help!

geraldcombs pushed a commit to wireshark/wireshark that referenced this issue Dec 7, 2022
asciidoctor/asciidoctor-pdf#1811
Up/down arrow symbols not rendered to pdf #1811

asciidoctor-pdf bundled fonts don't include an Apple cmd symbol.
use "Cmd" as elsewhere in the WSDG.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants