I tried an M6x1.00 bolt from the hardware store today and found that it threads into my carriage-shifted Royal 10 further than 1/4"-20 but will not get all the way through the threads without forcing, which could damage the typewriter. This metric bolt may still be workable by stacking washers on the underside of the desk to get just the right depth to engage the threads without needed to turn too far to need forcing.
Converted to metric, the original 1/4"-24 bolt is M6.45x0.94, a 1/4"-20 (course) is M6.45x0.79 and 1/4"-28 (fine) is M6.45x1.1, which makes the metric bolt the closest of commonly available bolts but not a perfect match. Being undersized in bolt diameter allows the M6x1.00 some room for the thread mismatch.
For my desk mounting, I also tried to use an undersized bolt with a nut on the backside of the threads. My machine doesn't have enough room for the nut but this may for other machine with a more open design, especially later machines which used stamped sheet-metal instead of cast iron.
Studs or bolts could, in principle, be made from readily available rods with a readily available 1/4"-24 thread-cutting die but the die I found is $50, plus more for the tool to hold it.
I considered drilling the threads out and tapping slightly larger modern threads but this risks cracking the cast iron as it will be thinner after drilling.
I finally decided to buy a 10-pack of Harley Davidson bolts with the correct thread, which ran about $30 shipped. I need two, PM me if you need a pair, I'll have extras. Hopefully this does the trick.