mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-11 00:14:05 +09:00
extra args not needed when you've got flipY
This commit is contained in:
@@ -83,7 +83,6 @@ internal typealias Hash = Long
|
|||||||
* Shiftdown only occurs when non-diacritic character before the mark is lowercase, and the mark itself would stack up.
|
* Shiftdown only occurs when non-diacritic character before the mark is lowercase, and the mark itself would stack up.
|
||||||
* Stack-up or down is defined using Tag system.
|
* Stack-up or down is defined using Tag system.
|
||||||
*
|
*
|
||||||
* If shifted glyphs does not appear correctly, try setting `diacriticStackingAlternative` to `true`
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@@ -102,8 +101,7 @@ class TerrarumSansBitmap(
|
|||||||
val textCacheSize: Int = 256,
|
val textCacheSize: Int = 256,
|
||||||
val debug: Boolean = false,
|
val debug: Boolean = false,
|
||||||
val shadowAlpha: Float = 0.5f,
|
val shadowAlpha: Float = 0.5f,
|
||||||
val shadowAlphaPremultiply: Boolean = false,
|
val shadowAlphaPremultiply: Boolean = false
|
||||||
val diacriticStackingAlternative: Boolean = false
|
|
||||||
) : BitmapFont() {
|
) : BitmapFont() {
|
||||||
|
|
||||||
constructor(fontDir: String, noShadow: Boolean, flipY: Boolean, invertShadow: Boolean) : this(fontDir, noShadow, flipY, invertShadow, false, 256, false)
|
constructor(fontDir: String, noShadow: Boolean, flipY: Boolean, invertShadow: Boolean) : this(fontDir, noShadow, flipY, invertShadow, false, 256, false)
|
||||||
@@ -932,9 +930,9 @@ class TerrarumSansBitmap(
|
|||||||
//println("lastNonDiacriticChar: ${lastNonDiacriticChar.toHex()}")
|
//println("lastNonDiacriticChar: ${lastNonDiacriticChar.toHex()}")
|
||||||
//println("cond: ${thisProp.alignXPos == GlyphProps.DIA_OVERLAY}, charIndex: $charIndex")
|
//println("cond: ${thisProp.alignXPos == GlyphProps.DIA_OVERLAY}, charIndex: $charIndex")
|
||||||
if (thisProp.alignXPos == GlyphProps.DIA_OVERLAY)
|
if (thisProp.alignXPos == GlyphProps.DIA_OVERLAY)
|
||||||
posYbuffer[charIndex] -= H_OVERLAY_LOWERCASE_SHIFTDOWN * (!diacriticStackingAlternative).toSign() // if minus-assign doesn't work, try plus-assign
|
posYbuffer[charIndex] -= H_OVERLAY_LOWERCASE_SHIFTDOWN * (!flipY).toSign() // if minus-assign doesn't work, try plus-assign
|
||||||
else
|
else
|
||||||
posYbuffer[charIndex] -= H_STACKUP_LOWERCASE_SHIFTDOWN * (!diacriticStackingAlternative).toSign() // if minus-assign doesn't work, try plus-assign
|
posYbuffer[charIndex] -= H_STACKUP_LOWERCASE_SHIFTDOWN * (!flipY).toSign() // if minus-assign doesn't work, try plus-assign
|
||||||
}
|
}
|
||||||
|
|
||||||
stackUpwardCounter++
|
stackUpwardCounter++
|
||||||
|
|||||||
Reference in New Issue
Block a user