From f400a83678a513f0448e6881c61560fc9771aa22 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 30 Jul 2026 00:10:20 +0700 Subject: [PATCH] feat: lower the default body font size to 10pt On the default 90x160mm phone page, 12pt fits about 36 characters per line; 10pt fits about 43 across 26 lines, which reads denser without becoming small on a phone at 100% zoom. -font-size still overrides it. --- README.md | 7 ++++--- export/export.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 728694c..64a10bb 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ The PDF is named after the novel unless you pass `-out`. | `-url` | *required* | Novel landing page URL | | `-out` | novel title | Output PDF path | | `-page` | `phone` | Page size: `phone`, `a5`, `a4` | -| `-font-size` | `12` | Body font size in points | +| `-font-size` | `10` | Body font size in points | | `-line-spacing` | `1.55` | Line height as a multiple of font size | | `-margin` | `6` | Page margin in mm | | `-font` | auto | Path to a `.ttf`; defaults to a system font, else the bundled one | @@ -52,8 +52,9 @@ The PDF is named after the novel unless you pass `-out`. Phone readability is governed by page *shape* more than by font size. A PDF viewer scales a whole page to fit the screen, so a large font on an A4 page still ends up small: the page is about three times wider than a phone screen and gets shrunk to match. The default page is cut -to a 9:16 ratio so it fills the screen at 100% zoom, where 12 pt renders at a comfortable -size with roughly 35–40 characters per line. +to a 9:16 ratio so it fills the screen at 100% zoom, where the default 10 pt renders at a +comfortable size with roughly 43 characters per line and 26 lines per page. Raising it to +12 pt gives about 36 characters per line; use `-font-size` to suit your screen and eyes. Use `-page a5` or `-page a4` for a tablet or for printing. diff --git a/export/export.go b/export/export.go index 994b52b..3a779c3 100644 --- a/export/export.go +++ b/export/export.go @@ -20,7 +20,7 @@ import ( // flags or config can advertise the same values instead of restating them. const ( DefaultPage = "phone" - DefaultFontSize = 12.0 + DefaultFontSize = 10.0 DefaultLineSpacing = 1.55 DefaultMargin = 6.0 DefaultWorkers = 4