googlefonts/fontations is a Rust project with 854 stars. Reading and writing font files
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
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
How active is development on googlefonts/fontations?
The most recent commit recorded on googlefonts/fontations was 12 days ago, based on the GitHub push timestamp. The repository has 87 forks — one of the better signals of community interest.
How many stars does googlefonts/fontations have?
googlefonts/fontations has 854 GitHub stars — refresh the page for the live number, or check github.com/googlefonts/fontations. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is googlefonts/fontations open source?
Yes — googlefonts/fontations ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/googlefonts/fontations.
What is googlefonts/fontations?
googlefonts/fontations (googlefonts/fontations) is a Rust project on GitHub. From the project's own README: Reading and writing font files
What language is googlefonts/fontations written in?
googlefonts/fontations is written primarily in Rust. GitHub's language field is based on the largest share of bytes in the default branch.
What license does googlefonts/fontations use?
googlefonts/fontations is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about googlefonts/fontations?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/googlefonts/fontations is the definitive source.
Read full README in the tab above.
Curious whether fontations is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about fontations.