Now that you’ve created the theme, you can put it to use.
Since the theme provides custom fonts, you’ll need to specify both the location of the theme file and the location of the fonts when calling Asciidoctor PDF.
Let’s assume that your theme is located in the themes directory relative to your document.
Here’s how you specify the path to the theme and the fonts it uses:
$ asciidoctor-pdf -a scripts=cjk -a pdf-theme=./themes/cjk-theme.yml -a pdf-fontsdir=./themes document.adoc
The -a pdf-fontsdir option is important because it tells Asciidoctor PDF where to look for the fonts specified in the theme.
Alternately, the theme could specify the location of these fonts using an absolute path.
The scripts option enables CJK support within Asciidoctor, which allows lines to break anywhere instead of at word boundaries.
If you’ve followed the instructions correctly, you should see that there are few (if any) missing glyphs in your PDF document.