-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF generated with dw2pdf doesn't display Japanese fonts #54
Comments
I did some work on fixing this with the addition of a config_fonts.php file in your dw2pdf template. The format of it is describe on the mPDF site; for example: <?php
$fontdata = array(
'gillsans' => array(
'R' => 'GIL_____.ttf',
'B' => 'GILB____.ttf',
'I' => 'GILI____.ttf',
'BI' => 'GILBI___.ttf',
),
); You also need to define |
Thank you samwilson. I've also tried another version of DW2PDF, the fork by Michitux, which is rendering well (using WenQuanYiZenHei font) for the first 381 characters, then squares reappeared, see here https://forum.dokuwiki.org/thread/9819 Any other idea? |
I'm sorry it's not working. :( You need to create
If the example I have above, the files |
Ok thanks, |
Hi,
dw2pdf (last version) is installed on Weatherwax RC1
It works well with English pages but not with Japanese texts.
Fonts embed in the PDF are only DejaVuSansCondensed, DejaVuSanCondensed-Bold and ZapfDingbats, therefore Japanese characters are rendered as squares.
I tried to change mpdf settings but i cannot solve the issue myself.
The text was updated successfully, but these errors were encountered: