You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(renderer): keep text glyphs isotropic under non-uniform group scale
When an OOXML group has `ext` differing from `chExt`, the group
applies a non-uniform scale to its descendants. PowerPoint stretches
the shape frame but keeps text glyphs isotropic; pagus was
propagating the scale into each shape's <foreignObject>, horizontally
stretching the text.
Thread a cumulative `AccumScale` from `renderGroup` down through
`renderElement` into shape, text, and table renderers. When the
accumulated scale is non-uniform, wrap the foreignObject in an
inverse scale of `min(Sx,Sy)/Sx, min(Sx,Sy)/Sy` and expand its
intrinsic width/height by the reciprocal so the compensated box
still fills the frame. Uniform / identity scale is a no-op.
Refs #20
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments