PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Special embedded fonts missing symbols http://forum.pdfsharp.com/viewtopic.php?f=2&t=834 |
Page 1 of 1 |
Author: | tudordumitriu [ Fri Aug 14, 2009 5:24 pm ] |
Post subject: | Special embedded fonts missing symbols |
Hi What is the solution to use replacement characters for fonts that don't have all the symbols defined (Eg some fonts don't have *&%^$ symbols defined and the PDF is generated with some replacepent chars (some sqares for all the missing fonts)) In GDI+ I noticed that the missing symbols are replaced with the corresponding symbols from a standard family, but PDFSharp generated documents are not rendered this way. Hope there is a solution to this (other than using only fully defined fonts ). Thanks, Tudor |
Author: | tudordumitriu [ Mon Aug 17, 2009 9:45 am ] |
Post subject: | Re: Special embedded fonts missing symbols |
Possible solution found Instead of using gfx.DrawString(TextX, font, gdiBrush, elementLeft, elementTop); use XGraphicsPath path = new XGraphicsPath(); path.AddString(TextX, FontFamily, fontstyle, Size, new XPoint(elementLeft, elementTop), new XStringFormat()); gfx.DrawPath(gdiBrush, path); Code might not be correctly syntactic but I think you got the idea. Let me know if there are alternatives. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |