Add PDF CJK theme, fix #48 #189
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
给 asciidoctor-pdf 打了补丁,并且做了一个主题,使用 KaiGen Gothic 字体(https://github.com/akiratw/kaigen-gothic )。这是一个用 Adobe 思源字体转的 TTF 格式字体,asciidoctor-pdf 依赖的 Prawn 不支持 OTF 格式所以用不了原版。
效果:
用法:
bundle 之后运行一次
asciidoctor-pdf-cjk-kai_gen_gothic-install
命令,安装字体。字体总共 140 多 MB,有点大。之后
rake book:build
就行了。