All Projects → googlefonts → Gftools

googlefonts / Gftools

Licence: apache-2.0
Misc tools for working with the Google Fonts library

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Gftools

Yrsa Rasa
Yrsa & Rasa: fonts for Latin and Gujarati
Stars: ✭ 200 (+51.52%)
Mutual labels:  fonts, google-fonts
eczar
Eczar: fonts for Devanagari and Latin
Stars: ✭ 52 (-60.61%)
Mutual labels:  fonts, google-fonts
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (+183.33%)
Mutual labels:  fonts, google-fonts
Inkwell
An inkwell to use custom fonts on the fly.
Stars: ✭ 146 (+10.61%)
Mutual labels:  fonts, google-fonts
Google Fonts Module
Google Fonts module for NuxtJS
Stars: ✭ 98 (-25.76%)
Mutual labels:  fonts, google-fonts
seed-fonts
WordPress plugin that helps you use web fonts (@font-face) easier. You can use 5 ready-generated Thai-English web fonts, or use your own collection.
Stars: ✭ 20 (-84.85%)
Mutual labels:  fonts, google-fonts
web-fonts-repository
A simple webfont hosting. Google Fonts alternative for your own fonts.
Stars: ✭ 99 (-25%)
Mutual labels:  fonts, google-fonts
typefaces
Collection of Google fonts as typeface data for usage with three.js, react-three-fiber, and other tools.
Stars: ✭ 53 (-59.85%)
Mutual labels:  fonts, google-fonts
fontless
🚀🔒 Host your own Google Fonts.
Stars: ✭ 63 (-52.27%)
Mutual labels:  fonts, google-fonts
font-picker-react
✏️ Font selector component for Google Fonts
Stars: ✭ 126 (-4.55%)
Mutual labels:  fonts, google-fonts
Fontsource
Self-host Open Source fonts in neatly bundled NPM packages.
Stars: ✭ 836 (+533.33%)
Mutual labels:  fonts, google-fonts
Awesome Fonts
Curated list of fonts and everything
Stars: ✭ 798 (+504.55%)
Mutual labels:  fonts, google-fonts
Work Sans
A grotesque sans.
Stars: ✭ 1,319 (+899.24%)
Mutual labels:  fonts, google-fonts
Swifticonfont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)
Stars: ✭ 1,094 (+728.79%)
Mutual labels:  fonts
Gatsby Plugin Google Fonts
Bring Google Fonts to Gatsby https://www.gatsbyjs.org/
Stars: ✭ 84 (-36.36%)
Mutual labels:  fonts
Allsorts Tools
Example tools for the Allsorts font parser, shaping engine, and subsetter
Stars: ✭ 55 (-58.33%)
Mutual labels:  fonts
Open Relay
Free and open source fonts from Kreative Software
Stars: ✭ 48 (-63.64%)
Mutual labels:  fonts
Free Fonts
Free fonts available under the Apache license
Stars: ✭ 110 (-16.67%)
Mutual labels:  fonts
Gfonts
🔤 Offline Google Fonts for rmarkdown and shiny
Stars: ✭ 85 (-35.61%)
Mutual labels:  fonts
Art
🎨 ASCII art library for Python
Stars: ✭ 1,026 (+677.27%)
Mutual labels:  fonts

Google Fonts Tools

This project contains tools used for working with the Google Fonts collection, plus Google Fonts Glyph Set Documentation in the /encodings subdirectory. While these tools are primarily intended for contributors to the Google Fonts project, anyone who works with fonts could find them useful.

The tools and files under this directory are available under the Apache License v2.0, for details see LICENSE

Google Fonts Official Glyph Sets (Encodings)

https://github.com/googlefonts/gftools/tree/main/Lib/gftools/encodings

Usage Examples

Compare fonts:

gftools compare-font font1.ttf font2.ttf

Add a METADATA.pb to a family directory

gftools add-font ../ofl/newfamily

Sanity check a family directory:

gftools sanity-check --repair_script=/tmp/fix.py ../ofl/josefinsans
gftools sanity-check --repair_script=/tmp/fix.py --fix_type=fsSelection ../ufl

Check a font family against the same family hosted on Google Fonts:

gftools qa [fonts.ttf] -gfb -a -o qa

Check a variable font family against the same family as static fonts:

gftools qa -f [vf_fonts] -fb [static_fonts] --diffenator --diffbrowsers -o ~/path/out

Add a DSIG table to a font

gftools fix-dsig font1.ttf

Fix a non hinted font

gftools fix-nonhinting font_in.ttf font_out.ttf

Package and PR a family update to google/fonts. Much more detailed documentation.

gftools packager "Family Sans" path/to/local/google/fonts -py

Installation

Please install these tools using pip:

pip install gftools

If you need to use gftools qa, you will need to install Harfbuzz, Cairo, FreeType and pkg-config. These can be installed on OS X using homebrew:

brew install cairo freetype harfbuzz pkg-config

Once You have installed these system packages, install gftools using the following command:

pip install 'gftools[qa]'

Requirements and Dependencies

These tools depend on the submodule GlyphsInfo. Make sure the submodule is up to date by running:

git submodule update --init --recursive

gftool packager needs the command line git program in a version >= Git 2.5 (Q2 2015) in order to perform a shallow clone (--depth 1) of the font upstream repository and branch. This is not supported by pygit2/libgit2 yet.

Google Fonts API Key

In order to use the scripts gftools qa and gftools family-html-snippet, you will need to generate a Google Fonts api key, https://developers.google.com/fonts/. You will then need to create a new text file located on your system at ~/.gf-api-key (where ~ is your home directory), which contains the following:

[Credentials]
key = your-newly-generated-googlefonts-api-key

Upstream project repos

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].