Documentation
¶
Overview ¶
Command repro1086 drives the pre-rebrand tracker #1086 aligned-oversized-container scene on a real window (WebGPU/Metal by default) so the anchor point can be eyeballed against the software golden (hack/repro1086 TestSoftwareGolden). With the pre-rebrand tracker #1086 fix the scaled glyphs pivot on the text-box origin (they stay left, matching software); a pre-fix draw.go shifts center/trailing glyphs right of the magenta guide.
Package main hosts the pre-rebrand tracker #1086 repro scene: a Transform-scaled canvas.Text laid out center-aligned inside a container that is *wider and taller* than the text's natural content, next to reference markers. pre-rebrand tracker #1086 is the residual gap left by pre-rebrand tracker #960: drawText shifts pos for alignment *before* anchoring, so the scale used to pivot on the alignment-shifted glyph position rather than the text-box origin. This scene makes that offset visible on a real GPU.
BuildAlignedScene is shared by the software-golden test and the on-GPU main so the software reference and the GPU screenshot depict the same geometry; with the pre-rebrand tracker #1086 fix they must coincide, and a pre-fix draw.go visibly shifts the scaled glyphs to the right of the software reference.