Ygt
Ygt is a Python app for hinting TrueType fonts. It is built to be fast, flexible, and free:
- it will run equally well under Windows, Mac OS, and Linux;
- it emphasizes modern requirements for TrueType hinting while deemphasizing the obsolete;
- the most common commands use unmodified shortcut keys so you can work quickly with one hand on the keyboard and one on the mouse;
- it will read either a TrueType font or a UFO;
- it saves hints in an easily understood and edited YAML file,
- which can be compiled to a hinted font either from inside the program or from the command line,
- or it can save compiled hints to a UFO (from which fontmake can produce a hinted font)
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.
Changes
Version 0.2.5
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
Version 0.2.4 (2023-5-30)
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).
Version 0.2.3 (2023-5-25)
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.
Version 0.2.1 (2023-5-11)
Fixed a bug.
Version 0.2.0 (2023-5-11)
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.
Version 0.1.6 (2023-4-28)
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.
Version 0.1.5 (2023-4-25)
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.
Version 0.1.4 (2023-4-19)
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.
Version 0.1.3 (2023-4-17)
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.
Metadata
Release files for ygt 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ygt-0.2.7.tar.gz | 997.4 kB | Without provenance | Details for ygt-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ygt-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for ygt-0.2.7-py3-none-any.whl |
Total release size: 2.0 MB
Release files / ygt-0.2.7.tar.gz
| Download URL | ygt-0.2.7.tar.gz |
|---|---|
| Size | 997.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d113ed5c887de54d4f35e049f51142990d24cca3c525bb6e45fcf5c2340c4495
|
|
BLAKE2b-256 checksum How to use checksums |
859eb8e750864866c2e90233a001a9c943378dc08d6a8006060790bcaeb1bb9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.4
|
Release files / ygt-0.2.7-py3-none-any.whl
| Download URL | ygt-0.2.7-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba675cfabcb440c8011b37086e8717a8bab7774a9ef71a3a116584ec9b7e83a1
|
|
BLAKE2b-256 checksum How to use checksums |
a9af0d9b102d69eb0bce669be4d1ce9f6cadac96bc281ec1391583f11b007042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.4
|
Security for ygt 0.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.