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

Equivalent of Font Weight?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=549
Page 1 of 1

Author:  antix [ Mon Nov 24, 2008 2:57 pm ]
Post subject:  Equivalent of Font Weight?

Hello there,

Is there an equivalent of Font Weight in PDF?
I am trying to convert a HTML doc with a specific font weight, this effects the width, so to get it to PDF correctly I need something similar.

Can you help?
Anthony

Author:  Thomas Hoevel [ Mon Nov 24, 2008 4:01 pm ]
Post subject: 

Hello!

The majority of fonts support the styles regular, bold, italic, and bolditalic.

You can test these styles with the XGraphicsLab application (see PDFsharp-VS2008.sln).
Select the registers "Fonts" and "Text" to play with Font properties.

Author:  antix [ Mon Nov 24, 2008 4:22 pm ]
Post subject: 

Hi Thomas,

Thanks for the reply and this library.

The problem I am having is one of granularity, ie Normal is too normal and bold too bold. So if I set the font to normal, its too small, and too big for bold.

Is there anyway to stretch text to fit a particular space?

Anthony

Author:  antix [ Mon Nov 24, 2008 4:50 pm ]
Post subject: 

Hi Again,

I spotted the ScaleTransform function on the XGraphics object.

This might do it.

Anthony

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