When using Quick Look on a code file —
.cpp, etc. — the font used to render the text seems to be Menlo. I was wondering if this is customizable. Can I manually set it to any font I want, such as SF Mono or Source Code Pro?
Removed the erroneous suggestion that it was Xcode font settings that provided this functionality.
You can find out which application is responsible for displaying source code in QuickLook by using this command in the terminal:
qlmanage -m plugins | grep -i "public.source-code"
If nothing shows up you don't have an application that provides this functionality.
In that case you can try this quicklook plugin https://github.com/anthonygelibert/QLColorCode.