@@ -602,7 +602,11 @@ public double GetLineHeightInPoints(double fontSize)
602602 }
603603 }
604604
605- // ✅ HAR REDAN
605+ /// <summary>
606+ /// Calculates the total height of the font, in points, for the specified font size.
607+ /// </summary>
608+ /// <param name="fontSize">The font size, in points, for which to calculate the total font height. Must be a positive value.</param>
609+ /// <returns>The total height of the font, in points, corresponding to the specified font size.</returns>
606610 public double GetFontHeightInPoints ( double fontSize )
607611 {
608612 // Total font height (ascent + descent)
@@ -613,7 +617,12 @@ public double GetFontHeightInPoints(double fontSize)
613617 return ( ascent + descent ) * ( fontSize / em ) ;
614618 }
615619
616- // ❌ SAKNAS - LÄGG TILL DENNA!
620+ /// <summary>
621+ /// Calculates the distance from the top of the font's bounding box to the baseline, measured in points, for the
622+ /// specified font size.
623+ /// </summary>
624+ /// <param name="fontSize">The font size, in points, for which to calculate the baseline position. Must be a positive value.</param>
625+ /// <returns>The distance, in points, from the top of the font's bounding box to the baseline for the given font size.</returns>
617626 public double GetBaseLineInPoints ( double fontSize )
618627 {
619628 // Distance from top of box to baseline
@@ -625,7 +634,13 @@ public double GetBaseLineInPoints(double fontSize)
625634 return ascent * ( fontSize / em ) ;
626635 }
627636
628- // BONUS - Kan vara användbart
637+ /// <summary>
638+ /// Calculates the font descent in points for the specified font size.
639+ /// </summary>
640+ /// <remarks>The descent represents the distance from the baseline to the lowest point of the
641+ /// font's glyphs. This value is typically used for layout calculations and text rendering.</remarks>
642+ /// <param name="fontSize">The font size, in points, for which to calculate the descent. Must be a positive value.</param>
643+ /// <returns>The descent of the font, in points, corresponding to the specified font size.</returns>
629644 public double GetDescentInPoints ( double fontSize )
630645 {
631646 var descent = _font . Os2Table . UseTypoMetrics
0 commit comments