mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
20c216b2b1
Hajime found that one glyph 'ら' was not rendered correctly in a vertical Japanese text in examples/texti18n. This was due to an incorrect calculation of the image sizes. This change fixes this issue by always adding +1 to the sizes no matter what the glyph size is or the position is. It is in theory possible to determine whether this addition is necessary, but this is pretty complicated and might cause other issues. |
||
---|---|---|
.. | ||
glyph.go | ||
gotext.go | ||
gotextfacesource.go | ||
gotextseg.go | ||
layout.go | ||
std.go | ||
stdcache.go | ||
text_test.go | ||
text.go |