aboutsummaryrefslogtreecommitdiff
path: root/modules/font-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-29 22:07:45 -0400
committerCraig Jennings <c@cjennings.net>2026-06-29 22:07:45 -0400
commitd94b0dc1603acae7abef0a00bc096ef45d79636b (patch)
treebf5a63d38985e02ab27b76e723e0098e1d9d1290 /modules/font-config.el
parent549fcca10fbbdfa52b6061bac6b33683ccfb53fe (diff)
downloaddotemacs-d94b0dc1603acae7abef0a00bc096ef45d79636b.tar.gz
dotemacs-d94b0dc1603acae7abef0a00bc096ef45d79636b.zip
feat(nov): reading-view theme layer with palettes and font sizing
EPUB reading prefs were scattered: a hardcoded Merriweather/180 font-remap in calibredb-epub-config's nov hook, no color control (the old sepia foreground had been stripped), and a frame-global EBook fontaine preset as the only way to size up. That preset resized the font in every buffer in the frame, not just the book. I pulled the reading view into its own layer, modules/nov-reading.el, on top of stock nov (no fork). It owns three things, all buffer-local: a reading palette (sepia/dark/light, each a face the dupre theme owns, sepia the default), the serif typography (family plus a defcustom base height replacing the hardcoded 180), and page font sizing (+/- bump the size live, = resets to the base). Width moves to { }. calibredb-epub-config keeps the library and width/centering layout. Its nov hook now calls into the layer. The three palette faces register as a nov-reading app in theme-studio (face_data.py), so they're tunable there like any other app. I dropped the EBook fontaine preset, since reading size is buffer-local now.
Diffstat (limited to 'modules/font-config.el')
-rw-r--r--modules/font-config.el5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/font-config.el b/modules/font-config.el
index 095b4c8c1..3aa3d80f6 100644
--- a/modules/font-config.el
+++ b/modules/font-config.el
@@ -83,11 +83,6 @@
(FiraCode-Literata
:default-family "Fira Code Nerd Font"
:variable-pitch-family "Literata")
- (EBook
- :default-family "Lexend"
- :default-weight regular
- :default-height 200
- :variable-pitch-family "Lexend")
(24-point-font
:default-height 240)
(20-point-font