From 5a8f60e3b7a0073f91d8a156469044050a86e354 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 27 Nov 2026 12:25:01 -0800 Subject: [PATCH 1/2] Retype: docs say which font a shape that several fonts match takes docs/mcp.md said a near-matched shape becomes the glyph it is closest to. The command sets every shape in the font that the most selected shapes match, and among fonts that as many shapes match, in the one whose glyphs fit them closest in all (crates/engine/src/cmd/retype.rs, the face votes before the lines are built), so a closer glyph in another font is not used. The paragraph now says so. --- docs/mcp.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/mcp.md b/docs/mcp.md index 1bbe49574d..4a05e50c26 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -12466,12 +12466,14 @@ glyph. `object.expand` outlines type with this command, so Fill and Stroke expand those paths' gradients, patterns and strokes. `type.retype` (Type › Retype) turns outlined glyphs back into point text. By default a shape must be exactly a glyph of -an available font. With `tolerance` (0 to 0.05), a shape of at most 8 contours that is no glyph exactly becomes the -glyph it is closest to when its leftover distance from that glyph, relative to the shape's outline spread (the root +an available font. With `tolerance` (0 to 0.05), a shape of at most 8 contours that is no glyph exactly becomes a +glyph it is close to when its leftover distance from that glyph, relative to the shape's outline spread (the root mean square distance of its sampled outline points from their center), is at most the tolerance: an outline simplified, a curve split in two, or contours in another order, start or direction. The tolerance -and this measure are VectorCraft's own. A near-matched glyph may differ from its line by the tolerance in size, turn -and place; an exact glyph keeps the exact limits unless the line's first glyph, whose size and turn the line takes, is +and this measure are VectorCraft's own. When glyphs of several fonts match, exactly or nearly, each shape is set in +the font that the most selected shapes match, and among fonts that as many shapes match, in the one whose glyphs fit +those shapes closest in all, even when another font has a glyph closer to that one shape. A near-matched glyph may +differ from its line by the tolerance in size, turn and place; an exact glyph keeps the exact limits unless the line's first glyph, whose size and turn the line takes, is a near match. The line also splits before a near-matched glyph, or a glyph of a line whose first glyph is one, that the type would draw further from its shape than the tolerance by the same measure (its own leftover distance together with the change of size and turn) or with its center further away than its origin may be. Each entry of `fonts` in the result has a `score`, from 1 when every glyph of the line is exact down to 0 From f015ccbf5113f47298eccf207a4e3bc700a8f668 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 27 Nov 2026 13:42:35 -0800 Subject: [PATCH 2/2] Retype: docs say which font a shape the winning font does not match takes The font that the most selected shapes match is chosen per shape, among the fonts that shape matches (crates/engine/src/cmd/retype.rs, `ranked` over the part's own matches). A shape with no match in that font is set in the first of its own fonts in the same order, so one selection can become type in several fonts. The paragraph now says so. --- docs/mcp.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/mcp.md b/docs/mcp.md index 4a05e50c26..9d8c3a2120 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -12471,8 +12471,10 @@ glyph it is close to when its leftover distance from that glyph, relative to the mean square distance of its sampled outline points from their center), is at most the tolerance: an outline simplified, a curve split in two, or contours in another order, start or direction. The tolerance and this measure are VectorCraft's own. When glyphs of several fonts match, exactly or nearly, each shape is set in -the font that the most selected shapes match, and among fonts that as many shapes match, in the one whose glyphs fit -those shapes closest in all, even when another font has a glyph closer to that one shape. A near-matched glyph may +the font, of those it matches, that the most selected shapes match, and among fonts that as many shapes match, in the +one whose glyphs fit those shapes closest in all, even when another font has a glyph closer to that one shape. A shape +that has no match in the font most shapes match is set in the first of its own fonts in that order, so one selection +can become type in several fonts. A near-matched glyph may differ from its line by the tolerance in size, turn and place; an exact glyph keeps the exact limits unless the line's first glyph, whose size and turn the line takes, is a near match. The line also splits before a near-matched glyph, or a glyph of a line whose first glyph is one, that the type would draw further from its shape than the tolerance by the same measure (its own leftover distance together