Nordwand-Mono README

README проекта с github.com/tywr/Nordwand-Mono. Одним файлом markdown: README.md.

Nordwand Mono

Nordwand Mono is a compact neo-grotesk monospaced typeface designed for programming. Every glyph is drawn procedurally in Python, so the metrics and stroke weights can be adjusted to produce custom builds.

See the specimen (PDF) for an overview of the character set and weights.

To contribute, please read the contribution guide.

Design

Nordwand Mono combines elements of Adrian Frutiger's Univers with the proportions of JetBrains Mono. The name refers to the north faces (Nordwände) of the Swiss Alps, and to the Swiss typographic tradition the design draws on.

Other references include:

OpenType features

Character variants

Alternative designs are available for several characters. See alternative characters for a visual comparison and the corresponding feature tags.

Stylistic sets

Stylistic sets switch groups of related glyphs at once:

Tag Effect
ss01 Classic l and m, serifed r and f (upright l and f only)
ss02 Arrow ligatures
ss03 Wide-angled <, > and arrow heads

See stylistic sets for details and for instructions on enabling them in common editors and terminals.

Ligatures

The font includes minimal -> and => ligatures. Runs of =, -, _ and # can use joining forms, so their horizontal bars connect across runs of any length. Joining forms are disabled by default and are enabled with the dlig feature.

Installation

Prebuilt font files are attached to each release.

Building from source

Requirements: uv.

make install     # install the Python dependencies
make build-font  # build TTF, WOFF and WOFF2 into ./fonts
make build       # build the fonts, banner, specimen, samples and docs

Nerd Font variant

Nerdwand Mono is the Nerd Font variant of Nordwand Mono, patched with the complete icon set. Icons occupy a single cell, so the font remains strictly monospaced. OTF and TTF files are attached to each release. To build it locally:

make build-font      # build the regular family into ./fonts
make build-nerd-font # patch it into ./fonts/nerd-font

This additionally requires FontForge (brew install fontforge on macOS, apt install fontforge on Debian and Ubuntu), and network access on the first run to download the Nerd Fonts patcher. The patched fonts are written to ./fonts/nerd-font/{otf,ttf}, alongside the font license and the licenses of the bundled icon sets.

Custom builds

Each glyph is a Python class drawn from a drawing context that holds the font metrics (x-height, cap height, stroke weights, etc.). Overriding these values produces a custom build.

  1. Copy config.example.yml to config.yml and edit the values.

  2. Preview individual glyphs:

    uv run python -m nordwand_mono.visualize --config config.yml lowercase_a
    
  3. Build the fonts:

    uv run python -m nordwand_mono.generate_font --config config.yml
    

    The files are written to ./custom-fonts/<FamilyName>, so they do not overwrite the default build.

[!WARNING] The design is tuned for the default metrics. Some glyphs may need adjustments when the metrics are changed.

Example configurations

The configs folder contains alternative configurations, each with a config.yml and a sample.png rendered from it. To add one, create configs/<name>/config.yml and run:

uv run python -m nordwand_mono.scripts.config_sample <name>

This builds the Regular weight (or another weight with --weight) and writes configs/<name>/sample.png.

Weights

The stroke widths in the configuration define the Regular weight; all other weights are derived from them. To select which weights are exported, or to give a weight explicit stroke widths, add a weights section:

weights:
  400:
  425:
    name: Book
    stroke_x: 90   # vertical strokes
    stroke_y: 84   # horizontal strokes
    stroke_alt: 72 # crossbars, e.g. the bar of e
  700:

Only the listed weights are built.

Character set

Character set

The font covers Latin (including the accented letters of most European languages) and Cyrillic.

It also includes the Powerline symbols (U+E0A0–U+E0A3) and segment dividers (U+E0B0–U+E0BF): arrows, rounded ends, corner triangles and diagonals. The dividers span the full line height and slightly overlap the adjacent cell, so status lines render without the Nerd Font variant.

Weights

Weights

Samples

Les Drus

Python

Python sample

C++

C++ sample

Haskell

Haskell sample

Cyrillic

Cyrillic sample

Greek

Greek sample

Powerline

Powerline sample

License

The font files are licensed under the SIL Open Font License 1.1. The source code is licensed under the MIT License.

Nordwand-Mono (tywr/Nordwand-Mono)

Ищем в базе…

Что это такое?Nordwand-Mono — компактный моноширинный шрифт в стиле неогротеска, созданный для программирования. Его полностью генерирует Python-код, который рисует глифы, а не традиционный редактор шрифтов.
Это готовый файл шрифта или набор инструментов, чтобы собрать свой?И то, и другое: в репозитории есть дизайн шрифта, но каждый глиф — это Python-класс, который можно изменить, чтобы пересобрать персонализированную версию шрифта.
Как мне сгенерировать свою версию шрифта?Скопируйте config.example.yml в config.yml и измените метрики, например x-height или cap-height. Посмотреть глифы можно командой 'python -m visualize --config config.yml', а собрать сам шрифт командой 'python -m generatefont --config config.yml'. Результат появится в ./custom-fonts.
Нужен ли мне установленный Python, чтобы собрать или настроить этот шрифт?Да, весь процесс генерации шрифта написан и запускается только через команды Python.
Безопасно ли сильно менять метрики шрифта?Не обязательно: автор предупреждает, что изменение метрик сверх значений по умолчанию не гарантирует хороший результат и может потребовать ручной правки отдельных глифов.
Какие лигатуры поддерживает Nordwand-Mono?Есть минимальные лигатуры-стрелки -> и =>, а также составные формы, которые позволяют повторяющимся символам вроде =, - и # соединять горизонтальные черты на отрезках любой длины. По умолчанию они выключены и включаются через OpenType-функцию dlig.
За что отвечают стилистические наборы ss02 и ss03?ss02 включает лигатуры-стрелки, а ss03 переключает на стрелки с широкими углами. Так можно подстроить общий характер шрифта под себя.
Откуда взялось название «Nordwand»?Оно отсылает к знаменитой швейцарской типографской традиции и передаёт суровую, холодную атмосферу северных склонов Швейцарских Альп («Nordwand»).
Какие другие шрифты вдохновили дизайн?Автор соединил пропорции Univers Адриана Фрутигера с межбуквенным интервалом JetBrains Mono, а также опирался на SF Pro и SF Mono от Apple, Alpes Mono от Sharp Type и Ubuntu Mono от Dalton Maag.
Какие есть похожие проекты?Iosevka, maple-font, Monocraft, Macintosh-Skeletal-Filled, allo, c64-keyboard-font, inter, source-han-sans
Автор
tywr
Размер
196.1 MB
Звёзды
1.8K
Возраст
7 мес
Коммиты · 90 дней