PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Fall-back fontfamily in style definition
http://forum.pdfsharp.de/viewtopic.php?f=2&t=1335
Page 1 of 1

Author:  Zoidberg [ Fri Sep 17, 2010 10:19 am ]
Post subject:  Fall-back fontfamily in style definition

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!

Author:  Thomas Hoevel [ Mon Sep 20, 2010 7:30 am ]
Post subject:  Re: Fall-back fontfamily in style definition

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.

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