Metadata-Version: 2.1
Name: fontconfig-py
Version: 0.1.1
Summary: Python bindings to fontconfig
License: MIT
Author: Kota Yamaguchi
Author-email: yamaguchi_kota@cyberagent.co.jp
Requires-Python: >=3.8.1,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

# fontconfig-py

[![PyPI version](https://badge.fury.io/py/fontconfig-py.svg)](https://pypi.org/project/fontconfig-py)
[![Docs status](https://readthedocs.org/projects/fontconfig-py/badge/)](https://fontconfig-py.readthedocs.io/)

Python bindings to [fontconfig](https://www.freedesktop.org/wiki/Software/fontconfig/).

Currently Linux and macOS are supported.

## Install

Install from the PyPI:

```bash
pip install fontconfig-py
```

## Usage

The following demonstrates the usage of `fontconfig.query` to identify English
fonts in the system:

```python
import fontconfig

fonts = fontconfig.query(where=":lang=en", select=("family",))
for font in fonts:
    print(font["family"])
```

## License notice

This project is distributed in [MIT license](LICENSE.txt). The binary wheels
bundles several libraries that may be distributed in different licenses.
See [THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt).

