Skip to content

Commit

Permalink
Replace Trace by Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLd committed Jan 16, 2024
1 parent 4e63e2c commit 096ebdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal static class TableParser

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;
var nLongs = (table.Length + 3) / 4;
data.Seek(table.Offset);
Expand All @@ -25,7 +25,7 @@ public static T Parse<T>(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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 096ebdb

Please sign in to comment.