googlefonts / googlefonts/gftools

Script that imports glyphs from one font to another and takes GID list as input

Open
#141 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
283
Forks
73
Avg merge
21h 25m
Merged PRs (30d)
8

Description

I need a script to wrap up Open Sans after instantiation. `varLib` instantiates nicely (better than `mutatorMath` IMO) but composite hint metrics don't carry over (no surprise). I am looking for a script to handle this. Ideally, the script:

1. takes in a list of GIDs (to account for unencoded glyphs)
2. uses that list as a source to pull glyphs from one file and import them into another at the same GID (i.e. overwriting)
3. sends it to the VTTshell.exe Windows command line prompt to recompile

The first step is to autohint copies of the files, thereby fixing the composites. That can't be scripted, sadly. The script would then import those composites over the flawed glyphs in the source file and recompile using the VTT tool (`VTTShell.exe -a font.ttf`). Make sense?

Ugly accent example:
![screenshot_2019-07-01_16-43-49](https://user-images.githubusercontent.com/10780161/60466430-a0f86d00-9c21-11e9-8642-4fdbe7da78d5.png)

[cc @davelab6 & @felipesanches]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.