• Resolved alxmar

    (@alxmar)


    Generated PDF doesn’t show letters in Cyrillic fonts (i.e. Russian). It shows only question marks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Jensen

    (@dkjensen)

    @alxmar

    Hello, the default language does not support Cyrillic fonts but you can easily change this to a font that does, for example Noto Sans. Place this in your themes functions.php file


    /**
    * Change PDF font to Noto Sans for language support
    *
    * @return void
    */
    function child_theme_wc_cart_pdf_before_template() {
    ?>

    <link href=”//fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,latin-ext,vietnamese” rel=”stylesheet”>

    <style>
    body {
    font-family: ‘Noto Sans’, sans-serif;
    }
    </style>

    <?php
    }
    add_action( ‘wc_cart_pdf_before_template’, ‘child_theme_wc_cart_pdf_before_template’ );

    Plugin Author David Jensen

    (@dkjensen)

    Fixed in v1.0.5

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cyrillic font in PDF’ is closed to new replies.