Viewing 1 replies (of 1 total)
  • Plugin Author Lewis Rosenthal

    (@lewisr)

    Hi, Saeed…

    Fonts are selectable in the back end, including fonts which should be suitable for Persian (try one of the DejaVu variants). You may set these from the Typography section of the admin page.

    The latest version of the plugin already supports RTL as an override to the default setting for the system. I haven’t tested it much, however. I take it that your site already defaults to RTL and yet the content is not rendered that way. You may force all PDFs to RTL with the following modification to the main class, right around line 326, which should be just above the comment:

    // set header and footer fonts

    Insert:

    $pdf->setRTL(true);

    Then, when you have a need to render specific content as LTR, wrap that with the shortcodes “wpptopdfenh_ltr” and “/wpptopdfenh_ltr” to override the RTL setting.

    I’ll consider adding the RTL as a global setting if the system does not automatically do this (I really thought that it did, but it has been a very long time since I looked at that code).

    HTH

    Lewis

    Please confirm that you are using version 1.1.1

Viewing 1 replies (of 1 total)
  • The topic ‘Font’ is closed to new replies.