Ygt is a Python app for hinting TrueType fonts. It is built to be fast, flexible, and free:
Ygt is in an alpha state, with features yet to be added (especially auto-hinting). But it is already a workable program, which the developer has used to hint thousands of glyphs in several large fonts.
Several executable files are available in the “Releases” section of the Ygt GitHub site. If none of these are suitable for your system, Ygt must be launched from a command line. In this case, install from an environment where the version of Python is 3.10.4 or later by typing pip install ygt
on the command line. Alternatively, download the files from GitHub, navigate to the directory with the file pyproject.toml, and type pip install .
(don't forget the period!). Then type ygt <Return>
to start the program.
For more information, see the documentation or watch a brief introductory video.
Added monochrome (non-antialiased) render mode for preview panels.
Fixed a bug in entry of OT feature indices.
Fixed two bugs when switching between axes
Qt was adding extra antialiasing in string/array preview. We now display only FreeType antialiasing.
Harfbuzz metrics updated when instance is changed.
Can now pass indices to cvNN and salt.
Fixed crash on file not found.
Preview->Features launches a dialog with which you can supply values, on, off, or 1-99 to any GSUB feature. Use it (among other things) to turn off features that are on by default.
Enhanced Preview->Script and Preview->Language menus (descriptions as well as tags).
Enable OpenType features in string preview panel (via Harfbuzz).
Better lcd/subpixel rendering in string preview panel.
Touched points are tinted pink.
Previews of composite glyphs can now be displayed.
Editing panels are disabled when there are no outlines.
Pyinstaller spec file for Linux added.
Fixed a bug.
Enabled merge (Ygt can add its hints to existing hints).
Added files supporting creation of executables.
Changed shortcuts: Ctrl-P = Hint Preview; Ctrl-L: Set Resolution.
Fixed a bug that left some untouched points with "touched" flags.
Can override light or dark theme for the Preview panels.
Various bug fixes, efficiencies, and other improvements in the code.
Select more than one untouched point when adding shift, align, or interpolate hints to create a hint with a set as target. This formerly had to be done with a separate “Make Set” command.
“Make Set” command has been removed as unnecessary.
To add a point to a shift, align, or interpolate hint, select the hint and at least one untouched point, and press the plus key.
To delete a point or points from a shift, align, or interpolate hint, select one ore more points belonging to the hint and press the hyphen or minus key.
Corrected background color of preview panels when dark theme is active. New color scheme for dark theme.
Various UI refinements: initial scaling of glyphs, spacebar to temporarily switch to panning mode, and more.
User now confronts only one kind of stem hint: Ygt guesses (more or less accurately) the distance type.
When we read a UFO, we do not rename glyphs. This prevents incompatibilities between in-memory font and font on disk, and it simplifies export. However, it may complicate shifting back and forth between UFO and YAML modes.
Ygt sometimes hung when summoning a Font View window for fonts read from UFO. This is now fixed.
Program now (partly) honors dark themes on various platforms.
changes three keywords in Ygt’s YAML-based hinting language: blackspace
, whitespace
, and grayspace
become blackdist
, whitedist
, and graydist
. If you have created a hinting file for earlier versions, run this sed script:
s/blackspace/blackdist/g
s/whitesapce/whitedist/g
s/grayspace/graydist/g
Among other changes intended to improve stability, this version consolidates various font-level edits in a “Font Info” dialog, summoned with Ctrl-I or Cmd-I, and honors “dark themes” on various platforms.