asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

listing block font-size is a fixed value? #2499

Closed Baerbeisser closed 7 months ago

Baerbeisser commented 7 months ago

I've set base_font_size: 10 but the listing blocks look like this:

Bildschirmfoto_2024-02-22_21-50-02

I find here that block: only has margin keys, but listing block counts as code:, but font-size works neither there.

edit: code: font-size doesn't work at all for listing block in my example? And changing code: to base: adds to base_font_size, making everything size 2 or so, except the listing block.

base: font-color: #FF0000 works, everything gets red.

What i want is, to have listing block font-size about as small as the rest of the text.

Here is my theme.yml:

extends:
- default
- default-with-font-fallbacks
font:
  catalog:
    merge: true
    Roboto:
      normal: /usr/share/fonts/TTF/Roboto-Regular.ttf
      italic: /usr/share/fonts/TTF/Roboto-Italic.ttf
      bold: /usr/share/fonts/TTF/Roboto-Bold.ttf
      bold_italic: /usr/share/fonts/TTF/Roboto-BoldItalic.ttf
base_font_family: Roboto
fallbacks: [Roboto]
base_font_size: 10
heading_h1_font_size: 19
heading_h2_font_size: 16
heading_h3_font_size: 14
heading_h4_font_size: 12
heading_h5_font_size: 10
heading_h6_font_size: 8
code:
    font-size: 10
mojavelinux commented 7 months ago

Please direct questions about usage to the users/asciidoctor-pdf stream in the project chat as the issue template requested. https://chat.asciidoctor.org. The issue tracker is not a support portal. If we determine there is actually a bug in the software, then an issue can be filed. Thanks for understanding.