mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-13 17:24:03 +09:00
tags definition update to accomodate more weirdness
This commit is contained in:
@@ -9,13 +9,18 @@ data class GlyphProps(
|
||||
val alignWhere: Int,
|
||||
val alignXPos: Int,
|
||||
val rtl: Boolean = false,
|
||||
val diacriticsStackDown: Boolean = false,
|
||||
val diacriticsBeforeGlyph: Boolean = false
|
||||
val stackWhere: Int = 0
|
||||
) {
|
||||
companion object {
|
||||
const val LEFT = 0
|
||||
const val RIGHT = 1
|
||||
const val CENTRE = 2
|
||||
const val ALIGN_LEFT = 0
|
||||
const val ALIGN_RIGHT = 1
|
||||
const val ALIGN_CENTRE = 2
|
||||
const val ALIGN_BEFORE = 3
|
||||
|
||||
const val STACK_UP = 0
|
||||
const val STACK_DOWN = 1
|
||||
const val STACK_BEFORE_N_AFTER = 2
|
||||
const val STACK_UP_N_DOWN = 3
|
||||
}
|
||||
|
||||
constructor(width: Int, tags: Int) : this(
|
||||
@@ -24,7 +29,6 @@ data class GlyphProps(
|
||||
tags.ushr(5).and(3),
|
||||
tags.ushr(1).and(15),
|
||||
tags.and(1) == 1,
|
||||
tags.ushr(8).and(1) == 1,
|
||||
tags.ushr(5).and(3) == 3
|
||||
tags.ushr(8).and(3)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user