asciidoctor / asciidoctorj-pdf

AsciidoctorJ PDF bundles the Asciidoctor PDF RubyGem (asciidoctor-pdf) so it can be loaded into the JVM using JRuby.
Apache License 2.0
36 stars 17 forks source link

Built-in Fonts Aren't Used #13

Closed yeroc closed 6 years ago

yeroc commented 6 years ago

It appears that built-in fonts aren't used when specifying a custom theme. Not sure whether this is an issue with the Maven plugin or with asciidoctorj-pdf or somewhere else. From my reading of the theming guide (https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#fonts) it seems to me if I'm not overriding the built in font catalog & not specifying a pdffontdir, the bundled fonts ought to be used. However, this doesn't seem to work. For example the Maven plugin example (https://github.com/asciidoctor/asciidoctor-maven-examples/tree/master/asciidoctor-pdf-with-theme-example) has this problem though I didn't realize it initially until I modified the sample document and started getting "The following text could not be fully converted to the Windows-1252 character set" warnings.

yeroc commented 6 years ago

I missed the fact that the bundled fonts are defined in default-theme.yml which is not loaded when using a custom theme and the base-theme.yml defines font families corresponding to the AFM fonts so this ticket is invalid.