No 'bold' text while generating pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

No 'bold' text while generating pdf

Krzysztof
Hello,

I have a problem with generating bold text in pdf files. It does show in preview (vscode, firefox plugin), but after generating pdf file using asciidoctor, there are no bold texts anywhere (table headers, text). Is there any way to diagnose it?

Source:

== Header

*Title*

My *text* here

.Sample table
[options="headers,autowidth",frame="topbot",grid="all",cols="s,"]
|===
|Parameter|Value
|City|Warsaw
|Name|Krzysztof
|===

PDF:

Generated pdf

I use Asciidoctor 2.0.12 and ruby 2.7.2p137

Best regards,
Krzysztof

Reply | Threaded
Open this post in threaded view
|

Re: No 'bold' text while generating pdf

abelsromero
I tested with asciidoctor-pdf (1.5.4) and worked fine. Which version are you running?

This is my command
 $ asciidoctor -r asciidoctor-pdf -b pdf pdf.adoc


EDIT: I suspect you are replacing the fonts? Maybe the bold font is not setup?
Reply | Threaded
Open this post in threaded view
|

Re: No 'bold' text while generating pdf

Krzysztof
I was using this command:

asciidoctor-pdf sample.adoc

I found it somewhere in a doc, but can't tell where. When I switched to...

asciidoctor -r asciidoctor-pdf -b pdf sample.adoc

...it works.

I also found a second problem with my font, it was not generating bold after all. Now, it's OK.

Thanks :-)