googlefonts/fontations hiện có 854 sao trên GitHub, viết chủ yếu bằng Rust. Reading and writing font files
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This repo contains a number of foundational crates for reading and
manipulating OpenType font files. It is motivated by a desire to have more
robust and performant open tools for a variety of font engineering and
production tasks. For an overview of the motivations, see
googlefonts/oxidize.
Structure
Currently, this repo contains four main library crates: font-types, read-fonts,
write-fonts, and skrifa:
font-types contains common definitions of the core types used in the
OpenType spec. This is a small crate, and is intended as a basic dependency
for any project reading or manipulating font data.
read-fonts contains code for parsing and accessing font files. It is
intended to be a high performance parser, suitable for shaping. In particular
this means that it performs no allocation and no copying.
write-fonts contains code for modifying and writing font data. It contains
owned types representing the various tables and records in the specification,
as well as code for compiling these and writing out font files. It has an
optional dependency on read-fonts, in which case it can also parse font
data, which can then be modified and written back out to disk.
skrifa is a mid level library that provides access to various types of
metadata contained in a font as well as support for loading glyph outlines.
It's primary purpose is to replace FreeType in Google applications.
See https://developer.chrome.com/blog/memory-safety-fonts
It is also used for tasks such as produce assets for https://fonts.google.com/icons
depgraph
Shows the non-dev dependency relationships among the font-related crates in fontations. fontc primarily uses the fontations crates via write-fonts and skrifa.
%% This is a map of non-dev font-related dependencies.
%% See https://mermaid.live/edit for a lightweight editing environment for
%% mermaid diagrams.
graph LR
%% First we define the nodes and give them short descriptions.
%% We group them into subgraphs by repo so that the visual layout
%% maps to the source layout, as this is intended for contributors.
%% https://github.com/googlefonts/fontations
subgraph fontations[fontations repo]
fauntlet[fauntlet\ncompares Skrifa & freetype]
font-types[font-types\ndefinitions of types\nfrom OpenType and a bit more]
incremental-font-transfer[incremental-font-transfer\nclient side IFT patch application]
read-fonts[read-fonts\nparses and reads OpenType fonts]
skera[skera\nsubsetting\ncreate font subsets]
skrifa[skrifa\nhigher level lib\nfor reading OpenType fonts]
write-fonts[write-fonts\ncreates and edits font-files]
end
%% https://github.com/linebender/kurbo
kurbo[kurbo\n2d curves lib]
%% https://github.com/linebender/norad
norad[norad\nhandles Unified Font Object files]
%% https://github.com/PistonDevelopers/freetype-rs
freetype-rs[freetype-rs\nbindings for the FreeType library]
%% Now define the edges.
%% Up to date as of June 2026
%% Can be updated by inspecting all Cargo.toml files.
fauntlet --> skrifa
fauntlet --> freetype-rs
read-fonts --> font-types
skrifa --> read-fonts
write-fonts --> font-types
write-fonts --> read-fonts
write-fonts --> kurbo
norad --> kurbo
skera --> skrifa
skera --> write-fonts
incremental-font-transfer --> font-types
incremental-font-transfer --> read-fonts
incremental-font-transfer --> skrifa
incremental-font-transfer --> write-fonts
incremental-font-transfer --> skera
codegen
Much of the code in the read-fonts and write-fonts crate is generated
automatically. Code generation is performed by the font-codegen crate. For an
overview of what we generate and how it works, see the codegen-tour. For an
overview of how to use the font-codegen crate, see the readme at
font-codegen/README.md.
Fuzzing
Coverage can be viewed at https://oss-fuzz.com/, and search for "fontations"
The fuzz/ crate in this repo contains our fuzzers
fuzzers are implemented using the cargo-fuzz crate
oss-fuzz configuration lives in https://github.com/google/oss-fuzz/tree/master/projects/fontations
build.sh looks for target/x86_64-unknown-linux-gnu/release/fuzz_*
^ is meant to mean we can add additional fuzzers to fontations without having to touch oss-fuzz every time
build.sh also controls the test corpus, look for the git clone lines
To reproduce a fuzzer issue:
Download the file from the testcase, e.g. https://oss-fuzz.com/testcase-detail/6213391169945600
https://github.com/harfbuzz/harfbuzz/blob/main/perf/README.md has instructions on
running harfbuzz benchmarks, including against Fontations.
Contributing
We have included a few git hooks that you may choose to use to ensure that
patches will pass CI; these are in resources/githooks.
If you would like to have these run automatically when you commit or push
changes, you can set this as your git hooksPath:
git config core.hooksPath "./resources/githooks"
note: If you wish to use the hooks on macOS, install the gnu coreutils
(brew install coreutils, via homebrew.)
Releasing
See docs/RELEASE.md for instructions on releasing crates.
What version is running where?
Chrome
Given a Chrome version:
Find the tag at https://chromium.googlesource.com/chromium/src/
Look at the version in third_party/rust/chromium_crates_io/Cargo.lock
OR look through commit history for the latest Fontations roll.
Skia and Chromium builds
An experimental SkTypeface implementation based on Fontations exists. This
build is available in the Skia and Chromium repositories. The goal is to
eventually use Fontations + Skia in Chromium as a memory-safe font
backend. Tracking bugs: Skia,
Chromium. To build the backends in Skia or Chromium
follow the instructions below. This process is currently only tested on Linux.
Skia build
Download Skia https://skia.org/docs/user/download/, including bazelisk
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/googlefonts/fontations là nguồn chính thức.
googlefonts/fontations có bao nhiêu sao?
googlefonts/fontations có 854 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/googlefonts/fontations. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
googlefonts/fontations có phải mã nguồn mở không?
Có — googlefonts/fontations phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/googlefonts/fontations.
googlefonts/fontations còn đang phát triển không?
Commit gần nhất trên googlefonts/fontations là 12 ngày trước (theo timestamp GitHub). Repo có 87 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
googlefonts/fontations dùng license gì?
googlefonts/fontations phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
googlefonts/fontations là gì?
googlefonts/fontations (googlefonts/fontations) là dự án Rust trên GitHub. Theo mô tả gốc: Reading and writing font files
googlefonts/fontations viết bằng ngôn ngữ gì?
googlefonts/fontations chủ yếu viết bằng Rust. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về fontations?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về fontations.