fix(font): include line gap in lineHeight helper

This commit is contained in:
Qwerasd
2025-07-06 22:40:43 -06:00
parent db08bf1655
commit d33161ad66

View File

@ -115,9 +115,10 @@ pub const FaceMetrics = struct {
/// NOTE: IC = Ideograph Character
ic_width: ?f64 = null,
/// Convenience function for getting the line height (ascent - descent).
/// Convenience function for getting the line height
/// (ascent - descent + line_gap).
pub inline fn lineHeight(self: FaceMetrics) f64 {
return self.ascent - self.descent;
return self.ascent - self.descent + self.line_gap;
}
};