Grimoire native · rendering research · Oct 29 2026 · re-run of 27 Oct

Rune text vs native macOS text,
re-run on current Rune

Same paragraph, font, size, position and macOS reference as the 27 Oct comparison, now against Rune dev (origin/dev b41b6a2), in light mode and in dark mode. One Rune commit changed text rendering: 7f3f64b "Calibrate text weight against CoreText". It turns hinting off, adds a small centred outline emboldening and replaces the coverage exponent. Grimoire picked it up when it moved from the old grimoire-patches branch to Rune dev on 28 Oct. In light mode Rune's text weight now matches macOS on average (ink 0.784 → 0.978 at 2×) and the mean error is down by about a third. Rune's pixels still don't match macOS: about as many pixels are off by more than 8 as before, because Rune spreads the extra weight evenly while macOS dilates outlines in specific directions.

0.784 → 0.978Rune ink ÷ macOS ink, light, 2× (1×: 0.727 → 0.979)
4.92 → 3.20meanabs, light, 2× (1×: 6.60 → 4.49)
7.2% → 7.0%pixels off by >8, light, 2×: almost no change
0.89 → 0.94ink ratio, dark (#e6e6e6 on #1d1e22), 2×

What changed in Rune

The 27 Oct run used Rune's grimoire-patches branch at 45e12e6 (that branch's head on 27 Oct, 11:40; Grimoire built it from the rune-grimoire worktree). That branch came from an older import of Rune and has no common history with today's origin/dev, so I diffed the text code itself (text.rs and text/, shader.wgsl, render.rs, runtime.rs glyph instances, Cargo.lock) between 45e12e6 and dev b41b6a2, and used git log -S/-G on dev to find the commits. Today Grimoire builds against ~/projects/worktrees/rune-dev, branch grimoire-app-dev at f22ad06 (28 Oct). Its text code is identical to b41b6a2's; only Cargo.lock differs.

commitwhateffect on these pixels
7f3f64b (Kit Langton, 22 Oct) "Calibrate text weight against CoreText and reduce phase shimmer"(1) .hint(false) at every scale (was on below 1.5×). (2) embolden(0.1·scale) with offset (−d, −d), so outlines grow 0.1 pt in every direction: ±0.2 px at 2×, ±0.1 px at 1×. It doesn't depend on font size or colour; the dilation goes into the atlas key. (3) glyph_coverage_exponent = 0.35 + (1.15 + 0.2·clamp(scale−1,0,1))·sRGB(luminance), replacing 0.78 + 0.22·sRGB(luminance). For #1d1e22 that is 0.806 → 0.509 (2×) / 0.486 (1×); for #e6e6e6, 0.978 → 1.568 / 1.387. Calibrated with SSIM against CoreText (research/23-text-quality.md).All of the change. Light: ink up 25%, meanabs −35%. Dark: exponent above 1 thins light text and emboldening thickens it; net ink 0.89 → 0.94.
6ec2482 (24 Oct), bb7b37d (25 Oct)Opt-in srgb_blend: gamma-space blending, with glyph exponent 1.0 when on.None: Grimoire doesn't enable it. If it did, light 2× would be chain step 2: meanabs 3.02, ink 0.991.
0352d67, 09f0702, e69aecd, 6f4b5ae, f22ad06Colour emoji path; text scale factor k; rich-text layout refactor (Face, push_glyph, layout_rich_with).None (k = 1; same positions, same quads; the CPU copy reproduces the GPU output).
670c7cb, df055e6trak tracking at point size, explicit optical size.None for Inter (no trak table): glyph x positions identical.
cf07af9Precompiled Metal uber shader (.metallib).None measurable: the GPU output matches the CPU copy.
parley 0.12.0, swash 0.2.10, zeno 0.3.3, skrifa 0.44, wgpu 30.0.1Same versions in both.None. Atlas still R8, unfiltered textureLoad, ¼-px x round, whole-pixel baselines, …UnormSrgb targets, no CAMetalLayer.colorspace.
Grimoire 4ec173a (28 Oct) + headerApp moved to Rune dev; layout now through Rune's TextSystem; a 52 pt doc header now sits above the text.Text box moved from (49, 40) to (49, 92) pt. I shifted the app renders up by 52 pt (104/52 px) so the old crops and macOS references apply unchanged.

Nothing on dev implements macOS's recovered smoothing algorithm (colour-bucketed, ppem-proportional radius, top-only growth, bevelled per-segment translation). The commit's notes say this was deliberate: "Five luminance-keyed atlas copies — Reject for this pass".

Setup

Mode:

Light: see it

