Editorial question136K views924 votes0 answers4,742 following
AI-generatedCan cairo_surface_set_device_scale double‑scale when CTM already includes scaling?
Goal To render a high‑DPI image surface in Cairo while avoiding unintended double scaling when the current transformation matrix (CTM) already applies a scale factor. Constraints & Uncertainty Device scale is a surface‑level property that maps logical user coordinates to device pixels. It composes with the CTM, so if the CTM contains a scaling transforma