Hello,
In Indico3.0, When I print badges and posters into PDF, all elements contain Chinese , some elements are printed in chinese, some element are not printed in Chinese in PDF. For exmple, event title, chairs, venue are not printed in Chinese in PDF.
Why?
How to make all of elements show in Chinese ?
I refer the post to add Chinese fonts. Here is what I did.
(1) I put the Chinese fonts uming.ttc into indico_fonts directory
/opt/indico/.venv/lib/python3.9/site-packages/indico_fonts
(2) I add the line in /indico/legacy/pdfinterface/base.py
+137 pdfmetrics.registerFont(TTFont(‘Uming-CN’,os.path.join(font_dir, ‘uming.ttc’)))
(3) I add the line in /indico/modules/designer/pdf.py
FONT_STYLES = {
+33
‘Uming-CN’: [‘Uming-CN’, ‘Uming-CN’, ‘Uming-CN’, ‘Uming-CN’]
}
(4) The line is in the file /indico/modules/designer/templates/ template.html
Uming-CN
(5) I restart all.
I still have the same badges. Some of Chinese cannot be printed in badges in PDF.
Hi, I’ve got the same problem as you did. And I upgraded my indico service to the latest v3.2.6, which says Chinese letters in pdf rendering are supported. But still can not display any Chinese characters in exported PDF. Do you have any solutions?
I got the problem when I tried to export a conference timetable (which contain Chinese character)to pdf. Can I solve this by adding the fonts to the source?