pyfonts


Namepyfonts JSON
Version 1.1.3 PyPI version JSON
download
home_pageNone
SummaryA simple and reproducible way of using fonts in matplotlib
upload_time2025-10-18 11:51:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords matplotlib font reproducibility google
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyfonts

<img src="https://github.com/JosephBARBIERDARNAL/static/blob/main/python-libs/pyfonts/image.png?raw=true" alt="Pyfonts logo" align="right" width="150px"/>

A **simple** and **reproducible** way of using fonts in matplotlib. In short, `pyfonts`:

- allows you to use all **Google Font** fonts
- allows you to use any font from an **arbitrary URL**
- is **fast** (thanks to its cache system)

[![PyPI Downloads](https://static.pepy.tech/badge/pyfonts)](https://pepy.tech/projects/pyfonts)
![Coverage](coverage-badge.svg)

<br>

## Quick start

```python
import matplotlib.pyplot as plt
from pyfonts import load_google_font

font = load_google_font("Fascinate Inline")

fig, ax = plt.subplots()
ax.text(
    x=0.2,
    y=0.5,
    s="Hey there!",
    size=30,
    font=font
)
```

![](https://raw.githubusercontent.com/y-sunflower/pyfonts/refs/heads/main/quickstart.png)

[**See more examples**](https://y-sunflower.github.io/pyfonts/reference/load_google_font#examples)

<br>

## Installation

```bash
pip install pyfonts
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyfonts",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "matplotlib, font, reproducibility, google",
    "author": null,
    "author_email": "Joseph Barbier <joseph.barbierdarnal@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/0d/3b/b72d66ef3f22af0e13f34856b09f3128c662ef9fe6250f3a36797fc0cb2a/pyfonts-1.1.3.tar.gz",
    "platform": null,
    "description": "# pyfonts\n\n<img src=\"https://github.com/JosephBARBIERDARNAL/static/blob/main/python-libs/pyfonts/image.png?raw=true\" alt=\"Pyfonts logo\" align=\"right\" width=\"150px\"/>\n\nA **simple** and **reproducible** way of using fonts in matplotlib. In short, `pyfonts`:\n\n- allows you to use all **Google Font** fonts\n- allows you to use any font from an **arbitrary URL**\n- is **fast** (thanks to its cache system)\n\n[![PyPI Downloads](https://static.pepy.tech/badge/pyfonts)](https://pepy.tech/projects/pyfonts)\n![Coverage](coverage-badge.svg)\n\n<br>\n\n## Quick start\n\n```python\nimport matplotlib.pyplot as plt\nfrom pyfonts import load_google_font\n\nfont = load_google_font(\"Fascinate Inline\")\n\nfig, ax = plt.subplots()\nax.text(\n    x=0.2,\n    y=0.5,\n    s=\"Hey there!\",\n    size=30,\n    font=font\n)\n```\n\n![](https://raw.githubusercontent.com/y-sunflower/pyfonts/refs/heads/main/quickstart.png)\n\n[**See more examples**](https://y-sunflower.github.io/pyfonts/reference/load_google_font#examples)\n\n<br>\n\n## Installation\n\n```bash\npip install pyfonts\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple and reproducible way of using fonts in matplotlib",
    "version": "1.1.3",
    "project_urls": {
        "Documentation": "https://y-sunflower.github.io/pyfonts/",
        "Homepage": "https://y-sunflower.github.io/pyfonts/",
        "Issues": "https://github.com/y-sunflower/pyfonts/issues",
        "Repository": "https://github.com/y-sunflower/pyfonts"
    },
    "split_keywords": [
        "matplotlib",
        " font",
        " reproducibility",
        " google"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "53c2b289e6d18c599bc97bcbc8f809fed50933e7be62c5180f5366961f4f9d41",
                "md5": "17a487b40cb25f2cb5ceceaf5e4e0f62",
                "sha256": "3c4f9a81616a12908d08480f38f28060d60eab7c235a8f5493ac5846ebb30a3d"
            },
            "downloads": -1,
            "filename": "pyfonts-1.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "17a487b40cb25f2cb5ceceaf5e4e0f62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9927,
            "upload_time": "2025-10-18T11:51:30",
            "upload_time_iso_8601": "2025-10-18T11:51:30.291843Z",
            "url": "https://files.pythonhosted.org/packages/53/c2/b289e6d18c599bc97bcbc8f809fed50933e7be62c5180f5366961f4f9d41/pyfonts-1.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0d3bb72d66ef3f22af0e13f34856b09f3128c662ef9fe6250f3a36797fc0cb2a",
                "md5": "10b6d525ab52c4d9702df906220f7efb",
                "sha256": "82d4a336d0c46c35b0499cdc7f1b185190dd60884a12b1a91ecd9dc2c55dc9e6"
            },
            "downloads": -1,
            "filename": "pyfonts-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "10b6d525ab52c4d9702df906220f7efb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 189602,
            "upload_time": "2025-10-18T11:51:31",
            "upload_time_iso_8601": "2025-10-18T11:51:31.733544Z",
            "url": "https://files.pythonhosted.org/packages/0d/3b/b72d66ef3f22af0e13f34856b09f3128c662ef9fe6250f3a36797fc0cb2a/pyfonts-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-18 11:51:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y-sunflower",
    "github_project": "pyfonts",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyfonts"
}
        
Elapsed time: 0.69534s