PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 11, 2024 7:34 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Nov 24, 2008 2:57 pm 
Offline

Joined: Mon Nov 24, 2008 12:42 pm
Posts: 4
Location: Brighton and Hove, UK
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 24, 2008 4:01 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 24, 2008 4:22 pm 
Offline

Joined: Mon Nov 24, 2008 12:42 pm
Posts: 4
Location: Brighton and Hove, UK
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 24, 2008 4:50 pm 
Offline

Joined: Mon Nov 24, 2008 12:42 pm
Posts: 4
Location: Brighton and Hove, UK
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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 88 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group