1
Vote

Importing a custom font.

description

Trying to import a new Font,
 
var p = table.Rows[0].Cells[0].InsertParagraph();
var f = new PrivateFontCollection();
f.AddFontFile("fre3of9x.ttf");
p.Font(f.Families[0]);
 
Font throws "NullReferenceException : Object reference not set to an instance of an object." when calling ApplyTextFormattingProperty()

comments

BoucherS wrote May 4 at 7:00 PM

Hi this should be fixed.
Cannot reproduce in latest version.