mirror of
https://github.com/tiennm99/monkeyd-crawler.git
synced 2026-08-04 19:30:38 +00:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user