ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.05k stars 234 forks source link

MigraDoc Fonts can't display Japanese or Chinese Characters? #366

Open LordGalahad opened 1 year ago

LordGalahad commented 1 year ago

Here is the problem: We are using both XFont and Font objects. We create our fonts this way: image

And while we no problem with the XFonts in handling Chinese or Japanese Characters, using the Font object is not working

When we write page headings with XFont we do this: image

When we use the Migradoc Document which uses Font instead of XFont, we do this: image

In english, it looks like this: image

But in Japanese, the Title of the Page with the Table and the table headings disappear. Note that the other title which was generated using XFont was rendered properly: image

xiaoshaoqian commented 9 months ago

you can try another Chinese font,such as "STSong",I tried successfully