PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Apr 19, 2024 3:33 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Font sizes
PostPosted: Tue Jan 27, 2015 3:08 pm 
Offline

Joined: Tue Jan 27, 2015 3:02 pm
Posts: 6
Hi,

Is there a way to specify both a point size (height) and set width (width) for a font?

As a follow up is there a way to force text to fit in a specified rectangle by scaling the font width only?

Thanks,
Ron


Top
 Profile  
Reply with quote  
 Post subject: Re: Font sizes
PostPosted: Tue Jan 27, 2015 3:35 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!

You cannot set the width of a font with PDFsharp or MigraDoc.

When using PDFsharp, you can use ScaleTransform to adjust the width or height of objects. You can use this to get a "condensed" effect for non-condensed fonts.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 214 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