From 8bbbb2f8037b267c304900ad49eb29f964454444 Mon Sep 17 00:00:00 2001 From: BobLd <38405645+BobLd@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:27:53 +0000 Subject: [PATCH] Replace Trace by Debug --- src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs | 4 ++-- src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs b/src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs index 710e46b1b..f063691df 100644 --- a/src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs +++ b/src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs @@ -14,7 +14,7 @@ internal static class TableParser public static T Parse(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; var nLongs = (table.Length + 3) / 4; data.Seek(table.Offset); @@ -25,7 +25,7 @@ public static T Parse(TrueTypeHeaderTable table, TrueTypeDataBytes data, Tabl 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)) diff --git a/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs b/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs index 2f1e06337..622be80a3 100644 --- a/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs +++ b/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs @@ -228,7 +228,7 @@ public bool MoveNext() // Just take the last, should only ever be 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 .Where(x => x is not OperatorToken op || (op.Data != ">" && op.Data != "]")).ToList();