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-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf8fb088341292e128641a358574e4a060b8121bb788885276ceef5832b993a |
|
MD5 | 6d364245e132a8dd74704fd16b0973b1 |
|
BLAKE2b-256 | 76409685b1ac0471e6108131a6fc8d45668eb1db3bdd5163f72e34c267d631c9 |
Hashes for vttcompilepy-0.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac22a92199c6e2b4b0a4cb74cc10e3a2b66a90a624f9b48078fb748b018fe2e8 |
|
MD5 | 026960f30fd3ff99461e754cd0996356 |
|
BLAKE2b-256 | 40db9ccbf889c1ee0799f1a3f30c8dda11fe125713275a6795ee7558e0eba28d |