如何通过 AutoCAD Plot API 在 Forge 设计自动化上使用用户定义的字体 [英] How to use user defined font on Forge design automation with AutoCAD Plot API

查看:18
本文介绍了如何通过 AutoCAD Plot API 在 Forge 设计自动化上使用用户定义的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

We are using the Forge Plot API to plot DWGs to PDF/JPG. A customer came up with DWGs that are using a special TTF-Font called ROBBI.TTF. I suppose this font has to be uploaded to the Forge server before it can be used. Is it possible to upload the font once, so that it can be used for all our plot jobs? If not: What is the best way to plot using a custom TTF font?

推荐答案

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

Thomas, yes, you can wrap custom fonts in your apppackage bundle under Contents folder and refer the path to SupportPath attribute.

<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>

这篇关于如何通过 AutoCAD Plot API 在 Forge 设计自动化上使用用户定义的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