You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FontDescription.LoadDescription throws a NullReferenceException when loading the font from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):
System.NullReferenceException : Object reference not set to an instance of an object.
NameTable.cs(31,0): at SixLabors.Fonts.Tables.General.NameTable.Load(BinaryReader reader)
at SixLabors.Fonts.Tables.General.NameTable.Load(FontReader reader)
at SixLabors.Fonts.Tables.TableLoader.Load[TTable](FontReader reader)
at SixLabors.Fonts.FontReader.GetTable[TTableType]()
at SixLabors.Fonts.FontDescription.LoadDescription(FontReader reader)
at SixLabors.Fonts.FontDescription.LoadDescription(String path)
reader.GetReaderAtTablePosition(TableName) returns null and we don't check this at several places. Wonder if we should change the code here to throw an exception when header is null instead:
FontDescription.LoadDescription throws a NullReferenceException when loading the font from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: