【问题标题】:Century Gothic Font Not showing in font family using iText [duplicate]Century Gothic Font 未在使用 iText 的字体系列中显示 [重复]
【发布时间】:2017-09-22 21:25:01
【问题描述】:
com.lowagie.text.Font font = FontFactory.getFont(str7, "Cp1252", true, (float)Convert.ToInt32(str8), num8, this.color);

当我将 str7 设置为世纪哥特字体时,此命令未选择世纪哥特字体。

【问题讨论】:

    标签: c# asp.net itext


    【解决方案1】:

    关于您的代码的几点说明:

    1. 当您在代码 sn-p 中看到 com.lowagie 时,您应该知道 sn-p 已过期。该版本不受支持。
    2. 尝试使用 iText7 重现您的问题。它是 iText 的最新版本。它已获得 AGPL 许可。
    3. 网站上有大量使用字体的示例。转至https://developers.itextpdf.com/content/itext-7-examples/itext-7-font-examples
    4. 在这种情况下更新可能会很好地解决您的问题。在与字体相关的代码上花费了大量精力。

    【讨论】:

      猜你喜欢
      • 2013-03-29
      • 1970-01-01
      • 2014-04-10
      • 2019-09-19
      • 2011-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-16
      相关资源
      最近更新 更多