PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:28 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Jan 08, 2010 2:22 pm 
Offline

Joined: Fri Jan 08, 2010 2:10 pm
Posts: 1
My team came across your product and we absolutely love it. The model is very intuitive. We were up and running in no time. We were using pdf_lib which is a nightmare. However...one of the reports we are generating requires us to use a fixed-width font like Courier. The first issue we noticed is that setting the font to Courier doesn't seem to work. It appears that the reader falls back to the default font. We then tried "Courier New" which seemed to do the trick except that when we try to highlight some text on the reader, it highlights part of the line below.

Assuming that I had done something wrong, I opened up the example project and changed the Hello World app to use "Courier New" and it has the same behavior. I have included the line of code I am using to change the font.

Code:
var text = paragraph.AddFormattedText(content, new Font("Courier New"));


Am I doing something wrong?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group