mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-06 14:08:30 +09:00
typewriter keymap minor change
This commit is contained in:
@@ -34,7 +34,6 @@ class FontTestGDX : Game() {
|
|||||||
private lateinit var faketex: Texture
|
private lateinit var faketex: Texture
|
||||||
|
|
||||||
override fun create() {
|
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
|
font = TerrarumSansBitmap("./assets", debug = true, flipY = false, errorOnUnknownChar = false, shadowAlpha = 0.796f) // must test for two flipY cases
|
||||||
|
|
||||||
val inTextFile = Gdx.files.internal("./$demotextName")
|
val inTextFile = Gdx.files.internal("./$demotextName")
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 320 KiB After Width: | Height: | Size: 320 KiB |
@@ -585,9 +585,14 @@ class TerrarumTypewriterBitmap(
|
|||||||
val hashPrime = 1099511628211L
|
val hashPrime = 1099511628211L
|
||||||
var hashAccumulator = hashBasis
|
var hashAccumulator = hashBasis
|
||||||
|
|
||||||
this.forEach {
|
if (this != null) {
|
||||||
hashAccumulator = hashAccumulator xor it.toLong()
|
this.forEach {
|
||||||
hashAccumulator *= hashPrime
|
hashAccumulator = hashAccumulator xor it.toLong()
|
||||||
|
hashAccumulator *= hashPrime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.err.println("CodepointSequence is null?!")
|
||||||
}
|
}
|
||||||
|
|
||||||
return hashAccumulator
|
return hashAccumulator
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user