PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun May 12, 2024 8:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Sep 17, 2010 10:19 am 
Offline

Joined: Fri Sep 03, 2010 6:18 pm
Posts: 5
Location: Munich (Germany)
Hello!

I am searching for a method to define a second font in a style for the case that the first one fails for any reason. I give an example what I mean:
Code:
Dim style As Style = document.Styles("Normal")
style.font.name = "MyFont, Arial"


That always uses Arial, even when I change the order. Is there a way to check if the renderer would throw an exeption with first font? MyFont is a font in an XPrivateFontCollection.

Thank you!


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 20, 2010 7:30 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
Hi!

I understand what you want (and will put it on the wish list), but currently you must specify one font name only; anything else will lead to the default font.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 82 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group