View previous topic :: View next topic |
Author |
Message |
antix
Joined: 24 Nov 2008 Posts: 4 Location: Brighton and Hove, UK
|
Posted: 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 |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: 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. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
antix
Joined: 24 Nov 2008 Posts: 4 Location: Brighton and Hove, UK
|
Posted: 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 |
|
Back to top |
|
|
antix
Joined: 24 Nov 2008 Posts: 4 Location: Brighton and Hove, UK
|
Posted: 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 _________________ Anthony Johnston
Developer
Brighton and Hove, UK
http://www.antix.co.uk |
|
Back to top |
|
|
|