Support » Plugin: Gravity PDF » Different font for different form fields

  • Resolved partiallypro

    (@partiallypro)


    Is there a way to perhaps add a class to a form field and have it show up in a different font in the PDF?

    Basically I have a client that wants a simulated signature option, so the rest of the PDF needs to be the basic font, but this signature field would output a script font.

    • This topic was modified 2 months, 3 weeks ago by  partiallypro.
Viewing 1 replies (of 1 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Sure. That is certainly possible.

    If using one of the Core templates, this is the simplest way to set it up:

    1. Install the custom font you want to use.

    2. Implement the gfpdf_core_template action and add an appropriate class which sets up your font.

    3. Add the class to your field in the Form Editor.

    You may find you need to cascade your CSS to get it working correctly. .class .value would be the way to go there.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.