asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 296 forks source link

Non-latin Alphabet Problem #583

Open WyxXu opened 1 year ago

WyxXu commented 1 year ago

image

When I save note as PDF, all Chinese character ,and some character from other non-latin alpabet language, cracks.

rahmanusta commented 1 year ago

https://github.com/asciidocfx/AsciidocFX/issues/578

WyxXu commented 1 year ago

578

thanks, and I find another solution myself:

Copy the font I need to Asciidoctor-CJK-Demo > fonts, and change the yaml config

image

image

But I don't know why Sometimes it all comes to italic sometimes it all display normal. Maybe its yaml writing order issue.

WyxXu commented 1 year ago

What option can I delegate different font for normal and italic text?

life888888 commented 1 year ago

Method A - (https://github.com/life888888/asciidoctor-pdf-cjk-ext#asciidocfx) - Asciidoctor PDF theme 中文日文韓文字型 Noto Sans CJK,Noto Sans Mono CJK,Noto Serif CJK 包含4種樣式(Regular,Italic,Bold,BoldItalic自動下載跟開箱即用。

Method B - (https://github.com/life888888/asciidocfx-pdf-fop-cjk-patch) - Asciidoctor + FOP 中文日文韓文字型 Noto Sans CJK,Noto Sans Mono CJK,Noto Serif CJK 包含4種樣式(Regular,Italic,Bold,BoldItalic自動下載跟開箱即用。

Asciidoctor CJK Examples (https://github.com/life888888/asciidoctor-pdf-cjk-ext-gradle-examples)