DTXMania shutdowns unexpectedly when go to CONFIGURATION
DTXMania shutdowns unexpectedly when go to CONFIGURATION.
PrivateFont() causes IndexOutOfRangeException().
Cannot repro in Windows10, but repro (at least) Win8.1 x64.
It seems that Win8.1 causes IndexOutOfRangeException here;
//var fontpath = "/foo/bar/fontfile.TTF"; // It's OK
var fontpath = "/foo/bar/"; // no font filename
var pfc = new System.Drawing.Text.PrivateFontCollection();
pfc.AddFontFile(fontpath); // success, but _pfc.Families.Length become 0
var fontfamily = pfc.Families; // IndexOutOfException
Fixed in the Rev. 2daebb8af3f00b5dd9b92209f63f8499d91bd27.
Fix has been included in Release115.