【问题标题】:Extrabold Font weight for pdf sharppdf sharp 的 Extrabold 字体粗细
【发布时间】:2013-12-20 00:45:02
【问题描述】:

我在 Pdf 中使用 Open Sans 字体。我需要使用 Open Sans Extrabold Italic 样式。在 pdf sharp 中有一个 BoldItalic XFontStyle,但没有 Extrabold,如何在 pdf sharp 中将字体设置为 Extrabold。这是我正在使用的代码:

XFont extrabold = new XFont("Open Sans", 80, XFontStyle.BoldItalic);

我正在寻找类似 @​​987654322@ 的东西,但它不存在。

我发现有一个 XFontWeights.ExtraBold 设置,但我不确定如何在 XFont 中使用它。

【问题讨论】:

    标签: fonts pdfsharp


    【解决方案1】:

    使用字体名称“Open Sans Extrabold”(不是“Open Sans”)和正常字体样式斜体。

    对于其他字体粗细,还有“Open Sans Light”和“Open Sans Semibold”。

    【讨论】:

      猜你喜欢
      • 2017-01-20
      • 1970-01-01
      • 2014-10-04
      • 1970-01-01
      • 2015-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多