【问题标题】:How to use user defined font on Forge design automation with AutoCAD Plot API如何通过 AutoCAD Plot API 在 Forge 设计自动化中使用用户定义的字体
【发布时间】:2019-07-12 01:38:43
【问题描述】:

我们正在使用 Forge Plot API 将 DWG 绘制为 PDF/JPG。一位客户提出了使用名为 ROBBI.TTF 的特殊 TTF 字体的 DWG。我想这个字体必须先上传到 Forge 服务器才能使用。 是否可以一次上传字体,以便我们所有的绘图工作都可以使用它?如果不是:使用自定义 TTF 字体进行绘图的最佳方式是什么?

【问题讨论】:

    标签: plot fonts autodesk-forge truetype autodesk-designautomation


    【解决方案1】:

    Thomas,是的,您可以在 Contents 文件夹下的 apppackage 包中包装自定义字体,并将路径指向 SupportPath 属性。

    <Components>
        <RuntimeRequirements
            OS="Win64"
            Platform="AutoCAD" 
            SupportPath="./Contents/"/>
        <ComponentEntry
            AppName="CustomPlotter"
            ModuleName="./Contents/PlotLayout.dll"
            AppDescription="AutoCAD.IO Reset Plot Layout"
            LoadOnCommandInvocation="True"
            LoadOnAutoCADStartup="False">
          <Commands GroupName="PlotLayoutCommands">
            <Command Global="FPDPLOT" Local="FPDPLOT"/>
          </Commands>
        </ComponentEntry>
      </Components>
    

    【讨论】:

      猜你喜欢
      • 2019-06-15
      • 2020-12-08
      • 2020-09-30
      • 2018-10-08
      • 2017-12-16
      • 2019-06-02
      • 2017-09-15
      • 2021-07-13
      • 2021-03-22
      相关资源
      最近更新 更多