private bool SkipTrailingSpace(TextNode node, float lengthSoFar, float boundWidth) { if (node.Type == TextNodeType.Space && node.Next != null && node.Next.Type == TextNodeType.Word && node.ModifiedLength + node.Next.ModifiedLength + lengthSoFar > boundWidth) { return true; } return false; }