A personal fork of CrossInk for the Xteink X4 Pro: reading-habit stats, a home screen with a plant that grows as you read, Indic books, and a charging animation.
![]() Reading Rhythm |
![]() Indic books: Kannada, Tamil, Malayalam, Telugu, Marathi, Sanskrit, Hindi |
![]() Glass House scene |
Website: crossrhythm.dev.
Apart from the interface font and the additions below, everything is stock CrossInk: the same reading fonts, themes, reader features, settings and SD card layout. Your existing stats files are never changed, so you can flash stock CrossInk back at any time.
- Reading stats: two new pages at the end of Reading Stats, Reading Rhythm and Books Finished, and a detail view for every finished book.
- Garden home: a home screen where a plant climbs beside the cover as you read the book, with your reading streak and reader type in the footer. It is also available as a sleep screen.
- Indic books: Kannada, Tamil, Malayalam, Telugu, Marathi, Sanskrit and Hindi (Bengali and Odia experimental) render correctly once the matching font folder is on the SD card, in books and in file names, titles and chapter lists.
- Charging animation: illustrated Bengaluru scenes that build up as the battery charges.
- Page Overlay wallpapers: six reaction-diffusion wallpapers for CrossInk's Page Overlay sleep screen.
- Interface font: Bricolage Grotesque for menus, lists and settings, in place of Inter.
- Boot screen: a CrossRhythm boot screen, and CrossRhythm v<version> in Settings.
Screenshots are from an X4 Pro.
Open Reading Stats the usual way (the frontlight panel on the X4 Pro, or the reader menu on button devices), then swipe left or press Right/Down past This Device (and All Devices, if you sync stats).
![]() This Device (stock CrossInk) |
![]() → Reading Rhythm |
![]() → Books Finished |
Reading Rhythm shows how often and how much you read:
- Recent Activity: one dot per day for the last 13 weeks. Dots grow in five steps (under 30 min, 30 min, 1h, 2h, 4h+), with a legend under the grid and a square around today. The last 7 days are listed with their reading time.
- Weekly Reading Time: one bar per week for the same 13 weeks, with a dashed line at your average.
- Reading Days by Month: how many days you read in each of the last 12 months, with the total and monthly average.
Books Finished lists your totals (books, time spent, average per book) and every finished book by month, with its dates, author and time spent. Swipe or use Up/Down to scroll. Books that have dropped out of Recent Books are still found by scanning the book caches on the card.
Book detail: tap a finished book (or select it and press Confirm) for its Overview (sessions, time, pace, dates, time of day, day of week) and Book Rhythm (reading days across the book, daily or weekly reading time, days read, average per day, longest streak). The same view opens from Reading Stats in a book's long-press menu in the Library or File Browser.
![]() Overview |
![]() Book Rhythm, recorded days |
![]() Book Rhythm, estimated days |
Daily minutes are recorded from the moment you install this firmware. For reading you did before that, each book's total time is spread over the days you actually read it, and those estimated days are drawn lighter (outlined dots, pale bars, ~ before the value). Recorded minutes always replace estimates.
Weeks start on Monday; set Settings › System › Device › First Day of Week to start them on Sunday. The pages need the device clock, so devices without one keep the single-screen Reading Stats.
Set Settings › Display › UI Theme to Garden. It is the Dashboard home with a larger cover and, beside it, a climbing plant that grows as you read the book.
![]() 18% read |
![]() Finished |
- The plant roots at the foot of the cover and climbs behind a perforated asanoha (hemp leaf) screen, filling the whole column at 100% and flowering and fruiting near the end. Each book grows its own way, and the same book always grows the same way. Your progress sits at the top of the column.
- The stats table under the title shows Started and Est. Finish Date (Finished Date once you finish) on the left, pages per minute and daily average in the middle, and Reading Time and Time Left on the right.
- The footer shows your reading streak as a big number and your reader type with its icon. The reader type is the time of day you read most: Dawn, Day, Dusk or Twilight Reader. The Dashboard theme gets the same footer.
- Night Mode draws the plant and the icon in white on black.
Garden sleep screen: set Settings › Display › Sleep Screen to Garden to show the same screen while the device sleeps, with your latest book's cover, the plant grown to your progress, the title and chapter, the stats table and the footer. It is white on black, or black on white with the inverted cover filter.
Home Bottom Bar: Settings › Display › Status Bar › Home Bottom Bar puts battery, clock or date along the bottom of the home screen, in Left, Center and Right slots like the status bar (the date in the screenshots above). It is off until you pick items.
Copy a script's font folder to the SD card and its text renders correctly in any book, without changing your reading font: a mostly-English book keeps its usual font and only the Indic parts switch. Install several scripts and each is routed to its own font. The same fonts also draw Indic file names, book titles, chapter names and the reader footer.
![]() Kannada |
![]() Tamil |
![]() Malayalam |
![]() Telugu |
![]() Hindi (Devanagari) |
![]() File browser |
![]() Home |
![]() Chapter list |
| Script | Font folder | Folder size | Status |
|---|---|---|---|
| Kannada | NotoSansKannada |
6.2 MB | Tested on device |
| Tamil | NotoSansTamil |
5.9 MB | Tested on device |
| Malayalam | NotoSansMalayalam |
5.9 MB | Tested on device |
| Telugu | NotoSansTelugu |
7.9 MB | Tested on device |
| Marathi, Sanskrit, Hindi (Devanagari) | NotoSansDevanagari |
6.1 MB | Tested on device with Hindi |
| Bengali | NotoSansBengali |
– | Experimental: many conjuncts are approximate |
| Odia | NotoSansOriya |
– | Experimental |
To install a script:
- Download its font folder from this fork's releases, or build it (see Building). The folder holds eight
.cpfontfiles and ashaping.cpshapefile. - Copy the whole folder, keeping its name, to
/.fonts/(or/fonts/) on the SD card. On the X4 Pro, Home › File Transfer › USB Drive opens the card on your computer; the web portal's Fonts page works too. - If you opened a book in that script before installing the font, choose Delete Book Cache in its reader menu so the pages are laid out again.
When updating, replace the whole folder rather than single files: the .cpfont files and shaping.cpshape are made together.
How it works. These scripts join consonants into conjuncts and attach vowel signs to letters, using shapes that have no character codes of their own, so drawing one character at a time shows broken text. This fork works the shapes out ahead of time with HarfBuzz and stores them in shaping.cpshape inside each font folder. The reader applies them while drawing, so the book's text is untouched and dictionary lookup, clippings and search still work. The firmware itself only carries the small shaping engine (about 6 KB); everything script-specific lives on the SD card.
Limits:
- Needs an ESP32-S3 reader (X4 Pro, Sticky), where the shaping files are held in PSRAM. On the ESP32-C3 (X3, X4) the text still shows, but conjuncts come apart.
- Use the
.cpfontfolders, not.ttffiles: the shaped forms only exist in the.cpfontfiles. - None of these fonts has an italic, so italic text shows upright.
- Word-final halant (ಕುಮಾರ್) and Hindi nukta letters (ज़, फ़, ड़) are handled; the rare final forms ड़्, ढ़् and ऴ् still differ slightly from a full shaper.
X4 Pro only. A scene is a 1-bit illustration of a Bengaluru landmark that builds up in 21 steps, one per 5%.
![]() Glass House (built in) |
![]() Lalbagh |
![]() KR Market |
![]() State Library |
- Glass House: Lalbagh's Glass House, from bare lawns to a planted garden with a Gandaberunda topiary and a crowd of visitors.
- Lalbagh: Namma Metro's Green line built past Lalbagh's West Gate.
- KR Market: City Market rising from a cleared site to its full roof.
- State Library: Cubbon Park's reading hall, from boxes in an empty hall to full shelves and a crowd of readers.
Pick one in Settings › Display › Charging Animation. While the device sleeps on the charger, it shows the scene for the battery level, with four stops under the name filling at 25/50/75/100%. It updates within about five minutes of each 5% step; unplugging brings back your usual sleep screen.
Glass House is built into the firmware and is the default. To add the others, download their .rhythmscene files from the releases and copy them to /.scenes/ (or /scenes/) on the SD card; they then appear in the Charging Animation list. Scenes live on the card, so they don't use firmware space, and a missing or damaged scene falls back to Glass House. The file format is in docs/file-formats.md.
Six "Read Responsibly" wallpapers for CrossInk's Page Overlay sleep screen, which keeps the page you were reading on screen and draws the wallpaper over it, letting the page show through the white areas. The patterns are grown with a reaction-diffusion simulation, the process behind spots and stripes in nature: over the page they read like redaction marks, but organic rather than ruled bars, and they are pure black and white so they stay crisp on e-ink.
![]() Dots |
![]() Dots, dense |
![]() Maze |
![]() Maze, outline |
![]() Cells |
![]() Cells, bold |
- Copy the
.bmpfiles you want fromassets/page-overlays/to/.sleep/(or/sleep/) on the SD card. With several there, one is picked at random each time the device sleeps. - Set Settings › Display › Sleep Screen › Wallpaper to Page Overlay.
They are 480×800 images for the X4 and X4 Pro, and need no firmware change: Page Overlay is stock CrossInk.
Menus, lists, settings and the Dashboard and Garden homes use Bricolage Grotesque instead of Inter. Cyrillic, Greek and Hebrew come from GSans (Google Sans) behind it, and Arabic from Noto Sans Arabic, so every interface language still shows all its letters. Your reading font is unchanged.
The default boot screen shows the CrossRhythm logo, stored in about 5 KB of flash (src/images/boot-rhythm.bmp, converted by scripts/bmp_to_boot_header.py). CrossInk's custom boot screen setting still takes priority when it's on. Settings › System shows the firmware as CrossRhythm v<version>.
- Download
firmware-x4-pro-v<version>.binfrom the releases, or build it (see Building). - Back up
/.crosspoint/on your SD card. - Copy the
.binto the card and install it from Settings › System › SD Card Firmware Update.
Later updates come through Settings › Check for Updates, which checks this fork's releases rather than CrossInk's.
Everything else is optional and goes on the SD card:
| To get | Copy | To |
|---|---|---|
| Indic books | a script's font folder, e.g. NotoSansKannada/ |
/.fonts/ |
| More scenes | .rhythmscene files |
/.scenes/ |
| Page Overlay wallpapers | .bmp files from assets/page-overlays/ |
/.sleep/ |
Supported devices: built and tested on the Xteink X4 Pro. The other CrossInk targets (X3, X4, X4 Classic, Sticky) build from the same code but are untested; the scenes are X4 Pro only, and Indic shaping needs an ESP32-S3.
- Existing stats are never changed.
global_stats.binstays at version 3 and each book'sstats_v5.binis only read, so stock CrossInk can still read the same card. - New data goes in new files, each versioned and saved safely (temporary file, check,
.bak, rename):daily_minutes.bin: minutes read per day for the last 91 days.finished_books.bin: the Books Finished list (up to 32 books), in XPoint's file format.<book cache>/rhythm_days.bin: one book's minutes per day, for its Book Rhythm page.
- Reading days are real: they come from CrossInk's existing reading history. Only the minutes for days before you installed this firmware are estimated, once.
File layouts are in docs/file-formats.md.
Going back to stock CrossInk: flash a CrossInk release. It ignores the new files and reads your existing stats as before. To tidy up, delete daily_minutes.bin and finished_books.bin (and any .bak copies) from /.crosspoint/.
You need Python 3.10 or newer and PlatformIO 6.1.x (6.2.0 currently breaks the ESP32-C3 link with No module named 'SCons.Tool.FortranCommon').
git submodule update --init --recursivepio run -e x4-proThe firmware is written to .pio/build/x4-pro/firmware.bin.
Host tests:
cmake -S test -B build-tests && cmake --build build-tests -j 8 && ctest --test-dir build-tests --output-on-failureIndic font packs (needs the Python packages in lib/EpdFont/scripts/requirements.txt, including uharfbuzz):
python3 lib/EpdFont/scripts/build-sd-fonts.py --only NotoSansKannada,NotoSansTelugu,NotoSansTamil,NotoSansDevanagari,NotoSansMalayalam --output-dir .pio/sd-fontsEach family lands in .pio/sd-fonts/<Family>/ with its shaping.cpshape, plus a <Family>.zip for a release. The shaping files are committed under lib/EpdFont/scripts/shaping/; regenerate one with lib/EpdFont/scripts/gen_indic_shaping.py --script <name> <font.ttf> --golden only when changing that script's font. The generator refuses to write tables that don't match HarfBuzz, and test/indic_shaping/ checks the firmware against them.
Simulator: pio run -e x4-pro-simulator -t run_simulator, with an SD card copied into ./fs_/.
For general CrossInk development docs, see Getting Started.
- CrossInk by uxjulia, the firmware this fork is built on. For CrossInk's own features (fonts, themes, Focus Reading, button remapping, stats sync and more), see its README and crossink.dev. Please support CrossInk directly via its Ko-fi.
- XPoint (MIT License, Copyright (c) 2025 CrossPoint Reader organization), where the Reading Rhythm and Books Finished screens and the finished-books file format come from:
ReadingRhythmActivity,FinishedBooksActivity,FinishedBooksIndex, andrenderReadingRhythmPage/renderFinishedBooksPagefromBookStatsView.cpp. - CrossPoint Reader, the upstream firmware for both.
- Bricolage Grotesque and GSans, instanced from Google Sans (both SIL Open Font License 1.1), the interface fonts.
- The Noto Sans Indic families (SIL Open Font License 1.1) and HarfBuzz, used at build time to work out the shaping tables.
- The Lalbagh and KR Market scenes are drawn from map data © OpenStreetMap contributors, available under the Open Database License (ODbL).
This is a personal fork. Issues with CrossInk itself belong in the CrossInk repo; issues with this fork's features belong here.


