#1d1e22 on #fcfcfb. Drag to swipe, Flicker to alternate in place, Zoom for 3× pixels. Images are the text band only (1280×180 px at 2×, 640×90 at 1×).

Where the pixels differ

identicalfirst image has less ink than macOSfirst image has more ink
Rune 27 Oct vs macOS, 2×.
Rune dev vs macOS, 2×: the red halo is mostly gone from sides, but red stays on top edges and blue appears on bottom edges: Rune grows glyphs downward as much as upward, macOS only upward.
Rune 27 Oct vs macOS, 1×.
Rune dev vs macOS, 1×.
Rune's pipeline with sRGB blending, ¼-pt quantisation and macOS's dilation copied, 2×.
Raw rasteriser difference: Rune steps 2–3, no emboldening, vs macOS with smoothing off, 2×.

Light: headline numbers

vs macOS (CoreText, defaults)differing pxoff by >8maxmeanabsRune ink ÷ macOS ink
2×: Rune 27 Oct8.4%7.2%2004.920.784
2×: Rune dev today (GPU)8.4%7.0%1613.200.978
1×: Rune 27 Oct15.1%12.8%1726.600.727
1×: Rune dev today (GPU)15.6%12.6%1264.490.979

Light: factor by factor

Each row changes one more thing in the CPU copy of Rune dev and compares against macOS defaults.

2×

stepoff by >8maxmeanabsink ratiomeanabs
0. Rune dev as shipped (coverage0.509, linear blending, centred 0.2 px emboldening, ¼-px round, no hinting)7.04%1613.200.978
1. no coverage exponent6.66%1893.610.883
2. + blending in sRGB-encoded space, like macOS6.45%1763.020.991
3. + macOS x quantisation (floor to ¼ pt = ½ px)4.27%911.420.991
4. Rune's centred emboldening swapped for macOS's dilation (radius 0.186 px: ±r in x, +2r up, bottom fixed)2.47%660.560.981

1×

stepoff by >8maxmeanabsink ratiomeanabs
0. Rune dev as shipped (coverage0.486, linear blending, centred 0.1 px emboldening, ¼-px round, no hinting)12.56%1264.490.979
1. no coverage exponent12.19%1675.830.782
2. + blending in sRGB-encoded space, like macOS11.32%1263.990.991
3. + macOS x quantisation (floor to ¼ pt = ¼ px)10.17%1002.930.991
4. Rune's centred emboldening swapped for macOS's dilation (radius 0.093 px: ±r in x, +2r up, bottom fixed)8.56%932.390.981

