Replace Trace by Debug

This commit is contained in:
BobLd 2024-01-16 16:27:53 +00:00
parent 4e63e2c415
commit 096ebdbf70
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
public static T Parse<T>(TrueTypeHeaderTable table, TrueTypeDataBytes data, TableRegister.Builder register) where T : ITrueTypeTable public static T Parse<T>(TrueTypeHeaderTable table, TrueTypeDataBytes data, TableRegister.Builder register) where T : ITrueTypeTable
{ {
//checksum https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6.html // checksum https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6.html
uint sum = 0; uint sum = 0;
var nLongs = (table.Length + 3) / 4; var nLongs = (table.Length + 3) / 4;
data.Seek(table.Offset); data.Seek(table.Offset);
@ -25,7 +25,7 @@
if (sum != table.CheckSum) if (sum != table.CheckSum)
{ {
Trace.TraceWarning("Table with invalid checksum found in TrueType font file."); Debug.WriteLine("Table with invalid checksum found in TrueType font file.");
} }
if (typeof(T) == typeof(CMapTable)) if (typeof(T) == typeof(CMapTable))

View File

@ -228,7 +228,7 @@
// Just take the last, should only ever be 1 // Just take the last, should only ever be 1
if (readTokens.Count > 1) if (readTokens.Count > 1)
{ {
Trace.WriteLine("Found more than 1 token in an object."); Debug.WriteLine("Found more than 1 token in an object.");
var trimmedDuplicatedEndTokens = readTokens var trimmedDuplicatedEndTokens = readTokens
.Where(x => x is not OperatorToken op || (op.Data != ">" && op.Data != "]")).ToList(); .Where(x => x is not OperatorToken op || (op.Data != ">" && op.Data != "]")).ToList();