* Render: draw on-screen text like macOS, on whole pixels
Pages looked lighter and thinner than in Word and other Mac apps:
- macOS thickens glyphs a little when it draws text on screen (font
smoothing). RenderOptions::text_darkening strokes each outline by the
amount macOS uses (from Pathfinder's measurements: 1.21% of the pixel
size, 1.25x that vertically, capped at 0.3 px, none past 72 ppem). The
editor turns it on for on-screen pages on macOS; PDF/PNG exports and
other platforms are unchanged.
- Page textures were drawn at fractional positions after scrolling, so
every glyph was resampled and blurred. They now land on whole device
pixels at their own size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Merge follow-ups: page textures use #165's texel alignment; clippy as_chunks in a test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: ssamstudio <267867645+ssamstudio@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
View › Switch Modes (and File › Options › Dark page) shows the page as dark
grey (80% black, #333333) with every document colour's lightness inverted
and its hue kept, so black text turns white and dark-blue headings light
blue. Pictures are untouched and the caret turns white. Screen only: saving,
printing and PDFs are unchanged. The setting is remembered between runs.
Refs #185.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- body on a titlePg first page now starts below the first-page header
- decode tiff pictures
- fade images through an opacity layer; vello_cpu panics on image sampler alpha
Clean-room foundations for WordCraft: Arc-shared document model with
paragraph/run editing, styles, lists, sections and tables; Word-style
font substitution; first-fit line breaking with tabs, lists, alignment,
pagination, tables, headers/footers and hit testing; vello_cpu page
rasteriser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>