@Jolyne_AI: Google 开源全新等宽字体:Google Sans Code——为程序员而生,长时间敲代码更舒适,阅读更省眼。 它专为代码语法与符号细节深度调校:小字号依然清晰利落;支持 300–800 可变字重,从轻到粗一滑即定,想要的“代码手感”…

X AI KOLs Timeline 工具

摘要

Google 开源了专为程序员设计的等宽字体 Google Sans Code,针对代码编辑器和终端优化,支持 300–800 可变字重,采用 SIL Open Font License 许可。

Google 开源全新等宽字体:Google Sans Code——为程序员而生,长时间敲代码更舒适,阅读更省眼。 它专为代码语法与符号细节深度调校:小字号依然清晰利落;支持 300–800 可变字重,从轻到粗一滑即定,想要的“代码手感”随你掌控。 GitHub:http://github.com/googlefonts/googlesans-code… 主要亮点: - 针对代码编辑器与终端优化,提升可读性与字符辨识度 - 支持扩展拉丁字符集,覆盖更多语言场景 - 300–800 可变字重,按需精细微调 - 内置 OpenType 特性,支持风格集与本地化字形 - 正体/斜体均为独立可变字体文件,搭配更灵活 采用 SIL Open Font License(OFL)开源许可:可免费商用与分发。下载最新 Release,安装到系统后即可在各类编辑器中直接启用。
查看原文
查看缓存全文

缓存时间: 2026/06/27 03:50

Google 开源全新等宽字体:Google Sans Code——为程序员而生,长时间敲代码更舒适,阅读更省眼。

它专为代码语法与符号细节深度调校:小字号依然清晰利落;支持 300–800 可变字重,从轻到粗一滑即定,想要的“代码手感”随你掌控。

GitHub:http://github.com/googlefonts/googlesans-code…

主要亮点:

  • 针对代码编辑器与终端优化,提升可读性与字符辨识度
  • 支持扩展拉丁字符集,覆盖更多语言场景
  • 300–800 可变字重,按需精细微调
  • 内置 OpenType 特性,支持风格集与本地化字形
  • 正体/斜体均为独立可变字体文件,搭配更灵活

采用 SIL Open Font License(OFL)开源许可:可免费商用与分发。下载最新 Release,安装到系统后即可在各类编辑器中直接启用。


googlefonts/googlesans-code

Source: https://github.com/googlefonts/googlesans-code

Google Sans Code

In Memory of Chris Simpkins

Dedicated to the memory of Chris Simpkins, whose enthusiasm and efforts were foundational to this project.

About

Sample image

Google Sans Code is a fixed-width font family, designed to bring clarity, readability, and a bit of Google’s distinctive brand character to code. Stemming from Google’s brand type design aesthetic and developed for products like Gemini and Android Studio, it ensures each character remains distinct, even at small sizes. Moreover, it’s finely tuned for the unique typographic demands of programming language syntax.

Explore the features, learn where to download the fonts, or dive into the build instructions to compile them yourself below.

Features

  • Enhanced Legibility: Designed for optimal readability in code editors and terminals.
  • Supported Scripts: Extended Latin, with support for multiple languages.
  • Variable Font: Offers a wide weight axis range from 300 to 800.
  • OpenType Features: Stylistic sets, localized forms
  • Variable Font Axes:
    • wght: weight, range 300 - 800; default=400

Installation

To install Google Sans Code, download the latest variable font release files and install the fonts on your operating system. The download zip archive includes separate Roman and Italic variable fonts.

Build Instructions

Install Dependencies

This project is compiled from glyphspackage format source files to TTF format variable font binaries using the fontc font compiler. The fontc compiler project is in active development and we recommend that you use the same release version of the fontc compiler that we are using to compile our repository releases.

You may identify the version of the fontc compiler version that we use at any commit in this repository by reviewing the requirements.txt, and locating the line beginning with “fontc” definition that includes the fontc executable version number after ==.

You can either:

  • Download the appropriate fontc compiler release for your platform/architecture, install it on your system, and use the build instructions below. This is a pure Rust approach.
  • Use the Makefile, which uses Python’s pip to manage & install build dependencies

Build

Clone the repository to your local machine:

git clone https://github.com/googlefonts/googlesans-code.git

and then navigate to the root of the repository directory.

Compile the Roman variable font:

fontc sources/GoogleSansCode.glyphspackage --flatten-components --decompose-transformed-components --output-file fonts/variable/GoogleSansCode[MONO,wght].ttf

Compile the Italic variable font:

fontc sources/GoogleSansCode-Italic.glyphspackage --flatten-components --decompose-transformed-components --output-file fonts/variable/GoogleSansCode-Italic[MONO,wght].ttf

The compiled fonts are available in the sub-directory: fonts/variable.

Continuous Integration and Deployment (CI/CD)

On each push to the main branch, and on all Pull Request branch commit pushes, the fonts are compiled and tested with our quality assurance test suite. The compiled TTFs and QA testing reports can be downloaded from the Actions tab, in the Summary page of the latest run.

When a git tagged version release is created on GitHub, release fonts are uploaded to the respective release.

Contributing

Please open new issue reports on our repository issue tracker.

See the CONTRIBUTING.md file for additional contributing instructions.

Changes

See the CHANGELOG.md for details on recent changes.

License

This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at https://openfontlicense.org

See AUTHORS.txt for a list of copyright authors, including organizations like Google LLC. See CONTRIBUTORS.txt for a list of individual people who have contributed.

Also see TRADEMARKS.md regarding naming issues.

相似文章

@GoJun315: 今天 Reddit 上有位开发者分享,在网页里播放的视频,可以纯用文本字符渲染。 用到的开源项目是 ASCILINE,一个实时 ASCII 视频渲染引擎。 支持两种渲染模式: - ASCII 模式:用普通字符按亮度和颜色还原画面,能看到字…

X AI KOLs Timeline

ASCILINE 是一个高性能的开源实时 ASCII 视频渲染引擎,可以将视频转换为纯文本字符显示,支持多种渲染模式、低带宽传输和 CSS 特效叠加。

@gkxspace: 现在打开 Codex,我都有点分不清是在写代码,还是在用电脑了。。。 看教程:右边直接开 YouTube 改网页:在预览里圈一下,它自己去找代码 操作Chrome:让它操作所有已登录网站,直接用内置浏览器登录态(一键导入本地所有 cook…

X AI KOLs Following

一条推文描述了使用Codex的体验,指出其能直接在编辑器中操作网页、浏览器和办公文件,让用户感觉不是在写代码而是在用电脑。