When using the insert_textbox function, I want to use some Chinese fonts, such as SimSum.ttf. I checked the source code of the function and found that it doesn't support this font. It's also not possible to directly assign a local font file path. How should I proceed to make the inserted text use the SimSum.ttf font? tks
page.insert_textbox(rect,
nowPage,
fontsize=int(pageFontSet.fontSize),
fontname='D:\\SimSum.ttf',
color=pageFontSet.fontColor,
align=TEXT_ALIGN_CENTER,
overlay=True) #
When using the insert_textbox function, I want to use some Chinese fonts, such as SimSum.ttf. I checked the source code of the function and found that it doesn't support this font. It's also not possible to directly assign a local font file path. How should I proceed to make the inserted text use the SimSum.ttf font? tks