mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
text: Bug fix: space was not used correctly
This commit is contained in:
parent
47734f28e3
commit
064b359c78
@ -219,7 +219,12 @@ func getGlyphFromCache(face font.Face, r rune, now int64) *glyph {
|
||||
}
|
||||
|
||||
if ch.empty() {
|
||||
return nil
|
||||
// The glyph doesn't have its size but might have valid 'advance' parameter
|
||||
// when ch is e.g. space (U+0020).
|
||||
return &glyph{
|
||||
char: ch,
|
||||
atime: now,
|
||||
}
|
||||
}
|
||||
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user