PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Underlining spaces?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1937
Page 1 of 1

Author:  hoylemd [ Thu Mar 08, 2012 3:22 pm ]
Post subject:  Underlining spaces?

Hi folks,

I'm finding that when i print underlined text the spaces between words don't get underlined. Is there any way I can get the spaces to be underlined, or do I need to modify my PDFSharp source code?

Author:  hoylemd [ Thu Mar 08, 2012 3:46 pm ]
Post subject:  Re: Underlining spaces?

Quick update:

It only happens when I use an XTextFormatter as opposed to the bare XGraphics object. I think it's because XTextFormatter breaks the text up into words and prints each one individually. I'm going to try making XTextFormatter stick all blocks in a line together and print them as a single string. This'll break justified alignment, but I think it's fine for my purposes since I don't use justified.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/