Code-driven user filters
As a font grows, browsing every glyph by hand is a poor way to do targeted QA. Filters let Overview show exactly the subset you care about, including custom Python loaded from your Filters folder.
Built-in filters cover common cases. Custom filters are Python files in the settings folder in Counterpunch/Filters. Apply a built-in filter first so you can see the list change, then try a custom script.
Categories sorts glyphs by their Unicode category into Letters, Modifiers (spacing accents such as ˆ), Marks, Figures, Punctuation, Symbols and Spaces & Controls. Only the categories that the font uses are shown. Glyphs such as a.sc count with their base glyph a. No Category collects the glyphs that Counterpunch’s glyph data doesn’t know, such as many Arabic dot marks and ligatures.
Writing Scripts has a filter for each writing script the font uses, such as Arabic, Latin or Devanagari. It follows Unicode’s list of the writing scripts each character is used in, so Arabic also shows the Arabic digits, marks, comma and tatweel. Common collects characters all writing scripts share, such as the space and 0–9. Glyphs that Counterpunch’s glyph data doesn’t know are sorted by their name suffix: lam_alef-ar is Arabic.
Click a filter to show only its glyphs. Shift-click or Cmd/Ctrl-click another filter to combine the two, and again to remove it. Filters in Categories add up, and so do those in Writing Scripts: Letters and Marks show both. Across sections they narrow the result: Arabic and Figures show the Arabic digits. All other filters narrow the result: Letters and Auto QA Issues show only letters with warnings. The filter you clicked last gives the tiles their colors and fills the group legend. The legend lists groups alphabetically, unless the filter sets its own order with GROUP_ORDER.
A filter only classifies glyphs. It must not edit the font. If a filter errors, read the first line of the message, check syntax and the expected API, fix one thing, and run it again.
The contract for writing a filter is in Writing glyph overview filters. Python setup is in Python in Counterpunch. Recovery notes are in Common problems.