We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Strange Font Appearance

Thread ID:





98864 Apr 6,2011 12:38 AM UTC Apr 6,2011 03:34 AM UTC ASP.NET Web Forms (Classic) 2
Tags: PDF
Viktor Shlayer
Asked On April 6, 2011 12:38 AM UTC


I've updated syncfusion library (Essential PDF) today. My app were using legacy.base before that and after I switched to the latest library and updated code to work with it, I got a strange fonts in resulting documents.
Attached file shows comparision of what I'm getting usign my app and how text looks in example documents. Fonts are same in both cases.
To render text I'm using code like this:

page.Graphics.DrawString(str, font, pen, new PointF(tmpOffset, yPos));
Where page is PdfTemplate,
font = new PdfStandardFont(PdfFontFamily.Helvetica, 0); (later I calculate font size I need and recreate font again with correct size)
and pen = PdfPens.Black

I've tryied to change different options of pen object, but only thing I got was thinner contour line.

Please, tell me what could cause such strange behavior. I tried everything I could immagine, but nothing helped. The same as Google. Thanks in advance!

With regards


Viktor Shlayer
Replied On April 6, 2011 12:56 AM UTC

Ups..! Sorry for this question. As always, after askign somebody else I found a solution by myselft.

If PdfBrush is used instead of PdfPen everything works correct.

Geetha M [Syncfusion]
Replied On April 6, 2011 03:34 AM UTC

Hi Viktor,

Thanks for the update.

Glad to hear that the problem is solved.

Please let us know if you have any other questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon