Repository navigation
The "/" of Multilanguage, Serif and Rounded is as thick as the other strokes (Discussion #2023) - #2064
Open
mlugo-apx wants to merge 1 commit into
Open
The "/" of Multilanguage, Serif and Rounded is as thick as the other strokes (Discussion #2023)#2064mlugo-apx wants to merge 1 commit into
mlugo-apx wants to merge 1 commit into
Conversation
…strokes (Discussion henmedia#2023) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
For Discussion #2023, the first of the two ways, as you chose there: the slash as thick as the other strokes in the fonts, so texts get it too, with the check on saved designs you asked for below.
Summary
How it is built
GLYPH_REPAIRS(textFonts.ts), in the form of your Rounded "f" (Text with "#" (and "f" in Rounded): silhouette export fails with "Not manifold", and grouping it as a hole can lose letter counters #916): each slash keeps its outer corners, top and bottom and its advance, and its two inner corners move out until the stroke across equals the "l" at half its height. So its box does not change and the outline keeps the same commands, start corner and winding. The slash stands about 5 degrees more upright (6 in Rounded).loadTextFontsrepairs each typeface file once, as it already fills each one once, so the two keep sharing one data object and oneFont(textFonts.test.tschecks that).Saved designs
Saved in a design on main at 247df6c, opened on this branch, each body exported as STL and compared:
On main, ungrouping and grouping again gives the identical STL again, and a text or bin with its texture removed is the same STL as a new one made with the same settings, on main and on this branch alike; so the difference on the branch is the slash. Simplify and Make exact cannot be applied to a text or a bin themselves, only to bodies that already keep the old slash.
So a text or bin that has become a body of its own keeps the old slash until it is built again: for a cut one, ungrouping and grouping again does it, for a textured one removing the texture; a split, hollowed, wrapped or edge-treated one has to be made again.
One thing changes besides the slash. Kerning, on for labels and new texts, measures the room beside a slash from its outline, so a kerned line with a slash gets longer:
A label or a text whose length decides its size gets letters that much smaller: if "1-1/2"" fills its shelf at 3.8 mm in Multilanguage, about 3.78 mm. A label whose capitals were just over 3 mm can fall under them and lose its text (its settings then say so):
1/2eleven times on a 2x1 bin in Rounded, 3.057 mm, ori/ififteen times in Multilanguage, 3.077 mm. If you would rather keep every saved text at its size, the kerning beside a slash could be measured from the old, thin outline instead: no text would move, but the slash would come that much closer to its neighbours.Testing
On ac37f6f, on main at 247df6c.
npm run typechecknpm test(6,871 tests in 718 files) andnpm run test:e2e(1,874 in 222)npm run buildandnpm run exportfontGlyphRepairs.test.ts: each repaired slash as thick as its "l" (to 5%), its box and its corners' order and winding unchanged, every other glyph as it was. Breaking it fails a test for: a slash too thin or too thick, another start corner, reversed winding, a grown box, and a dropped Multilanguage, Serif or Rounded entry; leaving out the per-file repair fails the Stencil check intextFonts.test.ts. Dropping only Stencil's entry passes: the file is repaired under Multilanguage's name, which comes first.Notes
textFonts.ts).scripts/build-japanese-typeface.mjs), Monospace's slash is 0.42 mm, and the backslash is as thin as the old slash in Multilanguage, Serif and Rounded.🤖 Generated with Claude Code