anchor.diff:  The https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic[asciidoctor-pdf-cjk-kai_gen_gothic] project provides themes optimized for CJK languages based on the kai_gen_gothic font.
   See the https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic[asciidoctor-pdf-cjk-kai_gen_gothic] project README for detailed setup instructions.
   
  +WARNING: The theme provided by the `asciidoctor-pdf-cjk-kai_gen_gothic` gem is no longer compatiable with the stable release of Asciidoctor PDF.
  +However, you can still use it to create a <<Create a Custom CJK Theme,custom CJK theme>>.
  +
   Once you have that gem installed (and the fonts), you need to tell Asciidoctor PDF to use one of the themes.
   If you're converting a document that is primarily written in Japanese, you'd run Asciidoctor PDF as follows:
   
    asciidoctor-pdf -r asciidoctor-pdf-cjk-kai_gen_gothic -a pdf-theme=KaiGenGothicJP document.adoc
   
  +If that command fails, you may have better luck creating your own CJK theme.
  +
  +=== Create a Custom CJK Theme
  +
   You also have to option of creating your own theme gem that uses fonts of your choice.
   For example, if you want to use the `asciidoctor-pdf-cjk-kai_gen_gothic` gem to fetch fonts, but then use them in your own theme, here's how you'd do it.
   
  
positive.code: 
   $ asciidoctor-pdf-cjk-kai_gen_gothic-install
  
  . Create a theme that extends the default theme:
  +
  [source,yml]
  ----
  extends: default
  font:
    catalog:
      KaiGen Gothic JP:
        normal: KaiGenGothicJP-Regular.ttf
        bold: KaiGenGothicJP-Bold.ttf
        italic: KaiGenGothicJP-Regular-Italic.ttf
        bold_italic: KaiGenGothicJP-Bold-Italic.ttf
      M+ 1mn:
        normal: GEM_FONTS_DIR/mplus1mn-regular-subset.ttf
        bold: GEM_FONTS_DIR/mplus1mn-bold-subset.ttf
        italic: GEM_FONTS_DIR/mplus1mn-italic-subset.ttf
        bold_italic: GEM_FONTS_DIR/mplus1mn-bold_italic-subset.ttf
    fallbacks:
    - KaiGen Gothic JP
  base:
    font-family: KaiGen Gothic JP
  heading:
    font-family: $base-font-family
  abstract:
  
negative.code: 
  . Load your theme when running Asciidoctor PDF:
  
   $ asciidoctor-pdf -a scripts=cjk -a pdf-theme=./cjk-theme.yml -a pdf-fontsdir=GEM_FONTS_DIR,`ruby -r asciidoctor-pdf-cjk-kai_gen_gothic -e "print File.expand_path '../fonts', (Gem.datadir 'asciidoctor-pdf-cjk-kai_gen_gothic')"` document.adoc
  
  The `-a pdf-fontsdir` option is important to tell Asciidoctor PDF where to find your custom fonts.
  (Note that the inclusion of GEM_FONTS_DIR in the value is only required when using Asciidoctor PDF 1.5).
  
  Rather than using the installer from the `asciidoctor-pdf-cjk-kai_gen_gothic` gem, you can download fonts whatever way you choose.
  When using your own fonts, be sure to consult the <<docs/theming-guide.adoc#preparing-a-custom-font,Preparing a Custom Font>> section of the theming guide to find recommended modifications.
  