我正在使用WPF,并且已经在ResourceDictionary中创建了Fontfamily,如下所示
<FontFamily x:Key="EconomicaRegular">pack://appliction;,,,/Fonts/#Economica</FontFamily>
如何与iTextSharp一起使用
PdfPCell cell = new PdfPCell(new Phrase("Item Name", fontFromResourceDictionary));
注意:我可以在下面的代码中访问FontFamily,如下所示
FontFamily EconomicaRegular = (FontFamily)Application.Current.FindResource("EconomicaRegular");