[Tex/LaTex] Fontspec setmonofont line spacing


I am currently using using fontspec to set the mono-space font for my document using


The scaling is used to get the font size to match the rest of the document. The size of the characters is scaled, but the line-spacing is not. Is there a way to get the line spacing to scale as well?

Best Answer

The line spacing is tied to the (nominal) fontsize, it doesn't change when you change the font family. If you want a different line spacing e.g. in a code environment you will have to change \baselineskip locally.