Skip to content

Software rasterizer: filled paths to a bitmap and PNG #95

Closed

Description

@michaelstonis

Parent

#86 → #33 Spec: Broadside v1

What to build

The software rasterizer replays a display list with a scanline filler and analytic anti-aliasing, non-zero and even-odd rules, solid colour converted through colour management, into premultiplied BGRA8 in a caller-provided or pooled buffer, honouring scale or DPI, page rotation, CropBox and UserUnit. A PNG encoder writes the result. This is the first end-to-end Render.

Spec clauses

ISO 32000-2 §8.5.3, §10.7; spec story 11

Acceptance criteria

  • empty-page.pdf renders white at 72 and 150 DPI with the CropBox size; new corpus file paths-fill-rules.pdf (non-zero and even-odd stars, curves, nested subpaths) matches its reviewed snapshot.
  • New corpus file page-rotation.pdf (Rotate 90, 180, 270 and UserUnit 2) renders with the correct orientation and size.
  • The PNG output round-trips its pixels exactly through an independent PNG decoder in the test tooling.
  • Replay allocates nothing per scanline (rasterizer benchmark with allocation assertion).
  • Runs under a trimmed, AOT-compiled test host with no native dependency.

Blocked by

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Activity

  1. added
    taskUnit of work from the task template
    ready-for-agentTriaged: an agent can pick this up without further clarification
    on Oct 10, 2026
  2. added a commit that references this issue on Oct 12, 2026
  3. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 12, 2026
  4. michaelstonis commented on Oct 16, 2026

    @michaelstonis
    OwnerAuthor

    Done: implemented, tested and merged into the integration branch spec/33-broadside-v1 (full gate green). It reaches main with PR #277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

integratedMerged into the spec integration branch; closes when the integration PR mergesphase:3Phase 3ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task templatetrack:3B-software-rasterizerTrack 3B-software-rasterizer

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions