Myna: 为符号较多的编程语言设计的等宽字体。
Myna: monospace typeface designed for symbol-rich programming

原始链接: https://github.com/sayyadirfanali/Myna

Myna 是一种新的等宽字体,旨在通过像对待字母数字字符一样细致地处理符号,来提升代码编辑器的视觉和谐性。这款字体由一位对现有字体中不一致的符号渲染感到沮丧的开发者创建,优先考虑对箭头、货币符号和运算符等常用编程符号的清晰、平衡的字形。 主要特点包括多字符符号的近乎完美的对齐、简约的几何形状以及独特的字符形状以避免混淆(例如 '1'、'l'、'I')。目前它只有一种字重且不包含连字,但其设计旨在通用地应用于终端和编辑器,并且与合成加粗效果配合良好。 Myna 是从 Source Code Pro 的定制版本演变而来的,并从 Fira Mono 和 Plex Mono 等字体中汲取灵感。它在 GitHub 上免费提供,并欢迎社区贡献,包括错误报告、功能请求和扩展的字形集。

## Myna:一种新的等宽字体,专为代码设计 Myna 是一种新设计的等宽字体,专门为像 Perl 和 Haskell 这样符号较多的编程语言量身定制。作者 sayyadirfanali 旨在解决现有字体中符号常常被视为次要字形的问题,注重均匀对齐和视觉流畅性。 讨论引发了争论,一些人称赞该字体的美观和紧凑设计,而另一些人则批评了特定的字形选择——特别是花括号以及小写字母 'l' 和数字 '1' 之间的相似性。 许多用户推荐了 JetBrains Mono 和 Iosevka 等替代字体。 设计师乐于接受反馈,并正在考虑潜在的变体来解决这些问题,例如更传统的花括号样式或改进 'l' 和 '1' 的区分度。该字体使用 FontForge 构建,目前专注于 ASCII 字符,但已存在 Unicode 支持。它在 GitHub 上可用,并鼓励用户提交功能请求和错误报告。
相关文章

原文

Myna Version License

Do you ever feel like your font treats symbols as second-class glyphs? Are you frustrated that -> looks nothing like an arrow, and $, @, % seem ever mismatched?

Want to experience the beauty of ligatures without losing the simplicity of ASCII?

Myna (Gracula religiosa 🐦‍⬛) is a monospace font which aims to bring harmony to your editor by treating symbols as first-class glyphs alongside alphanumeric characters.

Myna was borne out of a need to scratch a persistent typographical itch. While I've tried many otherwise well-crafted monospace fonts, I always found myself wanting to tweak a glyph here or adjust a shape there. After developing Myna and using it almost exclusively in my professional and personal work, I'm sharing it as a small contribution to the wonderful community of monospace typography enthusiasts.

Here are a few of its attractive features that might make it your next favourite monospace font:

  • Symbol-First Design: clear emphasis on ASCII symbols which are ubiquitous in programming languages
  • Near-Perfect Alignment: multi-character symbols like ->, >>=, =~, :: align seamlessly
  • Balanced Weight: symbols have just the right visual weight against your code
  • Minimalist Forms: geometric shapes for quotes and commas
  • Clear Distinction: no more confusing 1 l I | or 0 O o
  • Language-Aware Design: clean sigils for Perl + elegant operators for Haskell + clear symbols for C

NB: Myna is designed to be a simple font. The current release is a single weight without ligatures, though future updates may expand its features if demand arises. It does work out nicely with synthesised bold generated by fontconfig and pango on Linux.

Perl Haskell C

Please click on the image to view it in full in a new tab.

git clone https://github.com/sayyadirfanali/Myna.git
cd Myna
cp Myna.otf ~/.local/share/fonts/
fc-cache -v
git clone https://github.com/sayyadirfanali/Myna.git
cd Myna
cp Myna.otf ~/Library/Fonts/
  1. Download the release
  2. Right-click Myna.otf and select "Install for all users"

SIL Open Font License, Version 1.1

Myna started out as Hera which was a customised version of Source Code Pro but now has come a long way after stealing many beautiful designs from Fira Mono, Inconsolata, Plex Mono, Office Code Pro, Anonymous Pro. Detailed credits could be found in the Hera repository.

Code banner and illustrations were produced using ImageMagick and Ray.so.

Myna is designed to be used universally in every kind of terminal and editor. I've tried to include a reasonable subset of non-ASCII glyphs (mostly geometrical and mathematical characters). However, I'm considering expanding it based on community interest and would welcome contributions in these areas:

  • Bug Reports: spacing and kerning issues, rendering problems, unavailable/incorrect glyphs
  • Feature Requests: suggest new glyphs or features via GitHub Issues

Please feel free to open issues and also contact me at [email protected].

联系我们 contact @ memedata.com