From 5cdc3efeef43ab435647503e6af4ba8575d7ab9b Mon Sep 17 00:00:00 2001 From: TC Date: Mon, 22 Jun 2026 22:00:40 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20make=20title/part=20titles=20mat?= =?UTF-8?q?ch=20font=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/ipcHandlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/ipcHandlers.ts b/src/main/ipcHandlers.ts index e219913..459e94c 100644 --- a/src/main/ipcHandlers.ts +++ b/src/main/ipcHandlers.ts @@ -579,7 +579,7 @@ export function registerIpcHandlers(): void { const pageCSS = ` @page { size: ${pageSizeCss}; } body { font-family: ${fontFamily}; font-size: ${opts.fontSize}pt; line-height: 2; color: #000; margin: 0; padding: 0; } - h1 { font-weight: bold; font-size: ${opts.fontSize + 2}pt; text-align: center; text-transform: uppercase; margin: 0; line-height: 2; } + h1 { font-weight: bold; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; } h2, h3 { font-weight: ${headingWeight}; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; margin: 0; line-height: 2; } p { margin: 0; text-indent: 0.5in; text-align: left; } h1 + p, h2 + p, h3 + p, hr + p, .chapter > p:first-child { text-indent: 0; } @@ -591,7 +591,7 @@ export function registerIpcHandlers(): void { ul, ol { margin: 0 0 0 0.5in; } li { margin: 0; } .chapter { padding-top: 2.5in; } - .part-heading { font-family: ${fontFamily}; font-weight: bold; font-size: ${opts.fontSize + 2}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; } + .part-heading { font-family: ${fontFamily}; font-weight: bold; font-size: ${opts.fontSize}pt; text-align: center; text-transform: uppercase; letter-spacing: 0.15em; margin: 0; line-height: 2; } ` // Print each section to its own PDF buffer. Cover page uses its own CSS;