mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
text/v2: add comments
This commit is contained in:
parent
813e3b28af
commit
60883e1a44
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user