Repository navigation
Add ss11: tabular zero without slash - #147
Open
simon-tradeify wants to merge 1 commit into
Open
simon-tradeify wants to merge 1 commit into
simon-tradeify wants to merge 1 commit into
Conversation
Adds zero.tf.ss11, a tabular zero built from the same _zero.tf.base component as zero.tf (identical widths, alignment and component setup on all 24 masters) with the slash component removed. Registered in the glyph order, the @ALL class (so it receives the opsz tracking in kern), aalt, and a new labelled ss11 feature (sub zero.tf by zero.tf.ss11). Mirrors how zero.tf.ss08 is constructed and the existing slashless zero in Mona Sans Mono (ss10). Font binaries not re-exported.
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
GSUB ordering, opsz positioning, and component metrics require broader review across the variable design space, since the adjusted fontmake build does not validate their interactions in the native Glyphs.app release exporter.
No open issues 🎉
What changed in this PR
Adds ss11 to Mona Sans for a slashless tabular zero, allowing financial and data interfaces to use plain zeros with tabular alignment. This is a source-only change; font binaries are not re-exported.
Changes:
- Adds a slashless zero across all 24 masters, reusing
_zero.tf.baseand preserving existing metrics. - Registers
ss11and includes the new glyph in optical-size positioning and glyph ordering. - Documents the eleventh stylistic set and its use with
tnum.
| File | Description |
|---|---|
sources/MonaSans.glyphspackage/order.plist |
Places the new glyph after zero.tf.ss08. |
sources/MonaSans.glyphspackage/glyphs/zero.tf.ss11.glyph |
Defines the slashless tabular zero across all masters. |
sources/MonaSans.glyphspackage/fontinfo.plist |
Adds the substitution, feature label, aalt reference, and @All membership. |
README.md |
Updates the stylistic-set count and documents ss11. |
Review effort: Balanced (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds ss11, a tabular zero without a slash.
The problem
Today, turning on
tnumalways gives a marked zero: slashed by default, or a straight bar withss08.This marking is useful in code and IDs, where
0has to be told apart fromO.However, in trading and financial data UIs (prices, trading interfaces, balances, tables), there's no often no need for it as there's less risk to confuse
Owith zero.Marking or slashing
0adds noise, and it makes tabular figures look different from the same numbers set proportionally. This set lets people use tabular alignment with a plain zero:Mona Sans Mono already offers the same option as
ss10("Zero no slash").How
zero.tfis already built from two components,_zero.tf.baseand_zero.tf.slash. The new glyphzero.tf.ss11iszero.tfwith the slash component removed. On all 24 masters it has the same layers,_zero.tf.basereference, alignment flags, widths and metric keys, and it keeps the glyph-levelKernOnSpecialSpacingsetting. It is built the same way aszero.tf.ss08. Any future change to_zero.tf.baseflows through to all three zeros.Changes:
glyphs/zero.tf.ss11.glyph: new glyph. It leaves out the copied background (which contains the slashed outline) and the per-layer manual hints, which point at shape indices of the removed slash.fontinfo.plist:zero.tf.ss11to the@Allclass, so it gets the opsz-dependentpos @Alladjustment exactly like the other figures;feature ss11;toaalt;ss11feature (sub zero.tf by zero.tf.ss11;) labelled "Tabular zero without slash".order.plist: places the new glyph afterzero.tf.ss08.README.md: adds a row to the stylistic sets table. A sample image still needs to be added.Font binaries are not re-exported in this PR, since the release exports come from Glyphs.app.
Verification
I compiled a test variable font from the source with fontmake/glyphsLib and checked it with HarfBuzz at 2,430 locations (9 wdth × 15 wght × 9 opsz × 2 ital). At every location:
tnumgiveszero.tf, andtnum+ss11giveszero.tf.ss11;ss11alone leaves the proportionalzerounchanged;zero.tf, and digit-string spacing is unchanged;zero.tf.ss11is exactly the outer and inner contours ofzero.tf, without the slash contour.The test build's
zero.tfadvances also match the shippedMonaSansVF[wdth,wght,opsz,ital].ttfat all 16 corners of the design space. (The test build needed scratch-only adjustments to the opsz axis map, duplicate brace locations and the Glyphs-specific#ifdef VARIABLE/(opsz:20)feature syntax to compile outside Glyphs.app. None of that is part of this PR.)Notes for review
ss11is the next free set in Mona Sans. In Mona Sans Mono,ss11is "No serifs" and the slashless zero isss10. Happy to renumber if you prefer something else.ss08wins (lookup order), as you would expect from the automatic feature code. I didn't add azero.tf.ss08 → zero.tf.ss11rule, so the feature can stay automatic..tffigures don't share one advance width across parts of the roman design space in the shipped VF. I'll file that separately, since it's independent of this change.