fontquery-1.0
توضیحات
Query a font in Fedora release
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fontquery-1.0 |
| نام | fontquery |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Akira TAGOH |
| ایمیل نویسنده | akira@tagoh.org |
| آدرس صفحه اصلی | https://github.com/fedora-i18n/fontquery |
| آدرس اینترنتی | https://pypi.org/project/fontquery/ |
| مجوز | MIT |
# Fontquery
[](https://github.com/fedora-i18n/fontquery/tags)
[](./LICENSE)
fontquery is a tool to query fonts in the certain Fedora release.
## How to install
```
$ pip install fontquery
```
## 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 {comps,langpacks,both,all}, --target {comps,langpacks,both,all}
Query fonts from (default: langpacks)
-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 -
```
نحوه نصب
نصب پکیج whl fontquery-1.0:
pip install fontquery-1.0.whl
نصب پکیج tar.gz fontquery-1.0:
pip install fontquery-1.0.tar.gz