Fira Code

Monospace coding-mono 设计: Nikita Prokopov #271 在 Google Fonts 上
字重

关于 Fira Code

Fira Code is a monospace typeface by Nikita Prokopov that extends Mozilla's Fira Mono with a carefully curated set of programming ligatures, turning multi-character sequences like arrows, comparisons, and operators into single fluid glyphs. The variable weight axis (wght) lets developers fine-tune stroke thickness without switching font files, and the face covers Cyrillic, Greek, and extended symbol ranges. It is the go-to choice for code editors and terminal emulators where ligature rendering is supported.

字符表

AaBbCcDdEeFfGgHhIiJjKkLlMm
NnOoPpQqRrSsTtUuVvWwXxYyZz
0123456789
!@#$%^&*()_+-=[]{}|;':",.<>?

代码编辑器预览

example.js
const fibonacci = (n) => {
  if (n <= 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
};

// Generate first 10 numbers
const results = Array.from(
  { length: 10 },
  (_, i) => fibonacci(i)
);

console.log(`Result: ${results.join(', ')}`);

编程连字

=> != !== === >= <= -> ->> |> <| :: && || ++ -- ** // /* */ ?? << >> ?. ...

字符区分

您能分辨这些字符吗?好的等宽字体能让相似字符易于区分。

零 vs O 0 O o
一 vs l vs I 1 l I | !
引号 ' ' " " ` ´
花括号 ( ) [ ] { } < >
标点符号 . , : ; .. ...

字重瀑布 (5)

300 Light
400 Regular
500 Medium
600 SemiBold
700 Bold

使用方法

<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;500;600;700;400&display=swap" rel="stylesheet">
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;500;600;700;400&display=swap');
font-family: 'Fira Code', monospace;
brew install --cask font-fira-code

详情

分类
Monospace
样式
coding-mono
字重
5
斜体
韩文
设计师
Nikita Prokopov
许可证
OFL
版本
热度
#271
下载量
468

许可用途

网页使用允许
印刷允许
视频 / 广播允许
包装允许
应用嵌入允许
品牌 / 标志允许
修改允许

OFL — 个人和商业使用均免费

语言支持

cyrillic cyrillic-ext greek greek-ext latin latin-ext symbols2

最适合

code_editors technical_docs web_apps ui_elements presentations

排版概念

  • Ligature

    Two or more letters combined into a single glyph, like 'fi' or 'fl'. Common in serif fonts and coding fonts (e.g., Fira Code).

  • Monospace

    A typeface where every character occupies the same horizontal width. Essential for code editors and tabular data.

  • OpenType

    A font format developed by Microsoft and Adobe supporting advanced typographic features like ligatures, alternates, and variable axes.

相关文章 Fira Code

Frequently Asked Questions

Is the Fira Code font free for commercial use?

Yes — Fira Code is an open-source font, free to use in personal and commercial projects.

What type of typeface is Fira Code?

Fira Code is a Monospace typeface. It is offered as a variable font.

What does Fira Code support?

Fira Code primarily supports text. It includes ligature support.