Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 PDF 库,我用它来将字符串写入 PDF 文档。我正在为 PDF 使用字体“MS gothic UI”,因为它包含 Unicode 字符(例如日文符号)。问题是,所有字符串在生成的 PDF 中都显示为空白。
当我使用像 Arial 这样的字体并且只有“普通”字母 (az) 时,一切正常。但是因为我也想支持亚洲字符,所以我选择了另一种字体(MS gothic UI)。
我想这是某种编码问题。也许 .NET 字符串的编码方式与字体中的字符不同?有没有办法来解决这个问题?谢谢!