# CrossGlyph

为小型电子阅读器生成并实时调试字体的工具。

Build fonts for Xteink e-readers running CrossPoint, and tune them with live preview

为小型电子阅读器生成并实时调试字体的工具。

- id: crazycoder-crossglyph
- author: CrazyCoder
- repository: https://github.com/CrazyCoder/crossglyph
- license: MIT
- shape: headless
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/crazycoder-crossglyph/
- html_zh: https://esp32gallery.com/zh/projects/crazycoder-crossglyph/
- json: https://esp32gallery.com/data/catalog/projects/crazycoder-crossglyph.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
Not a board but the tool you run before a board sees the font: CrossGlyph converts TTF and OTF files into the .cpfont bitmap format used by CrossPoint e-readers and compatible forks, then writes them to a folder you copy onto the reader's SD card. Because each point size stores a separate picture of every glyph in four grey levels, type built for print often lands too light, too dark or too tight, so the Tune panel exposes darkness, stroke weight, hinting, line height, letter and word spacing, kerning and ligatures, with a preview drawn by CrossPoint's own renderer. Export builds regular, bold, italic and bold italic at chosen sizes, can carry variable-font weights, add fallback faces for missing scripts, and pre-join Arabic forms. It runs on macOS, Linux or Windows as a local browser app.
```

## 中文

```
它本身不是一块板子，而是字体进阅读器之前要过的工具：CrossGlyph 把 TTF 和 OTF 转成 CrossPoint 电子阅读器及其兼容固件使用的 .cpfont 位图字体，输出到一个文件夹，复制到阅读器的 SD 卡里就能加载。每个字号都要单独存一套字形图，每像素只用四级灰度，所以为印刷或高分屏做的字转过来常常偏淡、偏黑或太挤；Tune 面板因此给出浓度、笔画粗细、hinting、行高、字距、词距、字偶距和连字等旋钮，预览用的就是 CrossPoint 自己的渲染器，改一个参数整页立刻重画。Export 里选字号，一次生成常规、粗体、斜体、粗斜体四个字重，变体字体可按文字与粗体轴取值，缺字时能挂回退字体，还能为阿拉伯文预先生成连接形。它跑在 macOS、Linux 或 Windows 的本地浏览器里。
```
