Ubuntu Sans Mono

Monospace 设计: Dalton Maag #1551 在 Google Fonts 上
字重

关于 Ubuntu Sans Mono

Ubuntu Sans Mono, crafted by Dalton Maag, brings the humanist design DNA of the Ubuntu typeface family to a monospaced coding context, with carefully adjusted metrics to ensure every character sits in an equal-width cell without sacrificing readability. The variable weight axis and Cyrillic, Greek, and extended Latin coverage make it a well-rounded choice for developers working in multilingual codebases. Its slightly warmer personality compared to purely geometric monospace fonts makes long coding sessions less visually fatiguing.

字符表

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 | !
引号 ' ' " " ` ´
花括号 ( ) [ ] { } < >
标点符号 . , : ; .. ...

字重瀑布 (4)

400 Regular
500 Medium
600 SemiBold
700 Bold

使用方法

<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Sans+Mono:wght@500;600;700;400&display=swap" rel="stylesheet">
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans+Mono:wght@500;600;700;400&display=swap');
font-family: 'Ubuntu Sans Mono', monospace;
brew install --cask font-ubuntu-sans-mono

详情

分类
Monospace
字重
4
斜体
韩文
设计师
Dalton Maag
许可证
OFL
版本
热度
#1551
下载量
185

许可用途

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

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

语言支持

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

最适合

code_editors technical_docs web_apps branding ui_elements