diff --git a/FontTestGDX/src/FontTestGDX.kt b/FontTestGDX/src/FontTestGDX.kt index a846e06..645d53b 100755 --- a/FontTestGDX/src/FontTestGDX.kt +++ b/FontTestGDX/src/FontTestGDX.kt @@ -349,7 +349,7 @@ class FlippingSpriteBatch(size: Int = 1000) : SpriteBatch(size) { lateinit var appConfig: Lwjgl3ApplicationConfiguration const val TEXW = 800 -const val TEXH = 24 * 170 +const val TEXH = 24 * 171 const val WIDTH = TEXW const val HEIGHT = 768 diff --git a/demo.PNG b/demo.PNG index ba012a4..52f612b 100644 Binary files a/demo.PNG and b/demo.PNG differ diff --git a/src/net/torvald/terrarumsansbitmap/MovableType.kt b/src/net/torvald/terrarumsansbitmap/MovableType.kt index c4dcf09..2e3dcea 100644 --- a/src/net/torvald/terrarumsansbitmap/MovableType.kt +++ b/src/net/torvald/terrarumsansbitmap/MovableType.kt @@ -743,13 +743,15 @@ class MovableType( appendToBuffer(c0) } else if (c0.isParenOpen()) { - sendoutBox() - if (glue > 0) sendoutGlue() + sendoutBox() + appendToBuffer(c0) } else if (c0.isCJparenEnd()) { + if (glue > 0) sendoutGlue() + appendToBuffer(c0) sendoutBox() @@ -757,10 +759,10 @@ class MovableType( sendoutGlue() } else if (c0.isParenClose()) { + if (glue > 0) sendoutGlue() + appendToBuffer(c0) sendoutBox() - - if (glue > 0) sendoutGlue() } else if (c0.isCJpunct()) { if (cM.isWhiteSpace()) sendoutGlue()