fifengine / fifengine-docs

Fifengine - Documentations
3 stars 3 forks source link

pdf generator needs a style.yml #3

Open jakoch opened 7 years ago

jakoch commented 7 years ago

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc

LinuxDonald commented 7 years ago

Added something that is created by you on an other repo :) https://github.com/fifengine/fifengine-docs/commit/63455799cb1a6670958a1a22b9a5a9093af65337

LinuxDonald commented 7 years ago

https://github.com/fifengine/fifengine-docs/commit/cb92e062d898b0be2f0bed2b9aa52efd8174c022

jakoch commented 7 years ago

:( Well, the asciidoctor-pdf generation was commented out for a reason.

jakoch commented 7 years ago

Ok, i exchanged the font used for rendering and enabled autofit.

The last problem is due to using AsciiArt/Box-drawing chars in the dev manual to describe a folder tree. These symbols have no counterpart in the font. I added two emoji fonts, but none covers the missing symbols. Maybe a real fallback font like VL Gothic is needed or simply a better monospaced font.

Niektory commented 7 years ago

Perhaps this can help? http://www.fileformat.info/info/unicode/char/251c/fontsupport.htm https://github.com/asciidoctor/asciidoctor-pdf/issues/323#issuecomment-143966293

jakoch commented 7 years ago

Great find!! I didn't know that there is a list of fonts, which support box-drawing chars. That's very helpful. Turns out, the emoji things do not work, so i'm changing the font to FreeSerif, which is in the list of fonts.

We are error dangling between Prawn::Errors::CannotFit (for fonts supporting the symbols) and The following text could not be fully converted to the Windows-1252 character set: | ├ (for fonts missing the symbols).

jakoch commented 7 years ago

See build history starting from build 156 and up: https://travis-ci.org/fifengine/fifengine-docs/builds