typewriter keymap minor change

This commit is contained in:
minjaesong
2021-11-24 13:32:09 +09:00
parent 8647578802
commit 2748eeb367
4 changed files with 8 additions and 4 deletions

View File

@@ -34,7 +34,6 @@ class FontTestGDX : Game() {
private lateinit var faketex: Texture
override fun create() {
font = TerrarumSansBitmap("./assets", flipY = false, errorOnUnknownChar = false, shadowAlpha = 0.796f) // must test for two flipY cases
font = TerrarumSansBitmap("./assets", debug = true, flipY = false, errorOnUnknownChar = false, shadowAlpha = 0.796f) // must test for two flipY cases
val inTextFile = Gdx.files.internal("./$demotextName")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 320 KiB

View File

@@ -585,9 +585,14 @@ class TerrarumTypewriterBitmap(
val hashPrime = 1099511628211L
var hashAccumulator = hashBasis
this.forEach {
hashAccumulator = hashAccumulator xor it.toLong()
hashAccumulator *= hashPrime
if (this != null) {
this.forEach {
hashAccumulator = hashAccumulator xor it.toLong()
hashAccumulator *= hashPrime
}
}
else {
System.err.println("CodepointSequence is null?!")
}
return hashAccumulator