diff --git a/src/net/torvald/terrarumsansbitmap/MovableType.kt b/src/net/torvald/terrarumsansbitmap/MovableType.kt index bf69425..1ef9d53 100644 --- a/src/net/torvald/terrarumsansbitmap/MovableType.kt +++ b/src/net/torvald/terrarumsansbitmap/MovableType.kt @@ -498,9 +498,9 @@ class MovableType( private val commas = listOf(0x2C, 0x3B, 0x3001, 0xff0c).toSortedSet() private val hangable = (listOf(0x2E, 0x2C, 0x2D, 0x3A, 0x3B, 0x22, 0x27) + (0x2018..0x201f)).toSortedSet() private val hangableFW = listOf(0x3001, 0x3002, 0xff0c, 0xff0e).toSortedSet() - private const val hangWidth = 6 + private const val hangWidth = 6 - 1 // nudge by 1 px to make the right-end look more even private const val hyphenWidth = 6 - private const val hangWidthFW = 16 + private const val hangWidthFW = 16 - 1 // nudge by 1 px to make the right-end look more even private fun CodePoint.toHex() = "U+${this.toString(16).padStart(4, '0').toUpperCase()}"