Exporting SHX fonts
Contents
[
Hide
]
Export SHX fonts for DXF/DWG drawings
Some drawings may contain fonts in special SHX format, that stores symbols of the font in a form of shapes. This format requires additional loading procedure for each font used in the drawing. Apose.CAD can export drawings with text written in SHX and has different options to do this. The simplest way to do it just use ShxFonts property of CadRasterizationOptions object.
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 |