The CSS selects a monospaced font for `<pre>` entities, see line 89 of
Its possible that you are experiencing what I call the "fake bold" (or
italic etc) problem. This was identified in an IDE that uses bold and
italic to highlight code. It the font chosen does not have bold,
italic, etc variants installed the font system (trying to be helpful)
fakes the required variant from the regular font. Unfortunately this
process does not preserve the spacing (not sure if by design, accident
or bug). I believe it has been reported to the font handling
The only thing you can try is to add your own CSS to select a
different monospaced font for the `<pre>` entity.
On 22 September 2016 at 12:01, Jon Leech <jplgp...@gmail.com> wrote:
> The html5 asciidoc output uses GNU source-highlight by default.
> Unfortunately the default settings for C/C++ highlighting seem to end up
> using proportional fonts, or at least fonts which are not the same width
> across all of italic / bold / plain styles, which screws up the alignment of
> struct declarations.
> When I examine the generated HTML, the CSS style getting applied to the code
> appears to be "monospace" inherited from <tt>, but the rendering in Chromium
> is definitely not fixed-width. This seems like an issue with the default
> asciidoc CSS getting applied, not to source-highlight itself, but that's as
> far as I've gotten.Can this be addressed by localizing the asciidoc CSS for
> html5 and specifying a different font-family for <tt> tags, or something
> along those lines?
> Attached: example code with test.adoc -> test.html output showing the
> problem. asciidoc 8.69.
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to asciidoc+unsubscr...@googlegroups.com.
> To post to this group, send email to email@example.com.
> Visit this group at https://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.