PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Equivalent of Font Weight?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
antix



Joined: 24 Nov 2008
Posts: 4
Location: Brighton and Hove, UK

PostPosted: Mon Nov 24, 2008 2:57 pm    Post subject: Equivalent of Font Weight? Reply with quote

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
View user's profile Send private message Visit poster's website
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Nov 24, 2008 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
antix



Joined: 24 Nov 2008
Posts: 4
Location: Brighton and Hove, UK

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

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
View user's profile Send private message Visit poster's website
antix



Joined: 24 Nov 2008
Posts: 4
Location: Brighton and Hove, UK

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

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com