Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Trade by Debug #760

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/UglyToad.PdfPig.Fonts/TrueType/Parser/TableParser.cs
Original file line number Diff line number Diff line change
@@ -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);
@@ -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))
Original file line number Diff line number Diff line change
@@ -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();
Loading