Re: asciidoctor-pdf: How to assign a custom font to a word or line of text?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: How to assign a custom font to a word or line of text?

mojavelinux
Administrator
This feature is not yet supported. You can find an open issue with a discussion about it, as well as a link to a WIP.


Cheers,

-Dan

On Mon, Oct 16, 2017 at 2:38 PM Chris [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi there,

how to format a word or line of text with a custom font using asciidoctor-pdf?

I aready added custom fonts to the default-theme.yml I'm using:

font:
  catalog:
    Roboto:
      normal: roboto-normal.ttf
      bold: roboto-bold.ttf
      italic: roboto-italic.ttf
      bold_italic: roboto-bolditalic.ttf
    Roboto Light:
      normal: roboto-light-normal.ttf
    Roboto Medium:
      normal: roboto-medium-normal.ttf

Now how can one format a word or text line with "Roboto Light" or "Roboto Medium" font? I tried the following but it doesn't work:

This is standard text and [Roboto Medium]#this is text formated with custom font#

How is it done correct? Could anyone please provide a short code example?

Regards,
Chris


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-How-to-assign-a-custom-font-to-a-word-or-line-of-text-tp5992.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