Closed wrandelshofer closed 3 weeks ago
When using a custom theme and font, you must use the line-height property on the marker to position it. There is no other way to ensure the marker is positioned where you expect it as there is no universal definition for the middle of a line (particularly in Prawn).
If you need assistance customizing your theme, please ask in the project chat at https://chat.asciidoctor.org. The issue tracker is not a support forum.
I use a theme that extends from
default-with-fallback-font
. The theme uses a TrueType font, for example Arial.ttf (but the problem occurs with other fonts too). When my document contains list items with anchors, then the list markers (numbers and bullet points) are offset vertically.I noticed, that the problem does not occur, when the theme extends from
default
. However, I need fallback fonts, because my documents contain characters that are not in the TrueType font.Here is my
theme.yml
file:Here is may
document.adoc
file:I am generating the PDF with the following commands:
Screenshot of the generated
document.pdf
file. Notice the marker placement (numbers and bullets):