Skip to content

fontc 2.0.1

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Nov 16:50
· 40 commits to main since this release
c0e4f83

2.0.1 is the first usable build of fontc 2.0: 2.0.0 was yanked because it did not compile outside a git checkout.

fontc 2.0 closes a good number of the fontmake compatibility gaps listed in the 1.0 notes, most notably designspace sources whose masters have different feature files, and adds experimental support for compiling Fontra sources. The major version is for the Rust library crates, whose public APIs changed; the command line only gained new options, so existing fontc invocations keep working.

Highlights since 1.0.0:

  • In designspace sources, UFO masters whose feature files differ are now compiled per master and merged into variable GPOS when they are compatible, as fontmake does (#2125). Differences that can't be merged are still rejected (#2060).
  • Fontra sources compile (#2068, still experimental), including avar2 from Fontra's cross-axis mappings (#2134) and a VARC table for variable components with --emit-varc-table (#2080).
  • Color fonts: Glyphs color layers of non-default masters are kept, so COLRv0 now interpolates (#2195), and static COLRv1 paints compile from UFO sources in the format ufo2ft uses (#2292).
  • STAT axis values are derived from Glyphs instances the way glyphsLib >= 6.14 and Glyphs.app do (#2163), plus several axis mapping fixes.
  • New UFO containers: zipped .ufoz (including inside designspaces) and ufoLib2 .ufo.json.
  • Unicode Variation Sequences (cmap format 14) and Unicode 18.
  • The ufo2ft decomposeComponents filter is now honored, including its per-glyph include/exclude list (#2168).
  • Glyphs fidelity: reverse bracket layers, fractional axis rules, smart and corner component fixes, localized static instance names, --glyph-data for custom GlyphData.xml files, and many smaller details where fontc now follows Glyphs.app.
  • --instance NAME builds a single static instance that sits on a master (Glyphs) or source (designspace), like fontmake's -i with an exact name instead of a regex; nothing is interpolated. gftools uses it from 0.10.8.

What's Changed

  • notify-plugin: send client_payload as a JSON object by @anthrotype in #2106
  • Hoist resolve_variable_metric out of fontbe by @cmyr in #2107
  • Fea test variable syntax by @cmyr in #2108
  • [fea-rs] Render diagnostics in DiagnosticSet's Debug impl by @cmyr in #2109
  • [ufo2fontir] Support uservalue in instance locations by @anthrotype in #2110
  • [ufo2fontir] Skip named instances outside the axis ranges by @anthrotype in #2111
  • [testdata] delete a couple lines accidentally pasted from github ui text in mapping.designspace by @anthrotype in #2113
  • [crater] Skip comparison when fontc output unchanged by @cmyr in #2114
  • fea-merge part 1: PendingCompilation by @cmyr in #2115
  • [ci] Update GoogleSans designspace paths after upstream repo reorg by @anthrotype in #2130
  • [fea-rs] Preserve lookupflag across a redundant script statement by @cmyr in #2127
  • [ci] Pin dtolnay/rust-toolchain to a commit on its master branch by @anthrotype in #2131
  • Update fontations by @cmyr in #2132
  • [fontbe] treat a table that fails to pack as an error by @anthrotype in #2133
  • [fea-rs] split a contextual ruleset when no subtable format fits by @anthrotype in #2136
  • [crater] no terminal = no ANSI by @cmyr in #2137
  • [crater] suppress git SHA in name table version / clear cache when otl-normalizer changes by @cmyr in #2138
  • [fontc] drop vergen .idempotent() so the stamped version tracks HEAD by @anthrotype in #2139
  • bump fonttools to 4.65.0, pin glyphsLib<6.14 by @anthrotype in #2140
  • [fontir/fontbe] Support building STAT axis values by @khaledhosny in #2135
  • [fontir/fontbe] Support building avar version 2 from axis mappings by @khaledhosny in #2134
  • fea-merge part 2: basic API and structure by @cmyr in #2116
  • fea-merge part 3: GPOS scaffolding by @cmyr in #2118
  • fea-merge part 4: singlepos by @cmyr in #2119
  • fea-merge part 5 (pair pos) by @cmyr in #2120
  • fea-merge part 6: anchors + cursive pos by @cmyr in #2121
  • fea-merge part 7: mark positioning by @cmyr in #2122
  • fea-merge part 8: GDEF ligature carets by @cmyr in #2123
  • [fea-rs] Match mark classes by their marks, not their names by @cmyr in #2124
  • fea-merge finale: fontbe integration by @cmyr in #2125
  • [crater] Cache ttf even when derived files are missing by @cmyr in #2144
  • [glyphs-reader] Read the Glyphs 2 Hidden axis key by @cmyr in #2145
  • [release] push only the tags cargo-release just created by @anthrotype in #2141
  • fea-rs: single entry point for parsing root and included files by @cmyr in #2147
  • [glyphs2] Better match glyphsLib family name logic by @cmyr in #2146
  • [fea-rs] allow include statements inside table and lookup blocks by @anthrotype in #2143
  • [glyphs-reader] accept named weight and width classes in Glyphs 3 files by @anthrotype in #2148
  • [fea-rs] Canonicalize glyph classes in contextual rules by @cmyr in #2149
  • [crater] Set with_max_len(1) on rayon par iter by @cmyr in #2150
  • [fea-rs] Accept sub <glyph> by [<singleton class>] by @cmyr in #2151
  • [fea-rs] Check whole class before reusing anon SingleSubst by @cmyr in #2153
  • [glyphs] Accept either case of "gasp Table" by @cmyr in #2159
  • [glyphs] Don't assign GDEF classes to color layer glyphs by @cmyr in #2157
  • [glyphs] Sort color glyphs into glyph order like ufo2ft by @cmyr in #2156
  • [glyphs] test propagated anchors with ufo2ft filters by @anthrotype in #2160
  • [glyphs] Propagate anchors regardless of ufo2ft filters by @cmyr in #2155
  • [glyphs] Allow bad outlines in unused non-export glyphs by @cmyr in #2161
  • Generate cmap format 14 for Unicode Variation Sequences by @cmyr in #2158
  • [glyphs] Default unnamed v3 masters to Regular by @cmyr in #2162
  • [fontir] Round sub/sup Y offsets before deriving X offsets by @cmyr in #2152
  • [glyphs] generate STAT axis values from instances, matching glyphsLib >= 6.14 by @anthrotype in #2163
  • [crater] Cache fontmake failures by @cmyr in #2165
  • [ttx_diff] Weight per-font similarity by lines, not chars by @cmyr in #2164
  • [glyphs-reader] Find uniXXXX prod names with only unicodeLegacy by @cmyr in #2167
  • [fea-rs] Support multiple language tags by @schriftgestalt in #2169
  • multi-lang fea + tests by @cmyr in #2170
  • requirements.txt: bump glyphsLib to 6.15.0 by @anthrotype in #2171
  • requirements.txt: bump fonttools to 4.66.0 by @anthrotype in #2172
  • [glyphs] Follow Link Metrics in kernless master skip by @cmyr in #2166
  • [fontir] Honor ufo2ft decomposeComponents filter by @cmyr in #2168
  • [crater] Reuse results file only if every target matches by @cmyr in #2173
  • [crater] Show similarity % excluding failures in html by @cmyr in #2174
  • [kern] Drop kern lookups that no feature references by @cmyr in #2175
  • [fontbe] use Unicode 18 properties by @anthrotype in #2176
  • [fea-rs] Infer GDEF classes from useExtension mark lookups by @cmyr in #2178
  • [fea-rs] Don't split inline ligature rules across lookups by @cmyr in #2179
  • [glyphs] Parse bracket axis rules as floats by @cmyr in #2181
  • [fea-rs] Keep lookup block name across script statements by @cmyr in #2183
  • [fea-rs] Include useExtension lookups in aalt by @cmyr in #2177
  • [marks] Treat any nukta* anchor as a below mark by @cmyr in #2182
  • [glyphs] Accept long names for metric custom params by @cmyr in #2180
  • [colr] Don't emit ClipList for variable fonts by @cmyr in #2185
  • [glyphs] Expand self kerning to brackets only diagonally by @cmyr in #2184
  • [glyphs] keep smart components without pole layers as regular components by @anthrotype in #2186
  • [glyphs] Cleaner bold/italic from name logic by @cmyr in #2187
  • [glyphs] match Glyphs' italic-family STAT labels by @anthrotype in #2188
  • [glyphs] Look up GlyphData by first-listed codepoint by @cmyr in #2190
  • Use designspace substitution rules/bracket layers when classifying glyphs by @cmyr in #2189
  • requirements.txt: bump ufo2ft to 3.9.1 by @anthrotype in #2191
  • requirements.txt: bump fonttools to 4.66.1 by @anthrotype in #2192
  • [glyphs] Zero widths of color layers split from marks by @cmyr in #2193
  • [ttx-diff] Cast virtual master locations to float by @anthrotype in #2194
  • [glyphs] keep COLRv0 color layers from all masters by @anthrotype in #2195
  • [glyphs] support reverse bracket layers by @anthrotype in #2197
  • ci: drop private Google Sans checkout token and fork restriction by @anthrotype in #2200
  • [glyphs] skip anchor propagation for split color glyphs by @anthrotype in #2196
  • Bump softprops/action-gh-release from 3.0.2 to 3.0.3 by @dependabot[bot] in #2198
  • [ci] Update rust-toolchain pins to current v1 by @anthrotype in #2201
  • Update fontations by @cmyr in #2203
  • [fea-rs] Order insert markers by index, not byte offset by @cmyr in #2204
  • [fontdrasil/glyphs2fontir/fontbe] Normalize mapped axes in user direction by @anthrotype in #2206
  • [fea-rs] Sort FeatureTableSubstitution records by feature index by @tomekthewo in #2208
  • [ufo2fontir] Treat empty postscriptNames as absent by @cmyr in #2212
  • Update dependencies by @cmyr in #2213
  • Fea rs first insert marker by @cmyr in #2211
  • [glyphs-reader] Parse glyph unicode values without a line-anchored regex by @tomekthewo in #2209
  • Write a blank vendor ID instead of NONE by @cmyr in #2214
  • [glyphs] Fix instance axis mappings that don't span the masters by @anthrotype in #2215
  • [fontdrasil] Move open corner detection out of fontir by @cmyr in #2222
  • [ufo2fontir] Load UFOs through norad's FontReader by @cmyr in #2216
  • [glyphs] Remap components in COLRv0 palette layers by @cmyr in #2207
  • [glyphs] Test corner components against Glyphs' own output by @cmyr in #2221
  • [glyphs] Keep hints on their shapes past smart components by @cmyr in #2217
  • [crater] Add --no-cache flag by @cmyr in #2225
  • Support zipped UFOs (.ufoz) by @cmyr in #2219
  • Give in-memory FEA sources a path by @cmyr in #2226
  • Corner component placement by @cmyr in #2223
  • make component cycles an error by @anthrotype in #2228
  • [fontir] error instead of panic on inconsistent components by @anthrotype in #2227
  • Update python dependencies (for crater) by @cmyr in #2229
  • [fea-rs] One rule per glyph in contextual multiple sub by @cmyr in #2230
  • [glyphs-reader] Dump v2/v3 test output to temp_dir by @cmyr in #2231
  • [fea-rs] Truncate Glyphs number values by @cmyr in #2236
  • [crater] Update fontmake (python) by @cmyr in #2237
  • [ir] Truncate upem * 1.2 in the typo line gap fallback by @cmyr in #2235
  • [fea-rs] Check warnings in compile tests by @cmyr in #2232
  • [fea-rs] Keep operand order in number value expressions by @cmyr in #2233
  • [fea-rs] Warn on repeated language statements by @cmyr in #2234
  • [crater] Update gftools by @cmyr in #2238
  • Support ufoLib2 JSON UFOs (.ufo.json) by @cmyr in #2239
  • [crater] Update gftools (instancing) by @cmyr in #2240
  • [fontc] ignore head timestamps in the compile-twice-and-compare tests by @anthrotype in #2245
  • [fontbe] error on name records that write-fonts can't encode by @anthrotype in #2247
  • Keep the cause of UFO loading errors by @cmyr in #2248
  • [ufo2fontir] add openTypeNameRecords under their own platform, encoding and language by @anthrotype in #2249
  • bump fonttools to 4.67.0 by @anthrotype in #2255
  • [fontir] Add NameBuilder::add_record for name records with their own ids by @anthrotype in #2252
  • [ttx_diff] Treat .ufoz sources as static by @cmyr in #2256
  • [fontir] Keep every name record at Windows encoding 1 by @anthrotype in #2253
  • [fea-rs] Strip leading BOM from sources by @cmyr in #2257
  • [glyphs] Error on duplicate glyph names by @cmyr in #2258
  • [crater] Show live run status on report by @cmyr in #2259
  • [crater] Tweak status line styling by @cmyr in #2261
  • [glyphs] Default master overwrites instance mapping by @cmyr in #2260
  • [glyphs] apply the static instance's metadata when building a static font by @anthrotype in #2262
  • [crater] Add accepted failures by @cmyr in #2263
  • [crater] Match targets across source updates by @cmyr in #2264
  • [ttx_diff] A bunch of cleanup by @cmyr in #2265
  • [ttx_diff] Report size gaps even when tables match by @cmyr in #2266
  • [crater] Reuse results when fontc binary is unchanged by @cmyr in #2272
  • [crater] Show tested fontc rev in status line by @cmyr in #2271
  • [ttx_diff] don't autohint the fontmake static instance by @anthrotype in #2273
  • Add glyf and gvar support to otl-normalizer by @cmyr in #2267
  • [ttx_diff] Diff glyf and gvar via otl-normalizer by @cmyr in #2268
  • [glyphs] apply the static export's styleMapFamilyName to name ID 1 by @anthrotype in #2274
  • bump glyphsLib to 6.16.1 by @anthrotype in #2275
  • [crater] Measure status elapsed time from last update by @cmyr in #2276
  • [crater] Bump gftools to v0.10.4 by @cmyr in #2277
  • [crater] Reload report when a new run's results are published by @cmyr in #2278
  • [glyphs-reader] trim tags in 'meta Table' custom parameter by @anthrotype in #2279
  • [glyphs] apply a static export's localized names by @anthrotype in #2280
  • [glyphs] handle smart components with missing pole mappings by @anthrotype in #2283
  • [glyphs] keep versionString as the font's property key by @anthrotype in #2282
  • build one static instance export with --export, for Glyphs sources by @anthrotype in #2285
  • bump glyphsLib to 6.16.2 by @anthrotype in #2287
  • [glyphs] add --glyph-data option for custom GlyphData.xml files by @anthrotype in #2288
  • [glyphs] apply alternate layers when building a static font from one master by @anthrotype in #2289
  • [glyphs] build a multi-master source's static export from the master it sits on by @anthrotype in #2290
  • Update fontations by @cmyr in #2291
  • [COLR] compile static COLRv1 paints from UFO sources by @anthrotype in #2292
  • use Python 3.14 in CI, require >=3.11 for ttx-diff by @anthrotype in #2295
  • [ci] install toolchains with rustup directly by @anthrotype in #2296
  • build a designspace instance as a static font with --export by @anthrotype in #2294
  • [crater] Bump gftools to v0.10.5 and recompile requirements by @anthrotype in #2297
  • Add support for variable componets and for generating VARC table by @khaledhosny in #2080
  • add Source::exports and select --export from it in both frontends by @anthrotype in #2298
  • Compile Fontra fonts by @khaledhosny in #2068
  • Bump rustls from 0.23.45 to 0.23.46 by @dependabot[bot] in #2301
  • [ttx-diff] support --export with --compare gftools by @anthrotype in #2299
  • [crater] per-export targets by @cmyr in #2300
  • [crater] Bump gftools to v0.10.6 and recompile requirements by @anthrotype in #2302
  • [glyphs] skip layers without a matching master by @anthrotype in #2303
  • [glyphs-reader] prefer short custom parameter names over their long aliases by @anthrotype in #2304
  • [ufo2fontir] use default source codepoints for static exports by @anthrotype in #2305
  • [glyphs] --export: select the master before validating axis mappings by @anthrotype in #2306
  • [glyphs-reader] default missing versionMajor to 1 by @anthrotype in #2307
  • [fea-rs] Ignore subtable breaks in SinglePos by @cmyr in #2308
  • requirements.txt: bump ufo2ft to 3.10.0 by @anthrotype in #2309
  • Bump zip from 9.0.2 to 9.0.5 by @dependabot[bot] in #2310
  • requirements.txt: bump ufo2ft to 3.11.0 and glyphslib to 6.17.0 by @anthrotype in #2315
  • [glyphs] Escape legacy feature names by @cmyr in #2316
  • requirements.txt: bump glyphslib to 6.17.1 by @anthrotype in #2317
  • [glyphs] Use only first line of legacy feature name note by @cmyr in #2318
  • release.sh: use cargo publish and push each tag on its own by @anthrotype in #2319
  • rename --export to --instance by @anthrotype in #2321
  • release scripts: validate crates by package name by @anthrotype in #2322
  • requirements.txt: bump gftools to 0.10.8 by @anthrotype in #2323
  • drop the --export alias of --instance by @anthrotype in #2324
  • Bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 by @dependabot[bot] in #2314
  • Bump actions/setup-python from 7.0.0 to 7.1.0 by @dependabot[bot] in #2311
  • [ttx_diff] report the .ligcaret.txt path for the ligcaret diff by @anthrotype in #2326
  • bump workspace crate versions for the 2.0.0 release by @anthrotype in #2327
  • fall back to the crate version when git describe is unavailable; bump fontc to 2.0.1 by @anthrotype in #2328

New Contributors

Full Changelog: fontc-v1.0.0...fontc-v2.0.1