Linearize text from SVG in DXF

Hello,
sampleText.zip (995 Bytes)

Could you please help us with a solution for a problem we have related to linearizing some fonts with Aspose.Imaging?

We convert SVG files to DXF files with Aspose.Imaging, but the text from the SVG is linearized using a different font than we specify in the SVG file (font path and font family).
We mention that the font is installed on the machine and the app can open the ttf file.

We played with the font-family values in the SVG file and managed to guess somehow the font-family for some fonts to be correctly drawed, but not for many of the fonts and this should not be a solution.

Could you please let us know what would be the solution in order to have linearized text (exploded text)? Or what fonts to use?

Below is the code we use to convert SVG to DXF and a sample of SVG file is attached.

Thanks,
Andrei

using Aspose.Imaging;
using Aspose.Imaging.ImageOptions;

namespace ConsoleApp1
{
    public static class Convertor
    {
        public static void ConvertSvgToDxf(string inputFile, string outputFile)
        {
            using (var image = Image.Load(inputFile))
            {
                ImageOptionsBase exportOptions = new DxfOptions
                {
                    TextAsLines = true,
                    ConvertTextBeziers = true
                };

                if (image is VectorImage)
                {
                    using (VectorRasterizationOptions rasterizationOptions = new SvgRasterizationOptions())
                    {
                        var ratio = 71.6f;

                        rasterizationOptions.PageWidth = image.Width / ratio;
                        rasterizationOptions.PageHeight = image.Height / ratio;
                        exportOptions.VectorRasterizationOptions = rasterizationOptions;
                    }
                }

                image.Save(outputFile, exportOptions);
            }
        }
    }
}

@andreimoldovansnapon Hello! Thank you for your interest in our product. We will look into this issue and provide feedback shortly.

@andreimoldovansnapon
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-6954

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.