Chinese Code

Stimulsoft Reports.JS discussion
Post Reply
2394745852@qq.com
Posts: 28
Joined: Fri Nov 16, 2018 6:02 am

Chinese Code

Post by 2394745852@qq.com »

I want to make this Chinese font into Microsoft Yahei or Song, how to do it.Image
Attachments
2f8f92ede2cb2779406be41ea471734.png
2f8f92ede2cb2779406be41ea471734.png (97 KiB) Viewed 1432 times
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Chinese Code

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
2394745852@qq.com
Posts: 28
Joined: Fri Nov 16, 2018 6:02 am

Re: Chinese Code

Post by 2394745852@qq.com »

In Report.js, such as in the picture above, when I write Chinese in the text component (such as the two words "订单" shown above), how can I change the font of Chinese ("订单")?
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Chinese Code

Post by Lech Kulikowski »

Hello,

You can add your fonts in the resource or from code:
Stimulsoft.Base.StiFontCollection.addOpentypeFontFile('fonts/font.ttf');

Thank you.
Post Reply