Skip to main content

Query a font in Fedora release

Project description

Fontquery

pip version badge tag badge license badge

fontquery is a tool to query fonts in the certain Fedora release.

How to install

$ pip3 install fontquery

How to install from git

$ pip3 install --user build wheel
$ python3 -m build
$ pip3 install --user dist/fontquery*.whl

Usage

usage: fontquery [-h] [-r RELEASE] [-l LANG] [-m {fcmatch,fclist,json}] [-t {comps,langpacks,both,all}] [-v]
                 [args ...]

Query fonts

positional arguments:
  args                  Queries (default: None)

options:
  -h, --help            show this help message and exit
  -r RELEASE, --release RELEASE
                        Release number (default: rawhide)
  -l LANG, --lang LANG  Language list to dump fonts data into JSON (default: None)
  -m {fcmatch,fclist,json}, --mode {fcmatch,fclist,json}
                        Action to perform for query (default: fcmatch)
  -t {minimal,extra,all}, --target {minimal,extra,all}
                        Query fonts from (default: minimal)
  -v, --verbose         Show more detailed logs (default: 0)

To query sans-serif for Hindi on Fedora 36,

$ fontquery -r 36 sans-serif:lang=hi
Lohit-Devanagari.ttf: "Lohit Devanagari" "Regular"

To generate JSON from langpacks installed environment:

$ fontquery -m json -t langpacks
...

To generate html table:

$ fontquery -m json -t langpacks | fq2html -o langpacks.html -

To check difference between local and reference:

$ fontquery-diff -r 39 -R text

For developers

Before committing something into git repository, you may want to do:

$ git config core.hooksPath hooks

to make sure our hook scripts works.

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

fontquery-1.4.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

fontquery-1.4-py3-none-any.whl (22.1 kB view hashes)

Uploaded Python 3

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