ttfautohint-py


Namettfautohint-py JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/fonttools/ttfautohint-py
SummaryPython wrapper for ttfautohint, a free auto-hinter for TrueType fonts
upload_time2022-03-07 18:37:24
maintainer
docs_urlNone
authorCosimo Lupo
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            |GitHub CI Status| |PyPI| |Codecov|

ttfautohint-py
~~~~~~~~~~~~~~

``ttfautohint-py`` is a Python wrapper for `ttfautohint
<https://www.freetype.org/ttfautohint>`__, a free auto-hinter for TrueType fonts
created by Werner Lemberg (`@lemzwerg <https://github.com/lemzwerg>`__).

It uses `ctypes <https://docs.python.org/3/library/ctypes.html>`__ to load the
``libttfautohint`` shared library and call the ``TTF_autohint`` function.

Binary "wheel" packages are available for Linux (``manylinux1``), macOS and
Windows, for both Python 2.7 and Python 3.x, with 32 and 64 bit architecture.
They can be installed from the Python Package Index
(`PyPI <https://pypi.python.org/pypi/ttfautohint-py>`__) using the
`pip <https://pip.pypa.io/en/stable/>`__ installer.

.. code:: sh

    $ pip install ttfautohint-py

The wheels include a precompiled ``libttfautohint.so`` (``*.dylib`` on
macOS, or ``*.dll`` on Windows) shared library which has no other dependency
apart from system libraries. The `FreeType <https://www.freetype.org>`__ and
the `HarfBuzz <https://github.com/harfbuzz/harfbuzz>`__ libraries are compiled
from source as static libraries and embedded in ``libttfautohint``.

To compile the ``libttfautohint.dll`` from source on Windows, you need to
install `MSYS2 <http://www.msys2.org/>`__ and the latest MinGW-w64 toolchain.
This is because the ``ttfautohint`` build system is based on autotools and
thus requires a Unix-like environment.

A ``Makefile`` is used to build the library and its static dependencies, thus
the GNU `make <https://www.gnu.org/software/make/>`__ executable must be on the
``$PATH``, as this is called upon by the ``setup.py`` script.

Because we build ``freetype``, ``harfbuzz`` and ``ttfautohint`` from their git
source (checked in as git submodules), some relatively recent versions of the
following development tools are also required: ``autoconf``, ``automake``,
``libtool``, ``flex``, ``bison`` and ``ragel``. Please check the respective
documentation of these libraries for more information.

.. |Github CI Status| image:: https://img.shields.io/github/workflow/status/fonttools/ttfautohint-py/CI
   :target: https://github.com/fonttools/ttfautohint-py/actions/workflows/ci.yml
.. |PyPI| image:: https://img.shields.io/pypi/v/ttfautohint-py.svg
   :target: https://pypi.python.org/pypi/ttfautohint-py
