Hi,
When rendering a worksheet with text in Windings/Windings 3 fonts to image or HTML, I saw the outputs are incorrect.
Code:
var options = new ImageOrPrintOptions { ImageType = ImageType.Svg, SaveFormat = SaveFormat.Svg, OnlyArea = false, TextRenderingHint = TextRenderingHint.ClearTypeGridFit, OnePagePerSheet = true, Transparent = true }; var workbook = new Workbook(@".\test.xlsx"); var sheet = workbook.Worksheets[0]; sheet.PageSetup.PrintArea = "B10:H20"; sheet.PageSetup.LeftMargin = sheet.PageSetup.RightMargin = sheet.PageSetup.TopMargin = sheet.PageSetup.BottomMargin = sheet.PageSetup.HeaderMargin = sheet.PageSetup.FooterMargin = 0; // Render as SVG, showing the font is 'arial' new SheetRender(sheet, options).ToImage(0, @".\out.svg"); options.ImageType = ImageType.Emf; options.SaveFormat = SaveFormat.Auto; // Render as EMF, same behaviour new SheetRender(sheet, options).ToImage(0, @".\out.emf"); var htmlSaveOptions = new HtmlSaveOptions { ExportHiddenWorksheet = false, ExportActiveWorksheetOnly = true, DefaultFontName = string.Empty }; // Render as HTML, the text (before applying font) became လ rather than “ sheet.Workbook.Save(@".\out.html", htmlSaveOptions);
In SVG/EMF, the font has been reset to ‘Arial’. In HTML, although the font names have been preserved properly, the character code has been changed from ‘“’ to “လ”.
I’ve attached my test files and some screenshot for your reference. Could you please take a look?
Windings fonts are installed in Windows by default, I’ve also included in my attachment just in case. Could you please help to take a look?
tests.zip (174.3 KB)
image.png (83.6 KB)
image.png (87.3 KB)
Thanks,