-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Milestone
Description
Given that some of the programming fonts (like Iosevka) may contain special metadata to achieve some special targets (like being used within Windows console window). Therefore the current patching script (using FontForge) may not be appropriate since FontForge cannot generate a font with such specialized data. A replacement used for patching may be involved with otfcc, which is a high-performance font manipulator dumps a font into JSON, and vice versa.
We can investigate an alternative patching script using otfcc, to create a “special-data-preserving” font patching workflow.
PROPOSAL
- Dump
<target.ttf>into JSON<target.otd>usingotfccdump. - Build a
<patch.ttf>containing Nerd symbols matching<target.otd>’shead.unitsPerEm. - Dump
<patch.ttf>into JSON<patch.otd>with glyph names prefixed. - Merge
<patch.otd>into<target.otd>(using some script. Python?), with the following tables merged:cmapglyf
- Build
<product.ttf>from<target.otd>usingotfccbuildwith--keep-average-char-widthand--shipoptions. - (optional) Autohint
<product.ttf>withttfautohint.
schneiderfelipe