![]() ![]() ![]() Not sure if you've solve your problem yet. ![]() What am I missing in here?ĮDIT: These are the characters I am trying to display, as an example: 简体中文体中文 I used both SC and TC files because initially I thought I was using the wrong chinese characters, but it doesn't matter which ones I use, it still doesn't work, and I receive no error in the console or at compile time. This is my service code, where references the newly created vfs file and defaultStyle of the docDefinition is set to font: "NotoCh". ttf fonts to a vfs_fonts.js, which successfully created an object that contains the font name as key and a base64 string as valueĪdded the necessary code to my pdf exporting service after moving the vfs_fonts.js file in my assets folder Using the script.sh from the pdfmake documentation page, I've converted the. ttf using online converters (multiple sites since I've thought maybe the convertor has a problem). ![]() The steps I've took are the following ones:ĭownloaded the SC (and TC) fonts from the google fonts pageĬonverted the Regular file of the font family from. I followed the documentation from here, but no matter what fonts I try to use the newly added ones always display as empty boxes, more exactly something like this. In my PDF download, I need to have the possibility to use both english and chinese as languages for the inserted text, but while english works I cannot make chinese to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |