Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 4.20.0
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher_setup.exe 2026-09-11 69.3 MB
OpenPublisher.deb 2026-09-11 96.8 MB
OpenPublisher.AppImage 2026-09-11 125.8 MB
OpenPublisher_Portable.exe 2026-09-11 74.8 MB
OpenPublisher.dmg 2026-09-11 108.1 MB
OpenPublisher.rpm 2026-09-11 128.2 MB
4.20.0_ Crisp Margin Guides at All Zoom Levels source code.tar.gz 2026-09-11 21.4 MB
4.20.0_ Crisp Margin Guides at All Zoom Levels source code.zip 2026-09-11 21.7 MB
README.md 2026-09-11 3.7 kB
Totals: 9 Items   646.2 MB 0

🚀 Summary

This update resolves a Chromium-specific rendering issue where the page margin guide lines (shown via Margins in the toolbar) would blur or become invisible when zoomed out. Safari was unaffected. The margin guides now remain sharp and clearly visible at every zoom level, stay perfectly locked to the page during fast panning and window resizing, and automatically match the active UI theme colour.

🛠️ Enhancements and Fixes

Root Cause:

The page canvas (#paper) is zoomed using transform: scale(z). When Chromium encounters a CSS transform on an element, it rasterises the entire element subtree into a GPU texture and then bilinearly downsamples that texture to the target size. Any fine detail below roughly 1.5 physical pixels - such as a 1px dotted line at 60% zoom - gets blurred away during this downsampling step.

Fix 1 - Viewport Overlay:

The margin guide is now rendered as #margin-guide-overlay, a position:fixed direct child of <body>. Because it sits outside #paper entirely, it is never included in the scale transform compositor layer. It renders at native device-pixel resolution on every frame, making the dotted margin line permanently crisp at every zoom level.

window.syncMarginGuideOverlay() positions the overlay using paper.getBoundingClientRect() which already accounts for the CSS scale transform, giving exact window coordinates. The overlay reads state.margins for accurate non-uniform margin support (Normal, Narrow, Wide, etc).

The original .margin-guides div is kept in the DOM with opacity:0 so all existing code that reads or checks it continues to work unchanged.

Fix 2 - requestAnimationFrame Loop:

Rather than relying on discrete scroll, resize, and zoom events (which miss frames during fast panning and fire before layout settles on resize), the overlay is repositioned inside a continuous requestAnimationFrame loop. This is one getBoundingClientRect read and four style property writes per frame - negligible cost - and guarantees the overlay is always pixel-perfectly locked to the paper regardless of how fast the canvas is panned or the window resized.

Fix 3 - Theme-Reactive Colour:

The overlay border colour reads --ui-theme-color from document.documentElement on every frame. Because applyTheme() updates that CSS variable, the dot colour automatically matches the active UI theme with zero additional hooks. Switching from Publisher/Classic Teal to Word Blue, Sunset Orange, or any other theme updates the margin guide colour instantly.

✅ Checklist Completed

  • [x] canvas/canvas.js - IIFE creates #margin-guide-overlay as a position:fixed body element at boot; setZoom() calls syncMarginGuideOverlay(); window.syncMarginGuideOverlay() positions overlay using getBoundingClientRect() and state.margins; rAF loop runs continuously for zero-lag tracking; theme colour read from --ui-theme-color on every frame
  • [x] style.css - .margin-guides given opacity:0 to suppress the blurry in-paper version; border colour updated to var(--ui-theme-color, #008080)
  • [x] layout/document.js - toggleMargins() and setMarginPreset() both call syncMarginGuideOverlay() after updating state
  • [x] core/boot.js - Viewport scroll and window resize listeners updated to call syncMarginGuideOverlay() (redundant given the rAF loop, but kept as a lightweight fallback)
  • [x] io/publisher-file-loader.js - Calls syncMarginGuideOverlay() after a document loads from file

v420 Version 4.20.0 - Open Publisher

Source: README.md, updated 2026-09-11