Login  Register

Re: Using the default PDF theme with an additional font

Posted by mojavelinux on Sep 20, 2019; 7:23am
URL: https://discuss.asciidoctor.org/Using-the-default-PDF-theme-with-an-additional-font-tp7155p7156.html

Leslie,

Yes and no. It's possible to use the theme to change the font for recognized block types, such as an example block or a code block. (See https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc). It's not currently possible to change the font for a specific instance of a block. That would be similar to https://github.com/asciidoctor/asciidoctor-pdf/issues/483. We're not that far away from being able to do that now, though some architecture is needed to sort out exactly how it will be done.

Best,

-Dan

On Thu, Sep 19, 2019 at 9:23 AM leslieking [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello, I'm happy with the default PDF theme however I'd like to be able to use an additional font beside the default one, the Charis SIL font, so I can represent the pronunciation of certain words using the International Phonetic Alphabet.

Is it possible to denote specific areas in a documentation, something like this:

[Pronunciation]
----
Some text here
----

Which uses the custom font? Then the rest of the document to be in the default font.

Thank you,
Leslie


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Using-the-default-PDF-theme-with-an-additional-font-tp7155.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux