Not sure if this is a LyX problem, but I hope someone here has
encountered this issue and might know a solution.
My problem is that when a program listing (Insert -> Program Listing)
does not fit into the same page it starts in, and so a page break occurs
in the middle of it, the page number at the bottom of the page in which
the page break occurs is rendered in the typewriter font, just like the
program listing itself. This only happens if I use:
basicstyle={\ttfamily}
in Document Settings -> Listings so that program listings use the
document's typewriter font (in my case "DejaVu Sans Mono") instead of
the weird-looking default.
I'm using XeTeX. Has anyone else encountered this?