text/v2: add comments

This commit is contained in:
Hajime Hoshi 2024-09-11 00:22:17 +09:00
parent 813e3b28af
commit 60883e1a44

View File

@ -84,7 +84,7 @@ func (s *GoXFace) Metrics() Metrics {
CapHeight: fixed26_6ToFloat64(fm.CapHeight), CapHeight: fixed26_6ToFloat64(fm.CapHeight),
} }
// There is an issue that XHeight is negative for some old fonts (golang/go#69378). // There is an issue that XHeight and CapHeight are negative for some old fonts (golang/go#69378).
if fm.XHeight < 0 { if fm.XHeight < 0 {
m.XHeight *= -1 m.XHeight *= -1
} }