Where the change came from (old Rune → Rune dev, one commit's three parts at a time)

2×:

stepoff by >8maxmeanabsink ratiomeanabs
Rune 27 Oct (CPU copy; matches the old app to ±1)7.22%2004.920.784
+ new coverage exponent (7f3f64b)6.99%1933.980.848
+ centred outline emboldening = Rune dev today (7f3f64b)7.04%1613.200.978

1×:

stepoff by >8maxmeanabsink ratiomeanabs
Rune 27 Oct (CPU copy; matches the old app to ±1)12.81%1726.600.727
+ hinting off at 1× (7f3f64b)12.18%1736.770.709
+ new coverage exponent (7f3f64b)12.54%1455.090.846
+ centred outline emboldening = Rune dev today (7f3f64b)12.56%1264.490.979

Light: smoothing on/off

comparisonoff by >8maxmeanabsink ratio (first ÷ second)
macOS smoothing off vs on, 2×6.50%1393.080.856
Rune 27 Oct vs macOS smoothing off, 2×6.47%1592.840.916
Rune dev vs macOS smoothing off, 2×7.42%1733.471.143
Rune, steps 2–3 with no emboldening, vs macOS smoothing off, 2× (the rasterisers alone)1.50%620.331.000
macOS smoothing off vs on, 1×11.43%632.810.869
Rune 27 Oct vs macOS smoothing off, 1×12.10%1574.880.837
Rune dev vs macOS smoothing off, 1×13.09%1434.861.127
Rune, steps 2–3 with no emboldening, vs macOS smoothing off, 1× (the rasterisers alone)9.49%1122.830.987

Light: zoomed glyphs

8× (2×) or 14× (1×) nearest neighbour. Rows: Rune (or the first image), macOS, then the difference (red = less ink than macOS, blue = more).

"The qui…", Rune 27 Oct vs macOS, 2×.
"The qui…", Rune dev vs macOS, 2×.
Same with macOS behaviour copied into Rune's pipeline.
macOS smoothing off vs on.
"AV To", Rune dev, 2×.
"fi fl ffi", Rune dev, 2×.
"The qui…", Rune dev, 1× (no hinting now).
"AV To", Rune dev, 1×.

Dark: see it

#e6e6e6 on #1d1e22. Drag to swipe, Flicker to alternate in place, Zoom for 3× pixels. Images are the text band only (1280×180 px at 2×, 640×90 at 1×).

Where the pixels differ

identicalfirst image has less ink than macOSfirst image has more ink
Rune 27 Oct vs macOS, 2×.
Rune dev vs macOS, 2×: the red halo is mostly gone from sides, but red stays on top edges and blue appears on bottom edges: Rune grows glyphs downward as much as upward, macOS only upward.
Rune 27 Oct vs macOS, 1×.
Rune dev vs macOS, 1×.
Rune's pipeline with sRGB blending, ¼-pt quantisation and macOS's dilation copied, 2×.
Raw rasteriser difference: Rune steps 2–3, no emboldening, vs macOS with smoothing off, 2×.

Dark: headline numbers

vs macOS (CoreText, defaults)differing pxoff by >8maxmeanabsRune ink ÷ macOS ink
2×: Rune 27 Oct (CPU copy)8.9%7.5%1933.620.890
2×: Rune dev today (GPU)8.7%7.1%1793.410.939
1×: Rune 27 Oct (CPU copy)15.6%11.6%1434.150.918
1×: Rune dev today (GPU)15.9%11.8%1334.070.936

Dark: factor by factor

Each row changes one more thing in the CPU copy of Rune dev and compares against macOS defaults.

2×

stepoff by >8maxmeanabsink ratiomeanabs
0. Rune dev as shipped (coverage1.568, linear blending, centred 0.2 px emboldening, ¼-px round, no hinting)7.09%1793.410.939
1. no coverage exponent7.22%1663.411.012
2. + blending in sRGB-encoded space, like macOS7.40%1793.540.913
3. + macOS x quantisation (floor to ¼ pt = ½ px)6.85%1292.540.913
4. Rune's centred emboldening swapped for macOS's dilation (radius 0.300 (capped) px: ±r in x, +2r up, bottom fixed)3.03%670.690.974

1×

stepoff by >8maxmeanabsink ratiomeanabs
0. Rune dev as shipped (coverage1.387, linear blending, centred 0.1 px emboldening, ¼-px round, no hinting)11.78%1334.070.936
1. no coverage exponent11.70%1244.101.032
2. + blending in sRGB-encoded space, like macOS12.14%1384.670.857
3. + macOS x quantisation (floor to ¼ pt = ¼ px)11.72%1264.050.857
4. Rune's centred emboldening swapped for macOS's dilation (radius 0.213 px: ±r in x, +2r up, bottom fixed)10.10%1072.840.987

Where the change came from (old Rune → Rune dev, one commit's three parts at a time)

2×:

stepoff by >8maxmeanabsink ratiomeanabs
Rune 27 Oct (CPU copy; matches the old app to ±1)7.51%1933.620.890
+ new coverage exponent (7f3f64b)7.21%1994.340.813
+ centred outline emboldening = Rune dev today (7f3f64b)7.09%1793.410.939

1×:

stepoff by >8maxmeanabsink ratiomeanabs
Rune 27 Oct (CPU copy; matches the old app to ±1)11.63%1434.150.918
+ hinting off at 1× (7f3f64b)11.95%1374.130.920
+ new coverage exponent (7f3f64b)12.05%1514.960.820
+ centred outline emboldening = Rune dev today (7f3f64b)11.78%1334.070.936

Dark: smoothing on/off

comparisonoff by >8maxmeanabsink ratio (first ÷ second)
macOS smoothing off vs on, 2×7.62%1714.480.786
Rune 27 Oct vs macOS smoothing off, 2×6.32%1542.981.132
Rune dev vs macOS smoothing off, 2×6.57%1733.591.194
Rune, steps 2–3 with no emboldening, vs macOS smoothing off, 2× (the rasterisers alone)1.35%570.321.004
macOS smoothing off vs on, 1×13.28%1305.670.746
Rune 27 Oct vs macOS smoothing off, 1×11.52%1494.961.232
Rune dev vs macOS smoothing off, 1×12.68%1475.191.255
Rune, steps 2–3 with no emboldening, vs macOS smoothing off, 1× (the rasterisers alone)9.19%1022.560.995

Dark: zoomed glyphs

8× (2×) or 14× (1×) nearest neighbour. Rows: Rune (or the first image), macOS, then the difference (red = less ink than macOS, blue = more).

"The qui…", Rune 27 Oct vs macOS, 2×.
"The qui…", Rune dev vs macOS, 2×.
Same with macOS behaviour copied into Rune's pipeline.
macOS smoothing off vs on.
"AV To", Rune dev, 2×.
"fi fl ffi", Rune dev, 2×.
"The qui…", Rune dev, 1× (no hinting now).
"AV To", Rune dev, 1×.

The q = 1 pair (#fcfcfb on #1d1e22), headline only

differing>8maxmeanabsink ratio
2×: Rune 27 Oct (CPU copy)8.9%7.6%2154.020.889
2×: Rune dev8.7%7.4%2003.830.930
1×: Rune 27 Oct (CPU copy)16.2%12.6%1725.120.877
1×: Rune dev16.5%12.8%1635.110.881

The whiter the ink, the more macOS dilates and the higher Rune's exponent (1.68 at 2×), so Rune falls further behind: ink 0.93 at 2× and 0.88 at 1×.

Why dark mode behaves differently

Old vs new, number by number (light mode, the only mode on 27 Oct)

measurement27 Oct29 Octwhy
Layout: max |Δx| parley vs CoreText (2×, 1×)0.0000 px0.0000 pxUnchanged. Same glyph IDs, kerning, three line breaks, baseline 117 px. Rune's trak tracking (670c7cb, df055e6) and the new rich-layout path don't touch Inter (no trak table).
2× differing px8.4%8.4%About the same: the new pipeline still touches every edge pixel.
2× off by >87.22%7.04%Barely moved. Weight was restored mostly by a coverage curve, which darkens edge greys; it doesn't move edges where macOS moves them (see the heatmaps).
2× max200161Lower: the 0.2 px centred emboldening fills the outer rows macOS dilates into.
2× meanabs4.923.20−35%. Exponent 0.806 → 0.509 plus emboldening (7f3f64b).
2× ink ratio0.7840.978Almost matched on average (7f3f64b calibrated weight against CoreText).
1× differing px15.1%15.6%Slightly up (+0.5 pt): a few more faint edge pixels differ by small amounts.
1× off by >812.8%12.6%Hinting off (−0.6 pt) is offset by the exponent's darker edges.
1× max172126Hinting no longer moves stems by whole pixels.
1× meanabs6.604.49−32%.
1× ink ratio0.7270.979Almost matched on average.
Chain step 1 (no exponent), 2× meanabs / ink5.44 / 0.7563.61 / 0.883Rune's emboldening alone adds 17% ink; macOS's smoothing adds 17% too (smoothing on vs off ink 0.856), but in different places.
Chain step 2 (+ sRGB blending), 2× meanabs / ink3.78 / 0.8563.02 / 0.991With sRGB blending Rune's total ink now matches; this is what Rune's opt-in srgb_blend (6ec2482) would give Grimoire, which doesn't turn it on.
Chain step 3 (+ ¼-pt quantisation), 2× meanabs / max3.12 / 1371.42 / 91Quantisation now matters more: with the weight right, position is the next biggest error. Still not matched in Rune (¼-px round).
Chain step 4 (macOS dilation copied), 2× meanabs / max0.55 / 660.56 / 66The same floor: steps 2–4 replace everything that changed, so the endpoint is the same. (0.565 here uses the spec's exact radius 0.1856; with the old 0.1875 it is 0.548, as on 27 Oct.)
1× chain end (step 4)8.6% / 2.408.6% / 2.39Same floor; dominated by CoreGraphics' small-size y autohinter (the old "integer-baseline quirk").
Smoothing on vs off in macOS, 2× >8 / ink6.5% / +17%6.5% / +17%macOS reference is byte-identical to 27 Oct (re-rendered and diffed).
Rasterisers alone (smoothing off, steps 2–3), 2×1.50% / 61 / 0.331.50% / 62 / 0.33Unchanged (swash 0.2.10, zeno 0.3.3 in both).
Corpus masks vs smoothed CG, MAE / max (old Rune recomputed on the spec corpus)12.77 / 2558.34 / 207Better, but nowhere near the recovered model's 0.11 / 3: Rune doesn't implement macOS's dilation.

Dark mode has no 27 Oct numbers. The "Rune 27 Oct" rows in the dark section come from the CPU copy run with the old settings (exponent 0.78 + 0.22·sRGB(L), no emboldening, hinting below 1.5×). In light mode that copy reproduces the old app to ±1.

The font-smoothing spec's corpus: does Rune now implement the recovered dilation?

No. Rune dev emboldens by a fixed 0.1 pt, centred in both axes, through swash's point emboldening (FreeType-style, round corners, curves offset). macOS uses a radius of ppem × (0.0058 + 0.01·q), capped at 0.3 px and keyed by the ink's luminance bucket. It translates each monotonic segment by (±r in x, 0 or +2r in y) with bevel joins, so tops grow by 2r and bottoms not at all. It also runs a y autohinter at 7–18 ppem. Below, each of the spec's masks is re-rendered the way Rune would (swash at the case's ppem, no hinting, embolden(0.1·scale), offset (phase − d)) and compared with CoreGraphics. The Inter cases (9,600 of 14,400; Helvetica has no Rune-side font) use the same pixel bounds as the spec, plus any extra Rune ink.

masks vs smoothed CoreGraphics (Inter Regular + Bold)casesMAE /255max>1>8ink ratio
Recovered macOS model, Swash design-unit outlines (27 Oct spec)9,6000.1130.7%0.0%≈1.000
Rune 27 Oct (no emboldening; hinted at 1×)9,60012.7725522.3%19.5%0.886
Plain swash, no hinting, no emboldening9,60012.2422521.8%19.0%0.880
Rune dev (centred embolden 0.1 × scale px, no hinting)9,6008.3420720.9%17.4%0.945
Rune dev, 2× cases only (0.2 px)4,8007.4519220.6%17.0%0.966
Rune dev, 1× cases only (0.1 px)4,8009.2220721.2%17.8%0.923
Rune dev, bucket 0 (dark ink) only1,9207.1320620.4%16.4%0.966
Rune dev, bucket 4 (white ink) only1,9209.2820721.4%18.2%0.930
Rune dev, effective alpha after its exponent + linear blend (#1d1e22/#fcfcfb and #e6e6e6/#1d1e22)3,8407.7320220.8%17.3%0.959
Rune 27 Oct, effective alpha, same two pairs3,84012.1825522.4%19.8%0.901
Plain swash vs CG with smoothing off (sanity check: placement is right)9,6001.3918410.3%5.5%1.002

By size (all scales and buckets), 27 Oct vs dev MAE (/255) and dev's ink ratio:

['', '', '', '
ppem8101214161824324872
Rune 27 Oct MAE14.914.614.916.216.118.319.916.613.19.4
Rune dev MAE8.89.48.99.19.610.411.210.88.96.6
Rune dev ink ratio1.091.041.000.980.950.940.920.920.930.95
']
|error| distribution012–34–89–1617–3233–6465+
Rune 27 Oct76.9%0.8%1.0%1.7%2.1%3.4%5.3%8.7%
Rune dev78.3%0.7%1.2%2.3%2.7%5.2%5.4%4.1%

Does Rune now match native macOS text?

Not pixel for pixel, but much closer in weight. In light mode Rune's average text weight is now within 2% of macOS at both scales (was 22–27% light), and mean error is down a third. Layout was already identical and still is. In dark mode the gain is small (ink 0.89 → 0.94 at 2×; 1×: 0.92 → 0.94). Per-pixel agreement barely changed: about 7% (2×) and 12% (1×) of band pixels are still off by more than 8. That is because 7f3f64b gets its weight from a coverage curve plus an even, colour-blind emboldening. macOS grows outlines upward and sideways by a colour- and size-dependent radius.
source27 Oct29 Octto match
Layoutidenticalidentical—
Hinting at 1×Rune hintedoff, like macOSdone (7f3f64b)
Overall weight0.78 / 0.730.98 light, 0.94 darkright on average via the exponent; per-pixel shape still differs
Smoothing dilationnone0.1 pt centred, every colour and sizeport the spec: radius = min(ppem·(0.0058+0.01q), 0.3), top-only y growth, luminance buckets in the atlas key. Light step 3 → 4: meanabs 1.42 → 0.57; dark 2.55 → 0.69
Blending spacelinear + exponentlinear + exponent (srgb_blend exists, off)turn on srgb_blend in Grimoire (exponent becomes 1)
x quantisation¼-px round¼-px roundfloor to ¼ pt. Now the second-biggest factor: light 2× meanabs 3.02 → 1.42, max 176 → 91
Small-size y autohinter (1×)——in the spec (§3); not in Rune
Scan conversion≤3/255 once flattening matchesunchangedthe spec's CG flattening tolerances; fixed-point scan conversion for the last 3 levels

With sRGB blending, ¼-pt quantisation and macOS's dilation copied, Rune's pipeline reaches meanabs 0.57 (light 2×) and 0.69 (dark 2×). The macOS model from the font-smoothing study would take the mask error to ≤3/255.

Files