Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Commented Unassigned: Problem with Persian Fonts [15509]

$
0
0
I found out that ٍEPPlus has problem with Persian fonts like "B Nazanin". when I open an existed excel file and change some cell values, then saving using SaveAs method it becomes fail in saving persian fonts correctly.
when you open saved file in MS Excel you can see that the font is not correct. you can see correct font when you change the cell's font to another font and then change it again to "B Nazanin".
by checking Styles.xl file in back of excel file we can see that 'charset' tag of persian fonts are removed.
that caused font does'nt affect on strings and just showing its name in font name.
by adding this removed tag to styles it becomes fine.


Comments: I have found the source of the problem. if you open the xlsx file generated with the Aspose.Cells With WinRar and open styles.xml there is an XML node for the "B Traffic" font like this. <font> <sz val="18" /> <color theme="1" /> <name val="B Nazanin" /> <family val="2" /> </font> if you compare this XML node with the one in correct xlsx file generated with MS Excel you can see the difference. <font> <sz val="18"/> <color theme="1"/> <name val="B Nazanin"/> <charset val="178"/> </font> now if you correct this node and put it back in xlsx file generated with EPPlus the font will be shown correctly in MS Excel.

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>