How to define the custom fonts-directory?

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

How to define the custom fonts-directory?

sroth
What is the right syntax?
By using the same syntax as for themes i got this errors:

C:\asciidoctor>asciidoctor-pdf -a pdf-theme
=themes\phlow-theme.yml pdf-fontsdir=fonts basic-example.adoc
asciidoctor: FAILED: input file pdf-fontsdir=fonts is missing

C:\asciidoctor>asciidoctor-pdf -a pdf-theme
=themes\phlow-theme.yml pdf-fontsdir=fonts\ basic-example.adoc
asciidoctor: FAILED: input file pdf-fontsdir=fonts/ is missing

C:\asciidoctor>dir
 Datenträger in Laufwerk C: ist OS
 Volumeseriennummer: 5D0A-8D00

 Verzeichnis von C:\asciidoctor

27.08.2019  16:04    <DIR>          .
27.08.2019  16:04    <DIR>          ..
27.08.2019  15:23               790 basic-example.adoc
27.08.2019  16:01            12.718 basic-example.pdf
27.08.2019  16:04    <DIR>          fonts
27.08.2019  08:49    <DIR>          images
27.08.2019  15:22             4.067 test.adoc
27.08.2019  15:39                 0 test.txt
27.08.2019  16:02    <DIR>          themes
               4 Datei(en),         17.575 Bytes
               5 Verzeichnis(se),  8.283.594.752 Bytes frei

C:\asciidoctor>dir fonts
 Datenträger in Laufwerk C: ist OS
 Volumeseriennummer: 5D0A-8D00

 Verzeichnis von C:\asciidoctor\fonts

27.08.2019  16:04    <DIR>          .
27.08.2019  16:04    <DIR>          ..
02.02.2011  00:00           104.120 OpenSans-Bold.ttf
02.02.2011  00:00            92.628 OpenSans-BoldItalic.ttf
02.02.2011  00:00           102.076 OpenSans-ExtraBold.ttf
02.02.2011  00:00            92.772 OpenSans-ExtraBoldItalic.ttf
02.02.2011  00:00           101.696 OpenSans-Light.ttf
02.02.2011  00:00            92.488 OpenSans-LightItalic.ttf
02.02.2011  00:00            96.932 OpenSans-Regular.ttf
02.02.2011  00:00            92.240 OpenSans-RegularItalic.ttf
02.02.2011  00:00           100.820 OpenSans-SemiBold.ttf
02.02.2011  00:00            92.180 OpenSans-SemiBoldItalic.ttf
              10 Datei(en),        967.952 Bytes
               2 Verzeichnis(se),  8.283.459.584 Bytes frei
Reply | Threaded
Open this post in threaded view
|

Re: How to define the custom fonts-directory?

mojavelinux
Administrator
You're typing:

pdf-fontsdir=fonts

It should be:

-a pdf-fontsdir=fonts

Each attribute defined on the command line must be prefixed with "-a"

Cheers,

-Dan

On Wed, Aug 28, 2019 at 12:00 AM sroth [via Asciidoctor :: Discussion] <[hidden email]> wrote:
What is the right syntax?
By using the same syntax as for themes i got this errors:

C:\asciidoctor>asciidoctor-pdf -a pdf-theme
=themes\phlow-theme.yml pdf-fontsdir=fonts basic-example.adoc
asciidoctor: FAILED: input file pdf-fontsdir=fonts is missing

C:\asciidoctor>asciidoctor-pdf -a pdf-theme
=themes\phlow-theme.yml pdf-fontsdir=fonts\ basic-example.adoc
asciidoctor: FAILED: input file pdf-fontsdir=fonts/ is missing

C:\asciidoctor>dir
 Datenträger in Laufwerk C: ist OS
 Volumeseriennummer: 5D0A-8D00

 Verzeichnis von C:\asciidoctor

27.08.2019  16:04    <DIR>          .
27.08.2019  16:04    <DIR>          ..
27.08.2019  15:23               790 basic-example.adoc
27.08.2019  16:01            12.718 basic-example.pdf
27.08.2019  16:04    <DIR>          fonts
27.08.2019  08:49    <DIR>          images
27.08.2019  15:22             4.067 test.adoc
27.08.2019  15:39                 0 test.txt
27.08.2019  16:02    <DIR>          themes
               4 Datei(en),         17.575 Bytes
               5 Verzeichnis(se),  8.283.594.752 Bytes frei

C:\asciidoctor>dir fonts
 Datenträger in Laufwerk C: ist OS
 Volumeseriennummer: 5D0A-8D00

 Verzeichnis von C:\asciidoctor\fonts

27.08.2019  16:04    <DIR>          .
27.08.2019  16:04    <DIR>          ..
02.02.2011  00:00           104.120 OpenSans-Bold.ttf
02.02.2011  00:00            92.628 OpenSans-BoldItalic.ttf
02.02.2011  00:00           102.076 OpenSans-ExtraBold.ttf
02.02.2011  00:00            92.772 OpenSans-ExtraBoldItalic.ttf
02.02.2011  00:00           101.696 OpenSans-Light.ttf
02.02.2011  00:00            92.488 OpenSans-LightItalic.ttf
02.02.2011  00:00            96.932 OpenSans-Regular.ttf
02.02.2011  00:00            92.240 OpenSans-RegularItalic.ttf
02.02.2011  00:00           100.820 OpenSans-SemiBold.ttf
02.02.2011  00:00            92.180 OpenSans-SemiBoldItalic.ttf
              10 Datei(en),        967.952 Bytes
               2 Verzeichnis(se),  8.283.459.584 Bytes frei


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-to-define-the-custom-fonts-directory-tp7118.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