TIL: aligning horizontal or vertical lines to the pixel grid with OpenGL

When I started using my new M1 Max MacBook Pro in December, a bunch of vpype’s tests started to fail. The failing tests were all image-based: an image is rendered and then compared to a previously-generated, reference image. This process is made easy thanks to this Pytest fixture. In this case, the reference images were generated long ago on my previous, Intel/AMD-based MacBook Pro. This GIF highlights the discrepancy I’d get with images generated on my new computer (notice how the ruler’s thickness varies):...

April 5, 2022
vpype 1.9 word cloud

Annotated Release Notes: vpype 1.9

vpype \ text -l1 -p 0 3.5cm "Custom layer name/color/pen width" \ text -l2 -p 5cm 4.5cm -s 24 "Properties" \ text -l2 -p 2cm 5.5cm -s 20 "Expressions" \ text -l1 -p 6cm 6.5cm -s 24 "Better/new block processors" \ text -l2 -p 3cm 8cm "...and much more!" \ layout -m 0.3cm -l 10x3.5cm \ penwidth -l2 0.5mm \ color -l2 "%Color(226,200,0)%" \ color -l1 "%Color(3,118,207)%" \ color -l1 blue \ show -- vpype 1....

March 3, 2022 · Last updated on March 4, 2022

First post

Hello again, world. ...

February 20, 2022