Login  Register

Re: asciidoctor-pdf with custom style: problem with fonts

Posted by mojavelinux on Jul 16, 2019; 5:08pm
URL: https://discuss.asciidoctor.org/asciidoctor-pdf-with-custom-style-problem-with-fonts-tp6992p6993.html

It sounds like you need to read this section:

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#custom-fonts

The simplest way to deal with this now is to just extend the default theme and add your customizations.

extends: default
base:
  font-size: 333333
...

That way, you start with all the right fonts.

Cheers,

-Dan

On Tue, Jul 16, 2019 at 7:13 AM Siegfried Kurz [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,
I'm moving form asciidoc to asciidoctor-pdf and want to use a custom style for the pdf-output.

I get the following error when using my custom theme:
"The following text could not be fully converted to the Windows-1252 character set:"
Without the custom theme, no errors are generated.
From the source I see, that the error stems from an ellipsis ("…")

My command line is:
/usr/bin/asciidoctor-pdf -d book -b pdf -a title -a pdf-style=/usr/lib64/ruby/gems/2.0.0/gems/asciidoctor-pdf-1.5.0.alpha.14/data/themes/hit-theme.yml -o /u1/dcpa/etroot_entw/tmp/tmp.29374.pdf Noah.asc

What am I doing wrong?

best regards from germany
Siegfried


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-with-custom-style-problem-with-fonts-tp6992.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux