• Resolved monkeywrench2

    (@monkeywrench2)


    Hi,

    The documentation says that the custom fonts are limited to true type .ttf fonts. Is it in the meanwhile possible to also use web fonts (.woff, .woff2)?

    Thanks for your insights.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    @monkeywrench2,

    You can use webfonts, but true type is the safest bet:
    “…Although the plugin supports webfonts, this is somewhat limited and has a lot of caveats…”

    Thread Starter monkeywrench2

    (@monkeywrench2)

    Thanks for the quick response.

    Could you elaborate a little bit to what limitations and caveats I would encounter if I used web fonts.

    Appreciate your input.

    Plugin Contributor Ewout

    (@pomegranate)

    .woff is not supported as the documentation states. The HTML to PDF library that we use (dompdf) only supports .ttf and .pfb. The term ‘webfonts’ in @dpeyou ‘s quote is somewhat confusing, but it’s referring to the TTF version that Google serves for their webfonts. The caveats are incomplete support for numeric font weights (although it has improved in recent versions) and limitations on the usage of remote resources (depending on your setup).

    Thread Starter monkeywrench2

    (@monkeywrench2)

    Thanks for the clarification.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Fonts’ is closed to new replies.