From 0dba3afea9a371bc34c957654cca464a78f6402c Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 3 Nov 2026 21:38:46 -0800 Subject: [PATCH] Docs: the 1 pt default stroke weight on type is in the type's own units docs/mcp.md says that the default weight text.setStyle and text.setRangeStyle give an unweighted stroke is in the type's own units, so scaled type draws it wider, while strokeWidth and strokeOptions lengths are in document points. --- docs/mcp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mcp.md b/docs/mcp.md index 864a1af92..5fab5134a 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -2405,7 +2405,7 @@ and weight of the characters of each object given (without `start` and `end`: al one undo step; `strokeWidth` is in document points, as `stroke.set` gives the weight of scaled type. A `stroke` color without `strokeWidth` gives characters that have no stroke weight 1 pt, as `paint.setStroke` does. `text.setRangeStyle` does the same for its range, and its `strokeWidth` and `strokeOptions` lengths are in document -points too. +points too. The 1 pt default of both commands is in the type's own units, so on type scaled to 200% it draws 2 pt wide. `align: "inside"|"outside"` keeps the characters' stroke on that side of the glyph outlines, drawn at twice the weight and clipped, while the type stays editable (beyond Illustrator); SVG export writes the text live and that stroke as glyph outlines over it. `inspect_document` reports each object's stroke as `strokeOptions` (type: its first