Skip to main content

Python extension for Visual TrueType font compile.

Project description

Project

VTTCompilePy is a Python extension built using Cython. It provides streamlined bindings for various compilers from Visual TrueType.

DWriteShapePy was developed to support a Python based font development environment.

Example

    import sys 
    from pathlib import Path
    import vttcompilepy as vtt

    TESTDATA = Path(__file__).parent / "data"
    IN_PATH = TESTDATA / "selawik-variable.ttf"
    OUT_PATH = TESTDATA / "out.ttf"

    print(bytes(IN_PATH))

    print('VTTCompilePy Test Client')

    compiler = vtt.Compiler(IN_PATH)

    compiler.compile_all()

    compiler.save_font(OUT_PATH, vtt.StripLevel.STRIP_NOTHING)

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

vttcompilepy-0.0.1.1b1-py3.7-win-amd64.egg (222.4 kB view hashes)

Uploaded Source

vttcompilepy-0.0.1.1b1-cp37-cp37m-win_amd64.whl (220.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page