Repository navigation
feat(app): bundle OpenMono as the default mono font (opencode#64797) - #1346
Merged
Merged
Conversation
Hona
added a commit
that referenced
this pull request
Nov 26, 2026
Hona
marked this pull request as ready for review
November 26, 2026 21:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports official
anomalyco/opencode#64797(b15f4e9301676df78944d2db581bc7e454a62b9f, UP-259): bundles OpenMono (Regular, Bold, Italic, and Nerd Fonts icons) as the default code and terminal mono font in place of IBM Plex Mono and JetBrainsMono Nerd Font Mono, and fixes a pre-existing UTF-8 slicing panic in the Third-party notices parser.Summary
apps/desktop/assets/fonts/,apps/desktop/src/lib.rs,scripts/web.ps1):600 / 1000 UPM,hhea965 / -220 / 65).ttffaces from officialb15f4e9301's.woff2files viafontTools(OpenMono-Regular.ttf,OpenMono-Bold.ttf,OpenMono-Italic.ttfunder familyOpenMono, plusOpenMono-Icons.ttfunder familyOpenMono Iconscovering all 10,876 Nerd Fonts icons), alongsideOpenMono-OFL.txt.IBMPlexMono-{Text,Bold,TextItalic}.ttf,IBMPlexMono-LICENSE.txt,JetBrainsMonoNerdFontMono-{Regular,Bold}.ttf, andJetBrainsMonoNerdFontMono-LICENSE.txt(net ~1.4 MiB smaller binary/bundle).FONTS, macOSFONT_FILES, wasm32FONTS/LATE_FONTS/TERMINAL_FONTS, andscripts/web.ps1copy includes.apps/desktop/src/shell/appearance/mod.rs,plugin_host/services/session.rs,features/settings/src/{types,lib,pages/appearance}.rs,features/terminal-surface/src/{lib,grid/mod}.rs,crates/session-view/examples/read_only.rs):CODE_FONTS[0],TERMINAL_FONTS[3],CODE_DEFAULT,TERMINAL_DEFAULT,FACE_WEIGHTS(100..599Regular 400,600..900Bold 700), and pluginappearance.font("mono")toOpenMono(OpenMono, OpenMono Icons)."IBM Plex Mono"incodeFontand"JetBrainsMono Nerd Font Mono"interminalFontName) to default OpenMono on load.features/terminal-surface/src/grid/mod.rsto OpenMono'shhea(0.965ascent /0.22descent).crates/opencode-i18n/locales/official/*.json,THIRD_PARTY_NOTICES.md,features/settings/src/pages/about/notices.rs):settings.about.typesetfromIBM Plex MonotoOpenMonoacross all 62 official locale files and addedsettings.about.notices.{openMono,nerdFonts}toofficial/en.json.THIRD_PARTY_NOTICES.mdwith verbatim OpenMono (SIL OFL 1.1, plain heading with no link) and Nerd Fonts v3.5.1 notices plus collapsible full icon-set licenses fromb15f4e9301.features/settings/src/pages/about/notices.rs(split_license_dashnow iteratess.char_indices()and handles leading em-dashes for URL-less entries like OpenMono;dedentslices strictly on counted ASCII spaces).Verification
45897512979on head14fec3dcb2: green (guardrails,build-macos,build-windows (x64),build-windows (arm64),build-linux (x64); Linux arm64 skipped).b113398d10), all 4/4 cases passed:--scene settings-appearance): Code Font and Terminal Font placeholders both showOpenMono(before:IBM Plex MonoandJetBrainsMono Nerd Font Mono).--scene settings-about): readsTypeset in Inter and OpenMono(before:Typeset in Inter and IBM Plex Mono).settings-about-notices): opens cleanly with exit 0 (pre-existing panic fixed), listsOpenMono(plain heading,SIL Open Font License 1.1,OpenMono-OFL.txt) andNerd Fonts(v3.5.1+ collapsibleNerd Fonts Icon Set Licenses), withIBM Plex Mono(0 hits) andJetBrains Mono(0 hits) removed.1367px diff) and--scene "Terminal/Pane"(9687px diff, single-cell Nerd Font git branch glyph) render cleanly inOpenMono.scripts/guardrails.ps1): 9/9 passed;bun scripts/web-clock.ts: 0 violations.