-
Sometimes for certain languages, classes and packages it may be necessary to use a different compiler like xelatex than the default pdflatex. We have to set XeLatex instead of PdfLatex for using fontspec package.
Download from Free Bangla Fonts Download
I'm using Kalpurush font. Without downloading you can take kalpurush.ttf file from this repository. Finally, you have to upload it in overleaf.
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontface{\bn}{kalpurush.ttf}
\bn{অনেক আশা করে লিভারপুল ছেড়ে বার্সেলোনায় যোগ দিয়েছিলেন ব্রাজিল তারকা ফিলিপ কুতিনহো।}