mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-12 00:44:05 +09:00
First working version of the Keming Machine
This commit is contained in:
@@ -10,7 +10,12 @@ data class GlyphProps(
|
||||
val alignXPos: Int,
|
||||
val rtl: Boolean = false,
|
||||
val stackWhere: Int = 0,
|
||||
var extInfo: IntArray? = null
|
||||
var extInfo: IntArray? = null,
|
||||
|
||||
val hasKernData: Boolean = false,
|
||||
val isLowheight: Boolean = false,
|
||||
val isKernYtype: Boolean = false,
|
||||
val kerningMask: Int = 255
|
||||
) {
|
||||
companion object {
|
||||
const val ALIGN_LEFT = 0
|
||||
@@ -38,6 +43,21 @@ data class GlyphProps(
|
||||
tags.ushr(8).and(3)
|
||||
)
|
||||
|
||||
constructor(width: Int, tags: Int, isLowheight: Boolean, isKernYtype: Boolean, kerningMask: Int) : this(
|
||||
width,
|
||||
tags.ushr(7).and(1) == 1,
|
||||
tags.ushr(5).and(3),
|
||||
tags.ushr(1).and(15),
|
||||
tags.and(1) == 1,
|
||||
tags.ushr(8).and(3),
|
||||
null,
|
||||
|
||||
true,
|
||||
isLowheight,
|
||||
isKernYtype,
|
||||
kerningMask
|
||||
)
|
||||
|
||||
fun isOverlay() = writeOnTop && alignXPos == 1
|
||||
|
||||
override fun hashCode(): Int {
|
||||
|
||||
Reference in New Issue
Block a user