Hi,
When rendering an Excel chart, I noticed the font has been changed in the output image.
Code:
var workbook = new Workbook(@“test.xlsx”);
var options = new ImageOrPrintOptions
{
ImageFormat = ImageFormat.Emf,
OnlyArea = false,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
Transparent = true
};
var sheet = workbook.Worksheets[0];
sheet.Charts[0].ToImage(@“out.emf”, options);
I’ve attached the test file, output and a screenshot for your reference. You can find the font has been changed (it’s especially visible on the character ‘g’). Could you please look into this?
test.zip (71.6 KB)
screenshot.png (17.5 KB)
Edit: for your convenience I have attached the font (Source Sans Pro) file I’m using in the chart, in case you don’t have it already.
source-sans-pro.zip (1.1 MB)
Thanks,