导出 SHX 字体
Contents
[
Hide
]将 SHX 字体导出为 DXF/DWG 图纸
某些图纸可能包含特殊 SHX 格式的字体,这种格式以形状的形式存储字体的符号。此格式需要为图纸中使用的每种字体额外加载程序。Apose.CAD 可以导出带有 SHX 文本的图纸,并提供不同的选项来实现此目的。最简单的方法是使用 CadRasterizationOptions 对象的 ShxFonts 属性。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.cad as cad | |
image = cad.Image.load(...) | |
rasterizationOptions = cad.imageoptions.CadRasterizationOptions() | |
rasterizationOptions.shx_fonts = ["txt.shx", "romans.shx"] | |
//export |