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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for vttcompilepy-0.0.1.1b1-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb86fd2bb131cd852be9dd6788be57abcd1d7ecb9e2a645ee3dab0837d4c7e5d |
|
MD5 | 5d35a81386452bcceef6d3371316c532 |
|
BLAKE2b-256 | f46a328e7d7ced1140e71585c5741a73e98237575869541925fb7d8ba5f7a7dc |
Hashes for vttcompilepy-0.0.1.1b1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c2ba2f69104db9639c9b9cdb760a981bbfc67724005db9b04de5a45ba58ddbf |
|
MD5 | 44d165d3603bfe3a4e083a4e5435d136 |
|
BLAKE2b-256 | a3c3fe476cfc12f1b9dbe5348c109629933e62f27c86f2ac3bd85e34a42eda96 |