{"id":18729882,"url":"https://github.com/manimcommunity/manimpango","last_synced_at":"2025-04-09T22:14:57.847Z","repository":{"id":40545494,"uuid":"323684821","full_name":"ManimCommunity/ManimPango","owner":"ManimCommunity","description":"Binding for Pango, to use with Manim.","archived":false,"fork":false,"pushed_at":"2024-09-14T13:57:15.000Z","size":4997,"stargazers_count":48,"open_issues_count":4,"forks_count":15,"subscribers_count":2,"default_branch":"v0","last_synced_at":"2025-04-09T22:14:43.421Z","etag":null,"topics":["bindings","cython","pango","python"],"latest_commit_sha":null,"homepage":"https://manimpango.manim.community","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManimCommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-22T16:58:42.000Z","updated_at":"2025-02-10T01:30:34.000Z","dependencies_parsed_at":"2023-10-11T09:12:50.835Z","dependency_job_id":"17f6bde0-c8ac-4dc2-a99a-ae7d45140d83","html_url":"https://github.com/ManimCommunity/ManimPango","commit_stats":{"total_commits":350,"total_committers":6,"mean_commits":"58.333333333333336","dds":0.4771428571428571,"last_synced_commit":"601ed269ff02134263cdb33b0f72bf0cf4413c95"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManimCommunity%2FManimPango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManimCommunity%2FManimPango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManimCommunity%2FManimPango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManimCommunity%2FManimPango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManimCommunity","download_url":"https://codeload.github.com/ManimCommunity/ManimPango/tar.gz/refs/heads/v0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119290,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bindings","cython","pango","python"],"created_at":"2024-11-07T14:29:33.728Z","updated_at":"2025-04-09T22:14:57.822Z","avatar_url":"https://github.com/ManimCommunity.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ManimPango\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/manimpango/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/manimpango.svg?style=flat\u0026logo=pypi\" alt=\"PyPI Latest Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/manimpango/\"\u003e\u003cimg alt=\"PyPI - Wheel\" src=\"https://img.shields.io/pypi/wheel/manimpango\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/manimpango/\"\u003e\u003cimg alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/manimpango\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://choosealicense.com/licenses/mit/\"\u003e\u003cimg alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/manimpango\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/manimpango/\"\u003e\u003cimg alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/ManimPango.svg?style=flat\"\u003e\u003c/a\u003e\n    \u003ca href='https://manimpango.readthedocs.io/en/latest/?badge=latest'\u003e\u003cimg src='https://readthedocs.org/projects/manimpango/badge/?version=latest' alt='Documentation Status' /\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://github.com/ManimCommunity/manimpango/workflows/Build%20Wheels/badge.svg\"\u003e\n\u003c/p\u003e\n\n**ManimPango** is a C binding for [Pango](https://pango.gnome.org/) using [Cython](https://cython.org/), which is internally used in [Manim](https://www.manim.community) to render (non-LaTeX) text.\n\n\n\n## INSTALL\n\nInstalling **ManimPango** is super easy, just use `pip`. It is [`manimpango`](https://pypi.org/project/manimpango/) in PyPi.\n\n```sh\npip install manimpango\n```\n\nFor **Linux Users**, there are no Wheels. You must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING) for more information.\n\n## WORKFLOW SETUP / CONTRIBUTING\n\nTo make it easier for developers to contribute, we have a pre-commit workflow that will check for `black` formatting and `flake` checking.\n\n```sh\npip install pre-commit\npre-commit install\n```\n\n## BUILDING\n\n### Linux/MacOS\n\nFor building **ManimPango**, you need\n* a C compiler\n* Python's development headers\n* [`pkg-config`](https://www.freedesktop.org/wiki/Software/pkg-config/)\n* [Pango](https://pango.gnome.org) along with its development headers and its dependencies.\n\nIf you are on MacOS, you can use [brew](https://brew.sh) to install those. Using [MacPorts](https://www.macports.org) is also possible.\n\n```sh\nbrew install pango pkg-config\n```\n\nIf you are on Linux, you can use a system package manager to do so. For example, if you are on Debian based system, you can use `apt`\n\n```sh\napt install libpango1.0-dev pkg-config python3-dev\n```\n\n**Arch Linux:** `pacman -S pango pkgconf`\n\n**Fedora:** `dnf install pango-devel pkg-config python3-devel`\n\nOr similar in your system's package manager.\n\n#### Using `tar` archives\n\nIf you don't want to contribute to this repository, you can use the tar archives published in PyPi, or just use `pip` to install using\n\n```sh\npip install manimpango --no-binary :all:\n```\n\n**Note**: `pip` by default uses wheels, so make sure to pass the `--no-binary` parameter.\n\n#### Using `git` clones / Contributing\n\nPlease remember to do this inside your virtual environment, if you want to use your **Manimpango** with **Manim**.\n\n```sh\npython -m venv ./venv\nsource venv/bin/activate # Linux/macOS\nvenv\\Scripts\\activate # Windows\n```\n\nIf you are using a clone of this repository, you will need [Cython](https://cython.org) which can be easily installed using `pip`:\n\n```sh\npip install Cython\n```\n\nAfter that you can use `pip` to install the clone with the following command:\n\n```sh\npip install -e .\npip install -r requirements-dev.txt .\n```\n\nNext, run the setup script:\n\n```sh\npython setup.py build_ext -i\n```\n\nAfter installation is complete, you should be able to run pytest:\n\n```sh\npytest\n```\n\nYou will need to this way if you want to *contribute* to **ManimPango**.\n\n### Contributing with Windows\n\n*If you are a normal user, don't read this, you have wheels which you can just install directly using pip.*\n\nIf you want to contribute to **ManimPango** and you are on Windows, this section is for you.\n\nAs Windows does not include a C compiler by default, you will first need to install one. You have two choices:\n\n1. MinGW/Msys2\n\n2. Visual Studio\n\n#### MinGW/Msys2\n\n1. Download **MSYS2** from the download link provided on their page https://www.msys2.org/#installation and install it according to their instructions.\n2. Once you have **MSYS2** installed,  it offers you three different shells: the **MinGW32** shell, the **MinGW64** shell and **MSYS** shell. In order for the following steps to work, you have to open the **MSYS2 MinGW64** shell (you can search for this). Small hint: it has a blue color logo.\n3. Run the following commands to install Python, Pango, Cython, Numpy, Scipy, Pillow, Pycairo and ffmpeg\n```sh\npacman -S mingw-w64-x86_64-python\npacman -S mingw-w64-x86_64-python-pip\npacman -S mingw-w64-x86_64-pango\npacman -S mingw-w64-x86_64-cython\npacman -S mingw-w64-x86_64-python-numpy\npacman -S mingw-w64-x86_64-python-scipy\npacman -S mingw-w64-x86_64-python-pillow\npacman -S mingw-w64-x86_64-python-cairo\npacman -S mingw-w64-x86_64-ffmpeg\n```\n4. Still in the same shell, install **Manim** using `pip install manim`.\n5. Finally, get your clone of **ManimPango**, `cd` into that directory and then run `pip install -e .`.\n**Note** You can't use it with your regular Python version. It will cause weird errors if you do so. For working with **ManimPango**, you must be inside the `MSYS2 MINGW64 shell`.\n6. You can then use `manim` inside that shell, to run **Manim**.\n**Hint**: If you want to try out Python interactively, you can open `idle` using the command `python -m idlelib`  inside that shell.\n\n#### Visual Studio\n\nFirst, install Visual Studio as specified in https://wiki.python.org/moin/WindowsCompilers. Possibly Visual Studio Build Tools 2022 with Windows10 SDK.\n\nThen run the script at `packing/download_dlls.py`. This will get a **Pango** build along with `pkg-config` and install it at `C:\\cibw\\vendor`. Add `C:\\cibw\\vendor\\bin` to PATH.\n\n**Note:** You can change the install location by editing line 24 of the file `packing/download_dlls.py`.\n\nThen set an environment variable `PKG_CONFIG_PATH`=`C:\\cibw\\vendor\\lib\\pkgconfig`.\n\nThen you can install Cython using\n\n```sh\npip install Cython\n```\n\nFinally, you can install your local **ManimPango** clone just like any other python package by typing:\n\n```sh\npip install .\n```\n\n## Code of Conduct\n\nOur full code of conduct, and how we enforce it, can be read on [our website](https://docs.manim.community/en/latest/conduct.html).\n\n## License\n\nThis project is licensed under MIT License. The wheels distributed on PyPI contains compiled version of Pango and Cairo subject to terms of the GNU LGPL and other licenses. Consult the licenses of each library for more informations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanimcommunity%2Fmanimpango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanimcommunity%2Fmanimpango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanimcommunity%2Fmanimpango/lists"}