• Hi there,
    I’m using “Yekan” font to create pdf file from gravity form entries. when selecting the custom font, the pdf version includes spece between each letter of a word. I saw the link you’d supported someone else, but didn’t know where should I exactly put the code you and what should I replace in the code according to my custom font named “Yekan”.

    add_filter( 'mpdf_font_data', function( $fonts ) {
       if ( isset( $fonts['notosans'] ) ) {
          $fonts['notosans']['useOTL']     = 0xFF;
          $fonts['notosans']['useKashida'] = 50;
       }
    
       return $fonts;
    }, 15 );

    Regards.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    If you are running Gravity PDF 6+ the code snippet is no longer required. The new Font Manager will automatically enable OTL support for font files that include this information.

    Please provide a direct link to a place to download the Yekan font you are using, and provide the string of text you are having trouble correctly displaying in the PDF.

    A screenshot of how the text currently looks in your PDF and how it should look would also be appreciated.

    Thread Starter aminji

    (@aminji)

    Thank you for the fast respond,
    here’s link of the font: https://www.wfonts.com/font/b-yekan
    and a sample part of the string : https://pasteboard.co/KaX2nYp.png

    Thread Starter aminji

    (@aminji)

    I’m still waiting for your answer please.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    I checked out the font file provided and see it doesn’t included the appropriate OFL tables needed to correctly kern the letters in the PDF. You’ll need to use a different font if you’d like the Arabic letters to display correctly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Space between arabic letters when using custom font’ is closed to new replies.