Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jan 30, 2025
1 parent 23c9a43 commit fb83c12
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/SixLabors.Fonts/TextLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,8 +1327,6 @@ internal sealed class TextLine

public int Count => this.data.Count;

public int LeadCodePointIndex { get; private set; } = -1;

public float ScaledLineAdvance { get; private set; }

public float ScaledMaxLineHeight { get; private set; } = -1;
Expand Down Expand Up @@ -1361,11 +1359,6 @@ public void Add(
this.ScaledLineAdvance += scaledAdvance;
}

if (this.LeadCodePointIndex == -1)
{
this.LeadCodePointIndex = codePointIndex;
}

this.ScaledMaxLineHeight = MathF.Max(this.ScaledMaxLineHeight, scaledLineHeight);
this.ScaledMaxAscender = MathF.Max(this.ScaledMaxAscender, scaledAscender);
this.ScaledMaxDescender = MathF.Max(this.ScaledMaxDescender, scaledDescender);
Expand Down Expand Up @@ -1711,7 +1704,6 @@ private static void RecalculateLineMetrics(TextLine textLine)
textLine.ScaledMaxAscender = ascender;
textLine.ScaledMaxDescender = descender;
textLine.ScaledMaxLineHeight = lineHeight;
textLine.LeadCodePointIndex = textLine[0].CodePointIndex;
textLine.advances.Clear();
}

Expand Down

0 comments on commit fb83c12

Please sign in to comment.