Skip to main content

FontForge_plugin of font checker frontend

Project description

Fontforge font checker plugin

Font checker wrapper for Fontforge

This plugin adds frontend of Fontbakery or Fontspector to Fontforge. Although Fontforge itself has built-in validation feature, these external tools provides more useful checks.

Python 3.9 or later required.

Install

pip3 install fontforge_fontchecker

Make sure Fontforge Python module is usable

In interactive mode of Python, run:

import fontforge

If it raises ModuleNotFoundError exception, install Fontforge first. If installed, make sure the build option set that the Python module gets also installed. If already so, Python interpreter does not recognize the module path where the required module.

export PYTHONPATH=/path/to/fontforge/python/module:$PYTHONPATH

Configuration

This plugin has configuration menu. Select File > Configure Plugins... > Font checker and click Configure to open.

Configuration will be stored in ~/.config/fontforge/plugin/Font checker/config.toml (for Linux.)

Backend

Choose from auto (default), Fontbakery, or Fontspector. If auto, Fontspector will be preferred.

Either or both must be installed to your system; make sure you add the backend executables to PATH. It is not this plugin itself which checks fonts.

Check as

Unfortunately the external check tools cannot check SFDs (Fontforge's native file type) directly. Fonts must be exported so that the tools can check.

Choose from TTF (default) or UFO. Between these two, usually TTF is encouraged. Fontbakery's check against UFOs is quite incomplete.

Profile

Profiles are what specifies which set of checks will be executed. Choose from the list. If you want to use custom profile, edit the configuration file.

Default profile is 'Universal' which checks what considered as community best practice.

These 5 profiles are available for both Fontbakery and Fontspector (for the latter as built-in profiles):

  • OpenType (standards compliance only)
  • Univarsal
  • Google Fonts
  • ISO 15008 (in-car accessibility)
  • Fontwerk

Explicit checks

Comma-separated list of check IDs (or part of them) which are to be explicitly executed. If specified, only those checks are executed.

Excluded checks

Comma-separated list of check IDs (or part of them) which are not to be executed. If specified, those checks are skipped.

Usage

This plugin adds following items into "Tools" menu:

  • Check font

Check font

For TTF or UFO, check will be done against the file existing on disk. If such file has unsaved changes, asks which you intend: checking the files on disk or checking exported font including changes. For other files, the font will be exported into a temporary directory to check.

Project-specific configuration file

If there is 'fontbakery.toml' or 'fontspector.toml' (for respective font check tools) in the same directory as the font file or the Git repository root directory in which the font, you will be asked if you intend to use that configuration file.

View report

Once the check is finished, result summary is reported in warning log window, and you are asked if you would like to view details. It will open the browser to show the detail report.

Symbol Level Explanation (from Fontbakery help text)
💥 ERROR Something wrong with the font checker itself, possibly a bug.
FATAL An extremely severe issue that must be addressed immediately.
🔥 FAIL A problem with the font that must be fixed.
⚠️ WARN Something that you should consider addressing.
ℹ️ INFO Something useful, typically stats.
SKIP The check does not apply to the given font.
PASS The font looks good for the given checking routine.

Certain environments show the symbols as emojis.

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

fontforge_fontchecker-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fontforge_fontchecker-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file fontforge_fontchecker-0.2.0.tar.gz.

File metadata

  • Download URL: fontforge_fontchecker-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fontforge_fontchecker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 69e0bc76be31d6be543de33f69810396a01f956d73989b702aabfa883ff4fa23
MD5 898ec7553d8fc8c42dc7e112dce47304
BLAKE2b-256 253a6fdfac6d7e2985f830ebd8ac6dfcec3ac8099e59c99e8dd90de876a49fdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontforge_fontchecker-0.2.0.tar.gz:

Publisher: python-publish.yml on MihailJP/fontforge-fontchecker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontforge_fontchecker-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fontforge_fontchecker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38e91ac9cb562b0bd38ec7a463809af6af09ef598fc5820542a6b33dda72f3ec
MD5 852641f6a3b94a28d0c1ae6f4e566695
BLAKE2b-256 17f569994e357b60ec8664906d2f4713dc8f2eb83e450a2d640a4060c0cb2fd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontforge_fontchecker-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on MihailJP/fontforge-fontchecker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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