OpenCode 推出开源等宽字体 OpenMono

原标题:OpenMono: The open-source mono font
38AI 研判分

Anomaly 为终端编程智能体 OpenCode 打造了开源等宽字体 OpenMono,基于 Iosevka 构建,提供 9 种字重、5 种字宽、55 个连字与 3527 个字符,对所有人完全免费。该字体已用于 OpenCode 的桌面端、移动端、官网与文档,并推荐终端场景搭配 OpenMono Nerd 使用。

报道正文

本文目录12 个章节

cap height 690x-height 520baseline 0descender −220

OpenMono is the open source mono font, 100% free for anyone. It's for everyone who sets type in mono, from the terminal and the editor to apps, the web and graphics.

Anomaly made OpenMono for OpenCode, the open source coding agent for the terminal, desktop, phone and web. It is built on Iosevka.

styles90weights9widths5ligatures55alternates4characters3,527

Weights

Nine weights, Thin to Black. Each one is drawn on its own.

Thin 100

Stand in the box. Hold still.Hold still.

ExtraLight 200

Run every character past me.Run it past me.

Light 300

Thin when I come in.Thin coming in.

Regular 400

Same cell for every letter.One cell each.

Medium 500

I don't blink.I don't blink.

SemiBold 600

Pack the line, then lean on it.Pack the line.

Bold 700

Two signs tied in one.Two tied in one.

ExtraBold 800

Ninety cuts, one face.Ninety cuts.

Black 900

Black on the one.Black on the one.

Widths

Five widths. The cell narrows from 600 to 450 units.

Normal

Wide to tight, straight face.Wide to tight.

SemiCondensed

Wide to tight, straight face.Wide to tight.

Condensed

Wide to tight, straight face.Wide to tight.

ExtraCondensed

Wide to tight, straight face.Wide to tight.

UltraCondensed

Wide to tight, straight face.Wide to tight.

Ligatures

55 code ligatures, on by default.

->-->--->->><-<--<<-<-><-->=>==>=>><==<=><==>>-><-<>=><=<=====!=!==!===<=>=<>||||||><|<|>/<!--<!---<//></>::::::==::-:+<::><**><>+++---___###//??

Alternates

Four optional letters, off by default.

cv01

00

Zero with a tall slashcv02

aa

Single-storey acv03

ff

Tailed fcv04

gg

Double-storey g

Letters

Letters, figures and signs, each on the same cell.

cap height 690x-height 520baseline 0descender −220Capital AU+0041ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?.,:;'"-_()[]{}/@#$%&*+=<>|~^`€£§°±·

Characters

3,527 characters in six scripts, plus symbols.

Latin

Ångström, Łódź, Ærø, SeñorÆrø, Łódź, Señor

Vietnamese

Kiểu chữ đứng thẳngKiểu chữ thẳng

IPA

/ˈoʊpən ˈmɒnoʊ/

Greek

Ένα κελί για κάθε γράμμαΈνα κελί

Cyrillic

Одна клетка на буквуОдна клетка

Armenian

Տառատեսակ

←↑→↓↔↕↖↗↘↙⇐⇒⇔↩↪↺↻≤≥≠≈≡∞√∑∏∫∂∆∇±×÷∈∉∩∪⊂⊃∀∃¬∧∨┌─┐│└┘├┤┬┴┼═║╔╗╚╝╭╮╯╰░▒▓█▀▄▌▐▲▼◀▶●○◆◇■□⌘⌥⇧⌃⏎⌫⎋⇥€£¥¢₹₽₩₿§¶†‡•…°‰􌃞A tree listing of the fonts folder, in amber on black

文本
~/openmono ❯ tree -h --dirsfirst fonts
[ 31M]  fonts
├── [ 14M]  OpenMono
│   ├── [9.8M]  ttf
│   │   ├── [612K]  OpenMono-Regular.ttf
│   │   ├── [618K]  OpenMono-Bold.ttf
│   │   ├── [608K]  OpenMono-Italic.ttf
│   │   └── [622K]  OpenMono-ExtraCondensedBlackItalic.ttf
│   ├── [4.1M]  woff2
│   │   ├── [208K]  OpenMono-Regular.woff2
│   │   └── [211K]  OpenMono-ExtraCondensedBlackItalic.woff2
│   ├── [2.9K]  FONTLOG.md
│   └── [4.4K]  OFL.txt
├── [ 13M]  OpenMonoKinky
│   ├── [9.9M]  ttf
│   └── [4.2M]  woff2
└── [4.0M]  OpenMonoNerd
    └── [3.1M]  ttf

9 directories, 186 files

~/openmono ❯  

A tree listing of the fonts folder, in amber on black

文本
~/openmono ❯ tree -h --dirsfirst fonts
[ 31M]  fonts
├── [ 14M]  OpenMono
│   ├── [9.8M]  ttf
│   │   ├── [612K]  OpenMono-Regular.ttf
│   │   ├── [618K]  OpenMono-Bold.ttf
│   │   ├── [608K]  OpenMono-Italic.ttf
│   │   └── [622K]  OpenMono-ExtraCondensedBlackItalic.ttf
│   ├── [4.1M]  woff2
│   │   ├── [208K]  OpenMono-Regular.woff2
│   │   └── [211K]  OpenMono-ExtraCondensedBlackItalic.woff2
│   ├── [2.9K]  FONTLOG.md
│   └── [4.4K]  OFL.txt
├── [ 13M]  OpenMonoKinky
│   ├── [9.9M]  ttf
│   └── [4.2M]  woff2
└── [4.0M]  OpenMonoNerd
    └── [3.1M]  ttf

