@Jolyne_AI: Google 开源全新等宽字体:Google Sans Code——为程序员而生,长时间敲代码更舒适,阅读更省眼。 它专为代码语法与符号细节深度调校:小字号依然清晰利落;支持 300–800 可变字重,从轻到粗一滑即定,想要的“代码手感”…
摘要
Google 开源了专为程序员设计的等宽字体 Google Sans Code,针对代码编辑器和终端优化,支持 300–800 可变字重,采用 SIL Open Font License 许可。
查看缓存全文
缓存时间: 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

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
pipto 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.
相似文章
@xiaoying_eth: Google 这波,等于把 GPU 黄牛的桌子掀了 VS Code 现在可以直接连接 Google Colab。 也就是说: → 在你自己的编辑器里,白嫖一张 T4 GPU → 代码和文件在本地,算力用 Google 的 链接: http…
Google发布官方Colab VS Code扩展,允许用户直接连接Colab运行时,在本地VS Code中免费使用T4 GPU等算力,结合了编辑器的强大功能和Colab的云端资源。
@AYi_AInotes: Google今天放的这个东西,可以说是设计语言的Unix时刻了,可能会重新定义未来所有的设计工作。 它不是又一个AI画图工具, 也不是又一个Figma插件, 它叫DESIGN.md, 就是一个纯文本的Markdown文件。 前面用YAML…
Google released DESIGN.md, a plain-text Markdown format using YAML to encode design tokens, aiming to become a universal standard for design systems.
@GoJun315: 今天 Reddit 上有位开发者分享,在网页里播放的视频,可以纯用文本字符渲染。 用到的开源项目是 ASCILINE,一个实时 ASCII 视频渲染引擎。 支持两种渲染模式: - ASCII 模式:用普通字符按亮度和颜色还原画面,能看到字…
ASCILINE 是一个高性能的开源实时 ASCII 视频渲染引擎,可以将视频转换为纯文本字符显示,支持多种渲染模式、低带宽传输和 CSS 特效叠加。
@gkxspace: 现在打开 Codex,我都有点分不清是在写代码,还是在用电脑了。。。 看教程:右边直接开 YouTube 改网页:在预览里圈一下,它自己去找代码 操作Chrome:让它操作所有已登录网站,直接用内置浏览器登录态(一键导入本地所有 cook…
一条推文描述了使用Codex的体验,指出其能直接在编辑器中操作网页、浏览器和办公文件,让用户感觉不是在写代码而是在用电脑。
@DivyanshT91162: 谷歌刚刚发布了一款 AI 工具,让阅读庞大的代码库变得像“非法操作”一样高效。它叫做 CodeWiki。粘贴任何 GitHub…
谷歌发布了 CodeWiki,这是一款 AI 工具,可将 GitHub 代码库转化为交互式文档、架构图和聊天机器人,帮助开发人员快速理解庞大的代码库。