[Tex/LaTex] How to use helvetica font in online editor


I am using overleaf.com for creating a beamer document. I want to change default font to helvetica. I addede following lines from answer posted for Working with arial or helvetica fonts but it didnt work online editor.

\documentclass[x11names]{beamer} \usetheme{default} \usecolortheme{default}   
\usefonttheme{professionalfonts} % using non standard fonts for beamer 
\usefonttheme{serif} % default family is serif \usepackage{fontspec} 

Any idea?

Best Answer

For pdflatex you could just use the helvet package: