mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-14 17:44:05 +09:00
control chars for movabletype
This commit is contained in:
@@ -749,9 +749,14 @@ class TerrarumSansBitmap(
|
||||
|
||||
private fun buildWidthTableInternal() {
|
||||
for (i in 0 until 16) {
|
||||
glyphProps[i] = GlyphProps(0)
|
||||
glyphProps[MOVABLE_BLOCK_1 + i] = GlyphProps(i + 1)
|
||||
glyphProps[MOVABLE_BLOCK_M1 + i] = GlyphProps(-i - 1)
|
||||
}
|
||||
|
||||
for (i in 0 until 256) {
|
||||
glyphProps[0xF800 + i] = GlyphProps(0)
|
||||
}
|
||||
}
|
||||
|
||||
fun getWidth(text: String) = getWidthNormalised(text.toCodePoints())
|
||||
|
||||
Reference in New Issue
Block a user