Google Sans Code

Monospace bởi Google, Universal Thirst #141 trên Google Fonts
Độ đậm

Giới thiệu Google Sans Code

Google Sans Code is a monospace typeface developed by Google and Universal Thirst that shares the geometric DNA of Google Sans while meeting the functional demands of code display. The variable weight axis spans six steps, and remarkably, the typeface extends to Adlam, Canadian Aboriginal Syllabics, Cherokee, and Old Permic scripts alongside Latin and mathematical symbols. This makes it an unusually inclusive coding font for developers working in less-common writing systems.

Bản đồ ký tự

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

Xem trước trình soạn thảo code

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(', ')}`);

Phân biệt ký tự

Bạn có thể phân biệt được chúng không? Font monospace tốt giúp phân biệt các ký tự tương tự dễ dàng.

Số 0 vs chữ O 0 O o
Số 1 vs l vs I 1 l I | !
Dấu ngoặc kép ' ' " " ` ´
Dấu ngoặc nhọn ( ) [ ] { } < >
Dấu câu . , : ; .. ...

Thác độ đậm (6)

300 Light
400 Regular
500 Medium
600 SemiBold
700 Bold
800 ExtraBold

Cách sử dụng

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

Chi tiết

Danh mục
Monospace
Độ đậm
6
Nghiêng
Tiếng Hàn
Nhà thiết kế
Google, Universal Thirst
Giấy phép
OFL
Phiên bản
Độ phổ biến
#141
Lượt tải
194

Sử dụng giấy phép

Sử dụng webĐược phép
In ấnĐược phép
Video / Phát sóngĐược phép
Đóng góiĐược phép
Nhúng vào ứng dụngĐược phép
Thương hiệu / LogoĐược phép
Sửa đổiĐược phép

OFL — Miễn phí cho sử dụng cá nhân và thương mại

Hỗ trợ ngôn ngữ

adlam canadian-aboriginal cherokee latin latin-ext math old-permic symbols symbols2 syriac vietnamese

Phù hợp nhất cho

code_editors technical_docs web_apps branding ui_elements