Hi,
I’m currently working on a project to write text with different Fonts to make them ready for gravure as DXF file this my code:
var document = new SVGDocument();
string text = textBox1.Text;
var svg = new SVGSVGElementBuilder().AddText(content: text, fill: Color.Black, fontFamily: "Rochester", fontSize: 40, y: 100).Build(document.FirstChild as SVGSVGElement);
var saveOption = new SVGSaveOptions(){VectorizeText = true};
document.Save(filePath, saveOption);
using (var image = Aspose.Imaging.Image.Load(filePath))
{
// Create an instance of DxfOptions
var exportOptions = new Aspose.Imaging.ImageOptions.DxfOptions() { TextAsLines = true, ConvertTextBeziers = true };
Aspose.Imaging.ImageOptions.VectorRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.SvgRasterizationOptions();
rasterizationOptions.PageWidth = image.Width;
rasterizationOptions.PageHeight = image.Height;
rasterizationOptions.FullFrame = false;
exportOptions.VectorRasterizationOptions = rasterizationOptions;
// Save svg to dxf
image.Save(Path.Combine(saveFolder, "Rochester.dxf"), exportOptions);
}
Some Fonts have crossed letters (ex: Rochester, Shink ). My question is, Did you have any solution from your product to do the same action of Unite(merging the overlayer between letters) like “Adobe Illustrator”(Pathfinder->Unite), I need to do it by programming (C#) the result should be like this:
image.png (35.0 KB)
if there any solution from your product Or recommendation.
thanks in advance