mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
font: better interchar handling
This commit is contained in:
BIN
lib/TerrarumSansBitmap.jar
LFS
BIN
lib/TerrarumSansBitmap.jar
LFS
Binary file not shown.
@@ -1568,7 +1568,7 @@ object BTeXParser {
|
|||||||
|
|
||||||
private fun typesetChapterHeading(num: String?, thePar: String, handler: BTeXHandler, indent: Int = 16, width: Int = doc.textWidth) {
|
private fun typesetChapterHeading(num: String?, thePar: String, handler: BTeXHandler, indent: Int = 16, width: Int = doc.textWidth) {
|
||||||
val header = if (num == null) thePar else "$num${spacingBlockToString(9)}$thePar"
|
val header = if (num == null) thePar else "$num${spacingBlockToString(9)}$thePar"
|
||||||
typesetParagraphs("\n$ccDefault$header", handler, width - indent, align = "left").also {
|
typesetParagraphs(getPartTitleFont(), "\n$ccDefault$header", handler, width - indent, align = "left").also {
|
||||||
// add indents and adjust text y pos
|
// add indents and adjust text y pos
|
||||||
it.moveObjectsAround(indent, -doc.lineHeightInPx / 2)
|
it.moveObjectsAround(indent, -doc.lineHeightInPx / 2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user