Text string spacing is not right....

Dec 9, 2009 at 8:28 PM
Edited Dec 9, 2009 at 8:29 PM

Any time I create a text string and place it inside a rectangle, the characters are not spaced as they should be.  The string should show with one space in between each word, but instead are displaying in the PDF with multiple spaces between words.  The alignment is all left and topleft, so, I am not clear why the extra spaces are occurring.  Instead of "Hello to everyone in the world!" I see "Hello     to    everyone    in      the     world!" 

Any help?




Tami Rudnick

Jan 12, 2010 at 8:15 PM

Do you use custom font? silverPDF contain two projects PDFSharp and iTextSharp, and have same problems. PDFSharp have problem with some custom fonts.

Just try to use other fonts. That's only thing that you could do right now. That problem will be fixed in the future versions.

Apr 6, 2010 at 3:52 PM

I have the same problem, even when I run the TextLayout example.

In an attempt to use other fonts that might be available I tried things like:

XFontFamily.Families / XFontFamily.GetFamilies etc

How would i know the list of fonts that i can play with please?



Jul 10, 2010 at 4:43 PM

You better upload a lot of fonts and play with them all. To find out witch one is good.

Aug 6, 2010 at 10:50 AM

I have the same problem. I tested your example of "Unicode", it doesnot work correctly.

I use silverlight3, so I used PDFSilver 42107 which is published Jan 12 2010 at 10:14 PM. I think it is the last version for silverlight 3, isn't it?

I also tested PDFsharp, it works very well, and it does not have this text spacing problem.

Does anyone can give me some help?


Weijia LI

Nov 16, 2011 at 1:10 PM


is there a solution or workarround for the spacing promlem?




Feb 8, 2012 at 1:39 AM
Edited Feb 8, 2012 at 1:45 AM

I'm running into a similar problem, the interword spacing is just way too large. I'm using "Courier" as a font...

Is there a sample where this works ?

I tried PDFsharp Sample: Text Layout the one with four rectangles of different alignments on a salmon background (Straight from the Source Test file) and it does not space characters properly. 

There is probably a problem with my setting: the font that displays in these salmon rectangles is bold and definitively not Times Roman.  

I'm using SilverLight 4 and VS 2010.



Feb 8, 2012 at 1:48 AM

read this


Feb 8, 2012 at 1:56 AM

I will try, pity that it is now included into a recent binary download if it works.

Feb 8, 2012 at 1:58 AM

Also try diffrent fonts, some of them work better with this !$#^$#$5 librarry :)