Skip to content

chore(core): update OpenMono to 1.001 - #338

Merged
Tarquinen merged 1 commit into
devfrom
openmono-1001
Nov 28, 2026
Merged

Tarquinen merged 1 commit into
devfrom
openmono-1001

Conversation

@iamdavidhill

@iamdavidhill iamdavidhill commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Updates the bundled OpenMono fonts from 1.000 to 1.001. Both files come from the 1.001 app build (build 2026-11-27), made with scripts/update-openmono.py.

✗ and ⚠ in OpenMono 1.000 and in 1.001, beside a capital X and H

What changed in the font

  • ✗ (U+2717) is redrawn as a cross with two unequal strokes, so it no longer looks like a capital X at code size. This fixes the first note from the Use OpenMono for monospace text #184 review.
  • ⚠ (U+26A0) is enlarged to capital height. This fixes the second note from that review.
  • U+10C0DE is new: the OpenCode logo, in one colour, one cell wide and as tall as a capital. The fonts have no colour tables. Nothing in the app uses the character yet.
  • U+055F (Armenian abbreviation mark) takes its own cell instead of sitting over the previous letter. The refresh script no longer allows it to be zero-width, because the font no longer needs that exception.
  • Every other character has the same outline and width as in 1.000. The cell, the line metrics and the licence text are unchanged, so line heights and wrapping do not change.

Size

File 1.000 1.001
openmono_regular.ttf 1,126,148 bytes 1,126,140 bytes
openmono_bold.ttf 1,109,980 bytes 1,109,976 bytes

Each file has 5,441 glyphs (5,440 before). The total is 12 bytes smaller.

Testing

  • The refresh script passes its checks and writes the same bytes on each run, before and after the script change.
  • A comparison of every mapped character with the 1.000 files (outline and advance width) shows that only U+055F, U+2717 and U+26A0 differ and that only U+10C0DE is new. The hhea table is byte-identical, and OS/2 differs only in one Unicode-range bit.
  • python3 scripts/translations.py all passes.
  • CI's check job (scripts/check.sh: translations, assemble, lint and unit tests) passes. Not built or run locally: the Mac that made this change has no JDK and no Android SDK.
  • The CI debug APK contains the two fonts, byte-identical to the checkout, and the unchanged assets/licenses/OpenMono-OFL.txt.
  • Not seen on a device. The image above is drawn from the two openmono_regular.ttf files with FreeType, not from the app.

Refreshes openmono_regular.ttf and openmono_bold.ttf from the OpenMono 1.001
app build (build 2026-11-27) with scripts/update-openmono.py.

What 1.001 changes in these files:
- U+2717 (the ballot x) is a cross with two unequal strokes, so it no longer
  reads as a capital X at code size.
- U+26A0 (the warning sign) is as tall as a capital.
- U+10C0DE is new: the OpenCode logo, one colour, one cell wide. The fonts
  have no colour tables.
- U+055F (Armenian abbreviation mark) takes its own cell instead of sitting
  over the letter before it.
Every other glyph is the same as 1.000. The licence text is unchanged.

The refresh script no longer lets U+055F be zero-width, because the font no
longer needs the exception.

Sizes: openmono_regular.ttf 1,126,148 -> 1,126,140 bytes, openmono_bold.ttf
1,109,980 -> 1,109,976 bytes.

Verified: the script passes its checks before and after the script change and
writes the same bytes both times; a glyph-by-glyph comparison with the 1.000
files shows only the four characters above differ; `python3
scripts/translations.py all` passes. Not built locally (this Mac has no JDK or
Android SDK); CI runs scripts/check.sh.
@Tarquinen

Copy link
Copy Markdown
Member

Ran e0ed90d on the Android VM emulator (Pixel 8, API 36) next to its base on dev (189c8f4). Both show the same test reply from session-lab, so the only difference is the font.

dev (OpenMono 1.000) This PR (OpenMono 1.001)
Light dev, light This PR, light
Dark dev, dark This PR, dark

✗ now reads as a cross beside X, and ⚠ is as tall as a capital, in code blocks, inline code and bold. U+10C0DE (last code line) draws the logo instead of a fallback box, and U+055F takes its own cell. Lines sit at the same heights and wrap the same in both builds.

@Tarquinen
Tarquinen merged commit a99673e into dev Nov 28, 2026
3 checks passed
@Tarquinen
Tarquinen deleted the openmono-1001 branch November 28, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants