Singleton kerning class
Audit code: kerning-class-singleton
Definition
A kerning class has exactly one member. Classes are meant to group glyphs that share kerning behavior — a singleton class is identical to a direct pair and just adds a layer to navigate. Either expand it (e.g. visually-similar glyphs to share the value) or replace it with a direct pair on the spacing tab.
How Patens surfaces this
The Patens audit module checks for kerning-class-singleton across five teaching surfaces: the edit-panel inline issue list, the
project-wide audit page, the release pre-flight check, the family hub,
and the home-page project tile. Every surface shows the same plain-English
explanation and links back to this page. This rule is detection-only — there's no automatic fix because the
correction is design-dependent (it requires a judgment call about the
glyph's intended shape or the font's intended behaviour). The audit
message links to the specific glyph or field that needs attention.
Run this check yourself
Patens runs every audit rule live as you draw — including this one.
The editor (in private alpha) shows kerning-class-singleton firing on real
glyphs, or check your own work from the CLI:
npx patens audit your-project.font.jsonRelated rules in Kerning classes
class-emptyEmpty kerning classclass-missing-memberClass member missing from projectclass-name-formatKerning class name missing "@" prefixkerning-no-classesMany pairs but no classespair-missing-glyphKerning pair references missing glyphpair-orphan-classKerning pair references undefined classsidebearings-no-classesNo sidebearing classes