How to get monospaced spaces?

The default typewriter font, TeXmacs Computer Modern Mono, is perfectly monospaced. However, if I change the typewriter font (say through <associate|font|typewriter=Dejavu Sans Mono,roman>), whitespaces are no longer monospaced: as long as I put spaces in code, lines are not aligned. How can I fix it?
image

Hey Luke,

Can the Pseudo-Code environment maybe fix this? (view the image below):
Screenshot%20from%202024-09-22%2013-41-02

Thanks! Sorry that I didn’t provide enough context. Changing the document font is fine, but if I change only the typewriter font (e.g. through <associate|font|typewriter=Dejavu Sans Mono,roman>), the problem appears. I’ve updated my post for that.

It may be a bug. You could submit a bug report on the bug tracker at Savannah.