Query a font in Fedora release
Project description
Fontquery
fontquery is a tool to query fonts in the certain Fedora release.
How to install
$ pip3 install fontquery
Or in Fedora,
# dnf install fontquery
How to install from git
$ pip3 install --user build wheel
$ python3 -m build
$ pip3 install --user dist/fontquery*.whl
Or in Fedora,
# dnf install python3-build python3-wheel
$ python3 -m build
$ pip3 install --user dist/fontquery*.whl
Usage
usage: fontquery [-h] [-C] [--disable-cache] [-f FILENAME_FORMAT] [-r RELEASE] [-l LANG]
[-m {fcmatch,fclist,json,html}] [-O OUTPUT_DIR] [-t {minimal,extra,all}] [-T TITLE] [-v] [-V]
[args ...]
Query fonts
positional arguments:
args Queries (default: None)
options:
-h, --help show this help message and exit
-C, --clean-cache Clean caches before processing (default: False)
--disable-cache Enforce processing everything even if not updating (default: False)
-f FILENAME_FORMAT, --filename-format FILENAME_FORMAT
Output filename format. only take effects with --mode=html (default:
{platform}-{release}-{target}.{mode})
-r RELEASE, --release RELEASE
Release number such as "rawhide" and "39". "local" to query from current environment
instead of images (default: ['local'])
-l LANG, --lang LANG Language list to dump fonts data into JSON (default: None)
-m {fcmatch,fclist,json,html}, --mode {fcmatch,fclist,json,html}
Action to perform for query (default: fcmatch)
-O OUTPUT_DIR, --output-dir OUTPUT_DIR
Output directory (default: .)
-t {minimal,extra,all}, --target {minimal,extra,all}
Query fonts from (default: minimal)
-T TITLE, --title TITLE
Page title format. only take effects with --mode=html (default: {platform} {release}:
{target})
-v, --verbose Show more detailed logs (default: 0)
-V, --version Show version (default: False)
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 default-fonts installed environment:
$ fontquery -m json -t minimal
...
To generate html table:
$ fontquery -m json -t minimal | fq2html -o minimal.html -
Or simply
$ fontquery -m html -t minimal -r 40
To check difference between local and reference:
$ fontquery-diff -R text rawhide local
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
Release history Release notifications | RSS feed
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.21.tar.gz
(24.0 kB
view details)
Built Distribution
fontquery-1.21-py3-none-any.whl
(32.4 kB
view details)
File details
Details for the file fontquery-1.21.tar.gz
.
File metadata
- Download URL: fontquery-1.21.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cea795ea82ca2fa95abd0d386019545e3c094cdf0ef6d7a3b8f4b2d0871f4f6 |
|
MD5 | 4a2e007c1512ce34a6407e3eac1b9669 |
|
BLAKE2b-256 | 4529c38bdd06ea9231ee56a5d8f7c4e1de49c625823b503561c4975ad232bf77 |
File details
Details for the file fontquery-1.21-py3-none-any.whl
.
File metadata
- Download URL: fontquery-1.21-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5deb93cee3b046b647ea7992369bb2fb97649f93b528d0423048ed6be83cc295 |
|
MD5 | fc13041a2f8140565cd908e8c8dbdeb0 |
|
BLAKE2b-256 | cf1f1a2d4ff7cd0ba4323c15ae6338f9ff1475987d7de37a59911682e8635f5e |