Skip to content

v0.52.5 — raster backend device scale + anchored text fix

Latest

Choose a tag to compare

@kolkov kolkov released this 25 Aug 21:22
· 2 commits to main since this release
9dd168c

Fixed

  • Raster backend device scale preservedFillRect, setPath, SetClip, SetTransform called ctx.Identity() which reset Scale(2,2). At 2x, content rendered in top-left quadrant only (25% coverage). Fix: applyDeviceScale() replaces Identity() (Skia fInitialCTM pattern).

  • Recording DrawStringAnchored anchor offsetRecorder.DrawStringAnchored ignored ax/ay entirely. Right-aligned text extended past position instead of ending at it. Fix: anchor offset computed at record time using text.Measure + face metrics. Pixel-perfect parity with Context.DrawStringAnchored verified.