I'm trying to import a private font and use it for PdfSharp 1.50 (beta).
There are several references to online sample, but that refers to 1.32 (noting it should be updated with a 1.5 sample).
Code:
PdfSharp.Drawing.XPrivateFontCollection.AddFont("C:\TEMP\fonts\ARIALUNI.TTF"));
I'm doing this before generating my document, but I still receive the following:
Code:
System.ArgumentException: Font 'Arial Unicode MS' cannot be found.\r\n at System.Drawing.FontFamily.CreateFontFamily(String name, FontCollection fontCollection) . . .
I couldn't find any way in 1.50 to link the XPrivateFontCollection to the DocumentRenderer so I assume it will just leverage Global.
Any suggestions on how I achieve this in 1.5?
Thanks.
Matt