9 directories, 186 files

~/openmono ❯  

A tree listing of the fonts folder, in amber on black

文本
~/openmono ❯ tree -h fonts
[ 31M]  fonts
├── [ 14M]  OpenMono
│   ├── [9.8M]  ttf
│   │   ├── [612K]  OpenMono-Bold.ttf
│   │   └── [608K]  OpenMono-Thin.ttf
│   ├── [4.1M]  woff2
│   └── [4.4K]  OFL.txt
├── [ 13M]  OpenMonoKinky
│   └── [9.9M]  ttf
└── [4.0M]  OpenMonoNerd
    └── [3.1M]  ttf

9 directories, 186 files

~/openmono ❯  

A tree listing of the fonts folder, in amber on black

文本
~/openmono ❯ tree -h fonts
[ 31M]  fonts
├── [ 14M]  OpenMono
│   ├── [9.8M]  ttf
│   │   ├── [612K]  OpenMono-Bold.ttf
│   │   └── [608K]  OpenMono-Thin.ttf
│   ├── [4.1M]  woff2
│   └── [4.4K]  OFL.txt
├── [ 13M]  OpenMonoKinky
│   └── [9.9M]  ttf
└── [4.0M]  OpenMonoNerd
    └── [3.1M]  ttf

9 directories, 186 files

~/openmono ❯  

OpenMono Nerd

OpenMono for the terminal. 10,876 icons, one cell each.



OpenMono Kinky

OpenMono with a little kink: curves, tails and loops.

00QQaaffggiillkkqqxxyy

Try it

Weight400RegularWidth100%NormalDownload OpenMono Use it for freeDownload OpenMono Use it for free

Install

    1. Open the ttf folder.
  1. Select all the files, then open them in Font Book.
  2. Click Install. Or copy the files from the Terminal:
    1. Open the ttf folder.
  1. Select all the files.
  2. Right-click the files, then click Install (or Install for all users).
    1. Copy the files to your fonts folder, then refresh the font cache.
    1. Copy the files in woff2 that you need to your site.
  1. Add one @font-face rule for each file, with its weight, width and style.
    1. In VS Code, open settings.json. Ligatures are off in VS Code until you turn them on.
    1. Use OpenMono Nerd. Every character in it is one cell wide, and it has the icons that prompts and status bars draw. In Ghostty:

FAQ

  • Yes. It is free under the SIL Open Font License 1.1, for personal, open source and commercial work alike. Set it as your editor or terminal font, ship it in an app, serve it on a website, or use it in print and graphics. You can bundle it and change it. The one thing you can't do is sell the fonts on their own.

  • Anomaly, the team behind OpenCode, with Punch, its type editor for monospace fonts. OpenMono is a custom build of Iosevka, not a new drawing: its letters are Iosevka's own shapes. What changes is which shapes it uses, how they are spaced, and what ships with them.

  • Shapes. Iosevka offers several forms of most characters. OpenMono fixes 92 of those choices for one consistent look, such as a dotted zero, a serifed i and l, and an f with a flat hook.

  • Proportions. The cell is wider: 600 units in the normal width, where Iosevka's default is 500. The cap height is 690, the x-height is 520, and the italic leans 11.8°. Five widths go from 600 down to 450.

  • Ligatures. OpenMono has its own set of 55 in place of Iosevka's. Each one keeps the cells of the characters you type, the strict === has three lines, and shifts such as << and >> stay plain.

  • Alternates. Four optional letters, cv01 to cv04, in place of Iosevka's many character variants and stylistic sets.

  • Accents and dots. Letters with two accents, as in Vietnamese, are redrawn so both marks fit. Accents are lighter in the heavy weights, and dots are heavier in the light ones, so they stay clear at small sizes.

  • Families. OpenMono Nerd adds 10,876 icons and makes every character one cell wide, for terminals. OpenMono Kinky changes eleven letters.

  • Files. All 90 styles come ready to use, as TTF and WOFF2. To get the same result from Iosevka, you would write the build plan and build it yourself.

If you like Iosevka as it comes, use Iosevka. OpenMono is one opinionated configuration of it, under the same license.

  • The open source mono font: 90 styles in nine weights and five widths, upright and italic, with 55 code ligatures that keep their cells. It is free for anyone. Anomaly made it for OpenCode.
  • OpenMono for terminals: 10,876 icons from 16 Nerd Fonts sets, every character one cell wide, in 4 styles.
  • OpenMono with a little kink: curves, tails and loops. Eleven letters have alternate shapes as their defaults. The 90 styles, the cells and the ligatures are the same, and it installs beside OpenMono.
  • OpenMono in your editor and OpenMono Nerd in your terminal. The Download button gets all three families in one zip.
  • The 55 ligatures are in calt and are on by default. Set "calt" 0 to turn them off, for example font-feature-settings: "calt" 0 in CSS.
  • In an editor or a terminal, put the width in the family name, for example OpenMono Condensed. On the web, set font-stretch: 100% for Normal, 87.5% for SemiCondensed, 75% for Condensed, 62.5% for ExtraCondensed and 50% for UltraCondensed.
  • No. Each of the 90 styles is its own file, drawn on its own, not blended from a few masters. On the web, load only the files you use, with one @font-face rule for each.
  • OpenCode sets its desktop and mobile apps, its website, its docs and its Console in OpenMono, and recommends OpenMono Nerd for its terminal app. OpenTUI uses it on its site too.