.. |Codecov| image:: https://codecov.io/gh/fonttools/ttfautohint-py/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/fonttools/ttfautohint-py



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fonttools/ttfautohint-py",
    "name": "ttfautohint-py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Cosimo Lupo",
    "author_email": "cosimo@anthrotype.com",
    "download_url": "https://files.pythonhosted.org/packages/03/22/598d609cbd11b4e29a90fe4ea1ab9be9f6385b209c44c109e0fd1e00dc32/ttfautohint-py-0.5.1.tar.gz",
    "platform": "posix",
    "description": "|GitHub CI Status| |PyPI| |Codecov|\n\nttfautohint-py\n~~~~~~~~~~~~~~\n\n``ttfautohint-py`` is a Python wrapper for `ttfautohint\n<https://www.freetype.org/ttfautohint>`__, a free auto-hinter for TrueType fonts\ncreated by Werner Lemberg (`@lemzwerg <https://github.com/lemzwerg>`__).\n\nIt uses `ctypes <https://docs.python.org/3/library/ctypes.html>`__ to load the\n``libttfautohint`` shared library and call the ``TTF_autohint`` function.\n\nBinary \"wheel\" packages are available for Linux (``manylinux1``), macOS and\nWindows, for both Python 2.7 and Python 3.x, with 32 and 64 bit architecture.\nThey can be installed from the Python Package Index\n(`PyPI <https://pypi.python.org/pypi/ttfautohint-py>`__) using the\n`pip <https://pip.pypa.io/en/stable/>`__ installer.\n\n.. code:: sh\n\n    $ pip install ttfautohint-py\n\nThe wheels include a precompiled ``libttfautohint.so`` (``*.dylib`` on\nmacOS, or ``*.dll`` on Windows) shared library which has no other dependency\napart from system libraries. The `FreeType <https://www.freetype.org>`__ and\nthe `HarfBuzz <https://github.com/harfbuzz/harfbuzz>`__ libraries are compiled\nfrom source as static libraries and embedded in ``libttfautohint``.\n\nTo compile the ``libttfautohint.dll`` from source on Windows, you need to\ninstall `MSYS2 <http://www.msys2.org/>`__ and the latest MinGW-w64 toolchain.\nThis is because the ``ttfautohint`` build system is based on autotools and\nthus requires a Unix-like environment.\n\nA ``Makefile`` is used to build the library and its static dependencies, thus\nthe GNU `make <https://www.gnu.org/software/make/>`__ executable must be on the\n``$PATH``, as this is called upon by the ``setup.py`` script.\n\nBecause we build ``freetype``, ``harfbuzz`` and ``ttfautohint`` from their git\nsource (checked in as git submodules), some relatively recent versions of the\nfollowing development tools are also required: ``autoconf``, ``automake``,\n``libtool``, ``flex``, ``bison`` and ``ragel``. Please check the respective\ndocumentation of these libraries for more information.\n\n.. |Github CI Status| image:: https://img.shields.io/github/workflow/status/fonttools/ttfautohint-py/CI\n   :target: https://github.com/fonttools/ttfautohint-py/actions/workflows/ci.yml\n.. |PyPI| image:: https://img.shields.io/pypi/v/ttfautohint-py.svg\n   :target: https://pypi.python.org/pypi/ttfautohint-py\n.. |Codecov| image:: https://codecov.io/gh/fonttools/ttfautohint-py/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/fonttools/ttfautohint-py\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts",
    "version": "0.5.1",
    "project_urls": {
        "Homepage": "https://github.com/fonttools/ttfautohint-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c371e1500aee15ce25c20e705d9ee34f4e9c5d8118050db973bca777139c3e7",
                "md5": "3e7053a871656a7b93cd9c424b3603e3",
                "sha256": "1082907b33112f7734449f64ca49d5c3225a4c6a727034353885e596b1e0a0b0"
            },
            "downloads": -1,
            "filename": "ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "3e7053a871656a7b93cd9c424b3603e3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1836363,
            "upload_time": "2022-03-07T18:37:13",
            "upload_time_iso_8601": "2022-03-07T18:37:13.234483Z",
            "url": "https://files.pythonhosted.org/packages/2c/37/1e1500aee15ce25c20e705d9ee34f4e9c5d8118050db973bca777139c3e7/ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75d764bd7547e8ea7376b46581841fb9ca29aa7c901b6caeec695f1d942560fd",
                "md5": "e924357e47a77d8cd29739af26a04087",
                "sha256": "68414b2e507822f42db5660c9151815b30d81ffec5b322f4b2153ba531f883cb"
            },
            "downloads": -1,
            "filename": "ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e924357e47a77d8cd29739af26a04087",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1836362,
            "upload_time": "2022-03-07T18:37:15",
            "upload_time_iso_8601": "2022-03-07T18:37:15.029312Z",
            "url": "https://files.pythonhosted.org/packages/75/d7/64bd7547e8ea7376b46581841fb9ca29aa7c901b6caeec695f1d942560fd/ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9513fa29859804685619c0788a92a78ba624879ba618e67f25ffe30ca51bfb04",
                "md5": "733f813c874578c712dd1464cfc1bf06",
                "sha256": "5c65fe2fd3ee16d68201169c72413e70130d9f9d0b92589f9122d9f72a98d093"
            },
            "downloads": -1,
            "filename": "ttfautohint_py-0.5.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "733f813c874578c712dd1464cfc1bf06",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 9644277,
            "upload_time": "2022-03-07T18:37:17",
            "upload_time_iso_8601": "2022-03-07T18:37:17.371483Z",
            "url": "https://files.pythonhosted.org/packages/95/13/fa29859804685619c0788a92a78ba624879ba618e67f25ffe30ca51bfb04/ttfautohint_py-0.5.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d95195b3dd69f913ef1ac37c7f1fbad6e8170ba0a0938cfc3579578f0c312bc",
                "md5": "c7e25718f5860638aaa745b70dbe7ffa",
                "sha256": "16f713bbef44c31af1c64ef21f74605cbcd01b3e387c9c0a79b389203f030b9b"
            },
            "downloads": -1,
            "filename": "ttfautohint_py-0.5.1-py2.py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "c7e25718f5860638aaa745b70dbe7ffa",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 12216601,
            "upload_time": "2022-03-07T18:37:19",
            "upload_time_iso_8601": "2022-03-07T18:37:19.991906Z",
            "url": "https://files.pythonhosted.org/packages/6d/95/195b3dd69f913ef1ac37c7f1fbad6e8170ba0a0938cfc3579578f0c312bc/ttfautohint_py-0.5.1-py2.py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d56a54eb979925e7b4edd8d84524f7b45786be90cf308811eabe101514d97ce8",
                "md5": "75c10d53b25aeac536058c804efd4927",
                "sha256": "7010f6dff9a2fe0c4ae87b7a5f84d94fb44064377c3cbcf5e88786f5244ed6de"
            },
            "downloads": -1,
            "filename": "ttfautohint_py-0.5.1-py2.py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "75c10d53b25aeac536058c804efd4927",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 12405137,
            "upload_time": "2022-03-07T18:37:22",
            "upload_time_iso_8601": "2022-03-07T18:37:22.145130Z",
            "url": "https://files.pythonhosted.org/packages/d5/6a/54eb979925e7b4edd8d84524f7b45786be90cf308811eabe101514d97ce8/ttfautohint_py-0.5.1-py2.py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0322598d609cbd11b4e29a90fe4ea1ab9be9f6385b209c44c109e0fd1e00dc32",
                "md5": "91c73697362ec9999ec730700f0ba4e2",
                "sha256": "d5e324e1437399ab3ed2ffeb68f8b3235d3ad151eefc8375a1c3a380f5fa94fa"
            },
            "downloads": -1,
            "filename": "ttfautohint-py-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "91c73697362ec9999ec730700f0ba4e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 188227,
            "upload_time": "2022-03-07T18:37:24",
            "upload_time_iso_8601": "2022-03-07T18:37:24.481530Z",
            "url": "https://files.pythonhosted.org/packages/03/22/598d609cbd11b4e29a90fe4ea1ab9be9f6385b209c44c109e0fd1e00dc32/ttfautohint-py-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-03-07 18:37:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fonttools",
    "github_project": "ttfautohint-py",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "ttfautohint-py"
}
        
Elapsed time: 0.36828s