Project
Microsoft Visual TrueType(VTT) is a professional-level tool for graphically instructing TrueType and OpenType fonts.
For details on the tool visit https://docs.microsoft.com/en-us/typography/tools/vtt/.
Visual TrueType compiles binary from source formats included in the fonts that are instructed with Visual TrueType.
This repo contains the source for the compilers of Visual TrueType. The compilers can compile the high level VTT Talk source
to a lower level assembler source and then can assemble that source to corresponding binaries. Since VTT can also generate
variation 'cvar' data for variable fonts, the compilers can also produce 'cvar' data from a source format. File management
functions are included to prepare a font for production and to strip source formats for a final 'ship' font binary.
The source in this repo can be compiled and used in two different ways.
First is VTTCompile which is a standalone tool can VTTCompile that runs on the command line. The interface for VTTCompile is
similar to VTTShell which is included in Visual TrueType download package.
Second is VTTCompilePy which is Cython based Python extension that exports interfaces enabling a Python program to compile
and assemble TrueType data. This extension also provides a command line interface to the Python interface. VTTCompilePy is
available on PyPi, please visit https://pypi.org/project/vttcompilepy.
The source code in the repo is mostly a subset of the source code of Visual TrueType as needed to produce VTTCompile.
However not all of the source code included in the repo is necessary to produce VTTCompile but we optimized for including
as complete source files as possible to make future maintenance easier.
For documentation of the Visual TrueType source formats visit https://docs.microsoft.com/en-us/typography/tools/vtt/tsi-tables.
Building
In the "vttcompile" folder, there is a Visual Studio Solution for Microsoft Visual Studio users,
and an Xcode Project For Apple Xcode users.
For unix users (including Linux and Apple command-line), cd src && make should work. You
can also cross-compile for 32-bit windows with cd src && make CXX=i686-w64-mingw32-c++,
for 64-bit windows with cd src && make CXX=x86_64-w64-mingw32-c++; and use clang,
enabling all the recommended warnings with cd src && make CXX=clang++ CXXFLAGS=-Wall.
Build as 32-bit on 64-bit systems with cd src && make CXXFLAGS=-m32.
You may need to do cd src && make CXXFLAGS="-std=c++14" to explicitly request
support for the 2014 ISO C++ standard.