Reduce vertical gap between guitar chords and lyrics text #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The vertical distance between guitar chords and the lyrics text below them is too large. Chords should sit closely above their associated lyrics, but currently the gap makes the visual connection between chord and text weak.
The gap is controlled by
config.layout.chordLineSpacing(default: 3mm, converted to ~8.5 PDF points inChordLyricRenderer.kt:27). This default value is too generous and should be reduced.Acceptance Criteria
chordLineSpacingis reduced so chords sit closer to their lyrics (e.g. 0.5–1mm)ChordLyricRenderer) and measurement engine (MeasurementEngine) consistentlyRelevant Code
model/.../BookConfig.kt—LayoutConfig.chordLineSpacingdefault valuerenderer-pdf/.../ChordLyricRenderer.kt:27— convertschordLineSpacingmm → pointslayout/.../MeasurementEngine.kt:60-62— useschordLineSpacingin height calculation