Skip to main content

A python API for evaluating coverage of glyph sets in font projects.

Project description

Glyphsets

This python module provides an API with data about glyph sets for many different scripts and languages. This was crafted to specify the sets of characters that fonts in the Google Fonts collection are expected to provide glyphs for.

GF glyph sets

If you are a font developer or typeface designer, see the GF Glyphsets subdirectory which provides glyphset definition "standards" that are typically useful sets to draw. The GF_Glyphsets are thought as modules you can accumulate. Therefore the Vietname set only contains additional glyphs to Latin Core to be able to support Vietnamese language.

  • Fonts commissioned by Google Fonts must support Latin level 1 to 4: i.e Latin Core, Vietnamese and Plus sets.
  • Fonts submitted to Google Fonts must support at least GF Latin Core, and designers are strongly encouraged to consider adding the GF Latin Plus set.

API Subsets

On the other hand, the nam files on the Lib/glyphsets/encodings directory are probably more useful for expert web developers. Those files explain how the Unicode Range subsets are defined, typically per script (writing system), in the Google Fonts css API.

Glyphsets tool

You can create your own glyphset filter using the glyphsets tool and our database.

You can install the tool with pip:

pip install glyphsets

We recommend installing it in a virtual environment.

  • Main usage:
glyphsets filter-list [Set1, Set2,…] -o list-name.txt --prod-names

This command will create a filter list using production names. Without the --prod-names argument, the result would follow the Glyph's nice name scheme. You can then use these lists into any font editor to create your filter.

  • To create a filter list specifically for Glyphs App, you need to change the file extension with .plist. For example:
glyphsets filter-list GF_Latin_Core GF_Latin_Plus GF_Cyrillic_Core GF_Cyrillic_Plus -o CustomFilter_ProjectName.plist

Add this .plist file next to your Glyphs file and you would be ale to see it under your filters.

  • If you want to check if your font is missing glyphs from GF_Latin_Core, run:
glyphsets missing-in-font font.ttf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glyphsets-0.5.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

glyphsets-0.5.3-py3-none-any.whl (603.8 kB view details)

Uploaded Python 3

File details

Details for the file glyphsets-0.5.3.tar.gz.

File metadata

  • Download URL: glyphsets-0.5.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for glyphsets-0.5.3.tar.gz
Algorithm Hash digest
SHA256 4c01bf99218f092eeb6c22d36cc0827caf15229baf4bcd702317e35d48a66676
MD5 f83b17c11603ce64bac0b430f15b5746
BLAKE2b-256 5ef9ec25ec614233aa32be308d3a0548e22b293e2c5e4d3e697f0967e2ecde5b

See more details on using hashes here.

File details

Details for the file glyphsets-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: glyphsets-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 603.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for glyphsets-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d78065a3e34e15a7008b3c838b4cf7433521e662f7fb2fe3c030993e158a1a59
MD5 c4fdab047a7a0c87db24cbd72c4bf4bf
BLAKE2b-256 1b8eb5cf787f7dd5d3fa759ba233eb9afea62a2bb4cb2af2b6502e7feafc92e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page