mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
With Preferences › General › Display Print Size at 100% Zoom on, 100% took 96 screen points to an inch on every display, so a ruler held to the screen measured more or less than the document said on any display of another density. The desktop app now measures the density of the display that shows the main window from the physical size the system reports (CGDisplayScreenSize on macOS, the monitor's raw DPI on Windows, the RandR output's millimeters on X11, the wl_output geometry on Wayland), and measures it again when the window moves to another display, where every document window keeps its zoom percentage so the art keeps its physical size. Actual Size, the zoom field, the zoom stops and the tab titles count 100% from that density. Where the system reports no size, or a size no display has (zero, an aspect ratio given as the size, or axes that disagree), an inch stays 96 points, as on the web. Zoom stepping takes the density from the app instead of a process-wide flag, and the last zoom stop in each direction stays in the zoom range.