Writing this post to talk through the behavior demonstrated by this notebook: https://beta.observablehq.com/@cw/rasterize-output-oddity
The notebook is a demo of behavior I noticed in another private notebook. That private notebook generates SVG which can be saved as a PNG via the rasterize function from @mbostock/saving-svg. In that private notebook, rasterization consistently excludes text elements from the rasterized output, and I’m having trouble figuring out what I’m doing wrong.
I simplified the private example down to what’s shown in https://beta.observablehq.com/@cw/rasterize-output-oddity and noticed the behavior is reproducible when font-size is below 0.5.
Maybe this has something to do with the unit-less nature of my input SVG?
I’m at a loss to explain it and haven’t figured out a workaround, so I pose the question to this channel.