Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.10.3
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher5-i386-windowsXP.exe 2026-10-18 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-10-18 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-18 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-18 233.1 MB
openpublisher5_amd64-linux.run 2026-10-18 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-18 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-18 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-18 156.2 MB
5.10.3_ Zoom-Invariant Selection UI, Quick Actions Toolbar _ Print Fidelity source code.tar.gz 2026-10-18 23.4 MB
5.10.3_ Zoom-Invariant Selection UI, Quick Actions Toolbar _ Print Fidelity source code.zip 2026-10-18 23.6 MB
README.md 2026-10-18 17.4 kB
openpublisher5_amd64-linux.AppImage 2026-10-18 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-10-18 185.5 MB
Totals: 13 Items   1.8 GB 0

πŸš€ Summary

Version 5.10.3 delivers major workflow, typography, and print-rendering upgrades to OpenPublisher:

  1. Zoom-Invariant Selection & Canvas UI Architecture: Selection handles, the green rotation handle and stem, dashed selection outlines, the floating quick-actions pill, crop handles, vector shape edit nodes, Smart Arrow controls, custom guides, and boundary outlines now remain the exact same screen size at every zoom level (from 20% all the way to 500%). This also resolves the issue where zooming in caused the green rotation handle's white border to multiply and swallow the green center dot.
  2. Quick Clone & Delete via Floating Micro-Action Toolbar: An unobtrusive, theme-adaptive floating micro-action pill attached to selected elements, paired with a dedicated Ctrl+D duplication shortcut that cleanly isolates Ctrl+Shift+D for the desktop client Debug HUD.
  3. Print Typography Fidelity (Segoe UI Preservation & Custom Font Spacing): Fixed a critical html2canvas ignoreElements filter bug in extensions/print-engine.js that inadvertently stripped <head> stylesheets and Google Fonts <link> tags from the print measurement iframe, causing default Segoe UI text boxes to revert to Times New Roman and custom fonts (such as Acme) to suffer word-spacing drift (Click to edit text). Also unified all toolbar font labels and state.lastRange selection tracking so default text boxes consistently display and report Segoe UI.
  4. 1:1 Print Drop Shadow & Smart Arrow Shadow Fidelity: Removed the artificial 1.6x print shadow opacity multiplier, prevented double-stacked fill + stroke shadow casting when baking Smart Arrows, calibrated the canvas 2D shadowBlur vs CSS drop-shadow Gaussian sigma ratio, and stripped residual CSS shadows after underlay injection so printed shadows match the editor 1:1.

Asset cachebusters across all 83 resource tags in index.html have been bumped to ?v=5.10.3, and the Service Worker cache has been upgraded to open-publisher-v5-10-3.


🎨 Key Features & Architectural Improvements

1. Zoom-Invariant Canvas & Selection UI (canvas/canvas.js, extensions/system-patches.js, style.css)

  • Root Cause Fix for Shrinking Rotate Handle:
  • Previously, syncHandleScaling() scaled handle dimensions in paper layout coordinates (11 / zoom) while clamping --handle-border-width to Math.max(1, 1 / zoom)px. When zooming in (zoom > 1), that 1px paper border expanded to 2.5px-5px on each side in screen space. Because .rotate-handle used box-sizing: border-box with a white border against a white page, the expanding border consumed almost the entire diameter of the green circle, leaving a tiny green speck.
  • Additionally, Chromium's layout engine snaps sub-pixel CSS border-width values below 1px before applying parent transforms, which caused dashed selection outlines and resize handle borders to thicken when zoomed in.
  • True Screen-Space Counter-Scaling (--zoom-level & --ui-inv-zoom):
  • window.syncHandleScaling(zoom) now computes --zoom-level (zoom) and --ui-inv-zoom (1 / zoom) on :root and #paper.
  • Selection Dashed Box (.selection-border-box): Rendered as a dedicated overlay child sized to calc(100% * var(--zoom-level, 1)) and counter-scaled via transform: scale(var(--ui-inv-zoom, 1)), keeping the 1.5px dashed selection line and dash spacing identical at 35%, 100%, and 300% zoom.
  • Resize Handles (.resize-handle): Fixed at 10px x 10px with a crisp 1.5px border in local coordinates and counter-scaled at each anchor point via transform: translate(-50%, -50%) scale(var(--ui-inv-zoom, 1)).
  • Rotation Handle & Stem (.rotate-handle & .rotate-stick): Anchored at top: 0; left: 50%; transform-origin: 0 0 and counter-scaled via scale(var(--ui-inv-zoom, 1)), maintaining a constant 13px x 13px green circle (1.5px white border + subtle shadow) and a 1.5px x 24px stem at all zoom levels.
  • Floating Quick-Actions Pill (.element-quick-actions): Counter-scaled from transform-origin: 100% 0% via scale(var(--ui-inv-zoom, 1)) so the 69px x 28px capsule and 6px vertical gap remain constant on screen regardless of page zoom.
  • Narrow / Zoomed-Out Collision Avoidance (.offset-from-rotate): updateQuickActionsPosition() checks the element's screen width (el.offsetWidth * currentZoom). When a box is narrower than 145px on screen (either physically narrow or zoomed out), .offset-from-rotate shifts the pill 14px in screen space to the right of the center rotate handle so they never overlap.
  • Crop Handles, Shape Nodes, Smart Arrows & Guides: .pub-element.cropping .resize-handle, .shape-edit-handle, .arrow-tip-subbox::before, .arrow-tip-handle, .arrow-tip-badge, .custom-guide, and #paper.show-boundaries .pub-element all counter-scale smoothly across the full zoom range.

