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

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

问题描述

我们正在使用Forge Plot API将DWG绘制为PDF/JPG.客户想出了DWG,这些DWG使用的是称为ROBBI.TTF的特殊TTF字体.我想该字体必须先上载到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?

推荐答案

托马斯,是的,您可以将自定义字体包装在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天全站免登陆