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

Font sizes
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3040
Page 1 of 1

Author:  ronmccafferty [ Tue Jan 27, 2015 3:08 pm ]
Post subject:  Font sizes

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

Author:  Thomas Hoevel [ Tue Jan 27, 2015 3:35 pm ]
Post subject:  Re: Font sizes

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.

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