btex: page numbers and toc/index pagenum fixes

This commit is contained in:
minjaesong
2024-04-28 19:51:31 +09:00
parent 45b1a344f2
commit e1b577b781
7 changed files with 473 additions and 92 deletions

View File

@@ -39,7 +39,7 @@ object TinyAlphNum : BitmapFont() {
override fun draw(batch: Batch, text: CharSequence, x: Float, y: Float): GlyphLayout? {
val originalColour = batch.color.cpy()
colMain = batch.color.cpy()
colShadow = colMain.cpy().mul(0.5f, 0.5f, 0.5f, 1f)
colShadow = colMain.cpy().mul(1f, 1f, 1f, 0.5f)
val x = x.roundToFloat()
val y = y.roundToFloat()

View File

@@ -24,8 +24,8 @@ import net.torvald.terrarum.inUse
class BTeXTest : ApplicationAdapter() {
// val filePath = "btex.xml"
val filePath = "literature/koKR/yisang_nalgae.xml"
// val filePath = "test.xml"
val filePath = "literature/ruRU/anton_chekhov_palata_no_6.xml"
// val filePath = "literature/koKR/yisang_nalgae.xml"
private lateinit var document: BTeXDocument