I'm using the moderncv template and I cannot change the font.
I'm looking at https://www.overleaf.com/articles/slash-fontspec-all-the-fonts/qnsxyhrgjsgs for my fonts. Using \setmainfont does not work.
I'd also like to change section fonts, similar to this solution: Change body font in moderncv without affecting the other fonts, but I don't understand what his \fontfamily{pzc} is doing or how to adapt it for a font from above.
pczin\fontfamily{pzc}is a shorthand for the postscript font Zapf Chancery. You can use thefontspecfont selection commands in its stead. But in order to help you more, we need to see some code, i.e. a minimal working example (MWE) – DG' Nov 06 '18 at 15:51