Displaying Japanese in PDF | WordPress.org

[ad_1]

I have tried to follow the instructions on using Japanese fonts but have had no success. Any guidance would be much appreciated.

The font fact code I have embedded in the CSS file is:

@font-face {
    font-family: 'simsun';
    font-style: normal;
    font-weight: normal;
    src: local('simsun'), local('simsun'), url(<?php echo $this->get_template_path(); ?>/fonts/simsun.ttf) format('truetype');
}

The font family in the CSS file is defined as:

font-family: 'simsun';

The folder structure where I have these files is:
/wp-content/themes/generatepress/woocommerce/pdf/JWholesale

This must be correct as the custom template does show in my settings and has been selected.

But all of the characters continue to show as boxes.

Any assistance would be much appreciated.

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer