@motion-script/core / TEXT_SHAPING_KEYS
Variable: TEXT_SHAPING_KEYS
constTEXT_SHAPING_KEYS: readonly ["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","lineHeight","textAlign"]
Defined in: runtime/builtin-context.ts:59
The subset of TEXT_STYLE_KEYS describing how text is shaped rather
than how it is painted — the keys a raw Graphics text/richText op can
inherit from RenderContext.defaultTextStyle.
fill/stroke/shadow are deliberately absent. In a Graphics those are
separate, group-scoped ops: .text(…).rect(…).fill('red') paints both
shapes with one fill, and a shape with no paint op after it draws nothing at
all. There is no per-shape paint slot to default into, and synthesising a
fill op for a text op would silently change which shapes the group's paint
covers. A Text/RichText node still inherits all ten keys, through the
context channel (applyTextDefaults), because it owns its own paint.