2. Floating Micro-Action Pill (extensions/system-patches.js & style.css)

  • Selection Overlay Integration:
  • Attached to both single-element selection (.selected-overlay) and multi-element group selection (#group-selection-overlay).
  • Automatically hidden when no element is selected, during image crop mode (.cropping), and during vector shape node editing (.editing-shape).
  • Theme-Adaptive Micro-Action Pill (Light & Dark Mode):
  • Standard Light Mode:
    • Resting State: Presents a clean, muted capsule with a soft slate border (border: 1px solid rgba(148, 163, 184, 0.45)) displaying washed-out monochrome slate icons (#64748b at 0.58 opacity).
    • Hover State: Smoothly transitions into a bright, crisp white frosted glassmorphic badge (rgba(255, 255, 255, 0.98) with frosted blur), gently lifting (translateY(-2px) in screen space) and illuminating the rich teal clone (#007670) and crimson delete (#dc2626) buttons.
  • Dark Mode (body.dark-mode):
    • Resting State: Adapts to a dark slate capsule (rgba(30, 41, 59, 0.88)) with muted slate monochrome icons (#94a3b8).
    • Hover State: Fills into a sleek dark slate glassmorphic badge (rgba(15, 23, 42, 0.96) with soft dark shadow), revealing neon teal (#14b8a6) and coral-red (#f87171) buttons.
  • Silky Smooth Drag Fade Out / Fade In: While an element is actively being moved, rotated, or resized (is-transforming), the toolbar smoothly fades out (opacity: 0, soft scale down) over a 220ms ease curve and fades back in over 280ms upon mouse release.
  • Auto-Flip Boundary Detection:
  • If an element is positioned near the top edge of the page, the pill automatically flips below the bottom-right corner (.flip-bottom) or docks inside the top-right corner (.inside-top).
  • Zero Document Pollution & Print Safety:
  • Lives exclusively in the overlay container (#selection-overlay-container / #group-selection-overlay), never inside .pub-element nodes.
  • Hidden in @media print and stripped during export staging in io/export/canvas-renderer.js.

3. Comprehensive Duplication Engine & Ctrl+D Shortcut (core/selection.js, core/keyboard.js, ui/menus.js)

  • duplicateSelected():
  • Commits active contenteditable edits, clones the target element(s), assigns unique IDs, offsets by (+20px, +20px), unlinks text-flow chains (data-next-box / data-prev-box), selects the clone, updates thumbnails, and logs to the Undo/Redo history stack.
  • Ctrl+D Keyboard Shortcut & Debug HUD Isolation (Ctrl+Shift+D):
  • Enforces (e.ctrlKey || e.metaKey) && !e.shiftKey && !e.altKey && (e.key === 'd' || e.key === 'D') so pressing Ctrl+Shift+D passes straight through to the desktop client Debug HUD without duplicating elements.
  • Context Menu Integration:
  • Added "Duplicate" (fa-clone) to the right-click context menu between "Copy" and "Paste".

4. Print Typography Fidelity, Custom Font Word-Spacing & Toolbar Font Sync (extensions/print-engine.js, elements/text/text.js, extensions/legacy-fixes.js, extensions/ui-interactions.js, index.html)

  • Root Cause Fix for Segoe UI Loss & Custom Font Word-Spacing Drift in Print:
  • In extensions/print-engine.js, pageIgnoreFn previously checked !el.contains(pageWrapper) && !pageWrapper.contains(el). When html2canvas cloned the document into its hidden measurement <iframe>, pageIgnoreFn(document.head) returned true (ignore), stripping <head> (style.css and all dynamically injected Google Fonts <link> tags) from the clone.
  • Without <head>, html2canvas fell back to the browser's unstyled Times New Roman default for any text box relying on inherited Segoe UI, and measured custom Google Fonts (Acme, etc.) using Times New Roman word widths before painting them in the custom font on the parent canvas, creating an extra space after words (Click to edit text).
  • Updated both pageIgnoreFn and tempBox ignoreElements in extensions/print-engine.js to always preserve document.head (HEAD, STYLE, LINK) and awaited document.fonts.ready before running html2canvas.
  • Added explicit font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif on pageWrapper, scaler, and newly inserted text boxes in addTextBox().
  • Toolbar Font Label & Selection Range Synchronization:
  • Updated addTextBox(), execCmd(), and updateFloatToolbarValues() in elements/text/text.js (along with extensions/legacy-fixes.js, extensions/ui-interactions.js, and index.html) so that:
    • Newly added text boxes reset state.lastRange = null and display Segoe UI across #ribbon-font-label, #float-font-label, and #ctx-font-label-text.
    • Selecting a font from the dropdown when a text box is selected (even without a manual text highlight) applies fontFamily cleanly to the entire text box rather than jumping to a stale state.lastRange on a previously edited element.
    • Clicking between text boxes with different fonts immediately updates all font dropdown labels to reflect the selected element's actual font.

5. 1:1 Print Drop Shadow & Smart Arrow Shadow Fidelity (elements/arrow/arrow.js, extensions/print-engine.js)

  • Smart Arrow Offscreen Composite Shadow (bakeSmartArrowForPrint):
  • Previously, bakeSmartArrowForPrint applied ctx.shadowColor with a 1.6x alpha boost directly while calling both ctx.fill(p2d) and ctx.stroke(p2d), causing the stroke to cast a second shadow on top of the fill's shadow and making Smart Arrow drop shadows significantly darker and heavier in print than in the editor.
  • Refactored bakeSmartArrowForPrint in elements/arrow/arrow.js to draw the arrow's fill and stroke onto an offscreen canvas first, and then composite the completed arrow onto the output canvas with native ctx.filter = "drop-shadow(...)" at 1.0x opacity, matching the browser's CSS filter: drop-shadow(...) on <svg> 1:1.
  • Shadow Underlay Calibration & Deduplication (extensions/print-engine.js):
  • Removed the 1.6x alpha multiplier in boostGlowColorForPrint.
  • Updated generateShadowUnderlayDataURL to cast shadows from an opaque silhouette (#000000, punched out via destination-out) and scaled CSS drop-shadow blur radii by 2x to match Canvas 2D shadowBlur's Gaussian sigma definition ($\sigma = \text{shadowBlur} / 2$).
  • Stripped box-shadow and drop-shadow from .element-content whenever .op-print-shadow-underlay is injected (buildPrintDOM, bakeElementShadowUnderlays, and printFullDocumentDirect) so html2canvas never double-renders a second shadow on top of the baked underlay.
  • Normalized baked.padW and baked.padX by baked.scale in printFullDocumentDirect so baked image shadow wrappers are sized in CSS pixels rather than device pixels.

πŸ“ Files Modified in 5.10.3

File Changes
extensions/print-engine.js Preserved document.head (STYLE and Google Fonts <link> tags) in html2canvas ignoreElements; awaited document.fonts.ready; set explicit Segoe UI fallback on print wrappers; removed 1.6x shadow alpha boost; calibrated generateShadowUnderlayDataURL and stripped duplicate CSS shadows when .op-print-shadow-underlay is active; normalized bakeImageForPrint padding by baked.scale.
elements/arrow/arrow.js Updated bakeSmartArrowForPrint to composite fill + stroke on an offscreen canvas first and render the drop shadow in a single pass via native ctx.filter = "drop-shadow(...)" without artificial alpha boosting.
elements/text/text.js Added explicit font-family: 'Segoe UI', sans-serif to addTextBox(); scoped state.lastRange restoration in execCmd() and updateFloatToolbarValues() to state.selectedEl; synced #ribbon-font-label, #float-font-label, #ctx-font-label-text, and #ctx-font-label-wa.
extensions/legacy-fixes.js Updated default font labels from Arial to Segoe UI and guarded state.lastRange restoration in the execCmd wrapper to state.selectedEl.
extensions/ui-interactions.js Updated default font fallback in updateFloatToolbarValues from Arial to Segoe UI.
canvas/canvas.js Updated window.syncHandleScaling to compute --zoom-level and --ui-inv-zoom without minimum border clamping; synced quick actions pill positioning on zoom; bumped header comment to (v5.10.3).
extensions/system-patches.js Updated renderSelectionOverlays() to render zoom-invariant .selection-border-box outlines and .element-quick-actions for single and group selections; made updateQuickActionsPosition() zoom-aware with .offset-from-rotate collision prevention.
style.css Refactored .selection-border-box, .resize-handle, .rotate-handle, .rotate-stick, .element-quick-actions, .shape-edit-handle, .arrow-tip-*, .custom-guide, and #paper.show-boundaries .pub-element to use zoom-invariant counter-scaling (var(--ui-inv-zoom, 1)).
core/selection.js Implemented duplicateSelected() with DOM cloning, ID generation, position cascading (+20px, +20px), text-flow unlinking, thumbnail sync, and history logging; exported window.duplicateSelected.
core/keyboard.js Wired up Ctrl+D (and Cmd+D) element duplication shortcut with strict !e.shiftKey guard to protect the client app Debug HUD (Ctrl+Shift+D).
io/export/canvas-renderer.js Added .element-quick-actions to the query selector removal list during image and PDF canvas export.
ui/menus.js Added "Duplicate" (fa-clone) to the universal object context menu; bumped header comment to (v5.10.3).
index.html Updated default #float-font-label text to Segoe UI; bumped all 83 asset cachebuster query strings from ?v=5.10.2 to ?v=5.10.3.
sw.js Bumped service worker cache name to open-publisher-v5-10-3 and header comment to (v5.10.3).
core/boot.js, core/core.js, extensions/pwa-install.js, tools/proofing/dictionary.js, tools/proofing/spellcheck-engine.js, ui/modals/card-sheet-modal.js, ui/modals/options-modal.js, ui/sidebar-context.js Bumped version headers and startup logs to v5.10.3.

βœ… Verification Checklist

  • [x] Default Segoe UI Print Preservation: Verified that newly inserted text boxes (Click to edit text) retain Segoe UI in both the Editor and Print output instead of falling back to Times New Roman.
  • [x] Custom Google Font (Acme) Print Word-Spacing Fidelity: Verified that custom fonts render in Print with identical glyph metrics and word spacing (Click to edit text) with zero word-gap drift.
  • [x] Toolbar Font Label & Selection Sync: Verified that #ribbon-font-label, #float-font-label, and #ctx-font-label-text initialize to Segoe UI, update to Acme when changing a selected text box's font, and sync back to Segoe UI when re-selecting a default text box.
  • [x] 1:1 Print Drop Shadow Fidelity: Verified side-by-side that Smart Arrow drop shadows and element shadow underlays in Print match the Editor's shadow softness, blur radius, and opacity 1:1.
  • [x] Zoom-Invariant Screen Dimensions (35% to 300% Zoom): Verified via automated sub-pixel bounding-box assertions that .rotate-handle (13.00x13.00px), .resize-handle (10.00x10.00px), .rotate-stick (1.50x24.00px), .selection-border-box (1.5px dashed stroke), and .element-quick-actions (69.00x28.00px, 6.00px gap) maintain the exact same screen pixel size at every zoom level.
  • [x] Narrow / Zoomed-Out Rotate Handle Clearance: Verified that when an element is narrow on screen (< 145px screen width), .offset-from-rotate automatically shifts the quick-actions pill to the right of the green rotation handle so they never overlap.
  • [x] Washed-Out Monochrome Resting Icons & Smooth Drag Fade: Verified resting monochrome slate icons, smooth fade-out during transforms (is-transforming), and Light/Dark Mode glassmorphic hover states.
  • [x] Clone, Delete, Ctrl+D & Ctrl+Shift+D Isolation: Verified duplication, deletion, Undo/Redo restoration, and strict isolation of Ctrl+Shift+D for the Debug HUD.

πŸŽ‰ Version 5.10.3: Open Publisher

Source: README.md, updated 2026-10-18