How to Write Bengali with Custom Font Package in LaTeX?

LaTeX uses fontspec and polyglosia packages to write multilingual documents. In this case, you need to use the XeLaTeX or LuaLaTeX compiler instead of the PDFLaTeX compiler.

There are a number of things to consider here

  1. When loading fonts which are stored in the texmf-tree you should use file names and not font names, as font names don’t work on all OS out of the box. So use \newfontfamily\bengalifont[Script=Bengali,Scale=0.85]{AkaashNormal.ttf} instead of \newfontfamily\bengalifont[Script=Bengali,Scale=0.85]{AkaashNormal}.
\documentclass[12pt]{article}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{English}
\newfontfamily\englishfont[Scale=MatchLowercase]{AkaashNormal}
\newfontfamily\bengalifont[Script=Bengali]{Akaash}
\begin{document}
\author{মোঃ কুতুবউদ্দিন সরদার}
\title{ল্যাটেক্সে বাংলা লেখার সহজ উপায়}
\date{\today}
\maketitle
\section{ভূমিকা}
LaTeX এ  বহুভাষিক document লেখার জন্য fontspec   এবং polyglosia  package গুলি ব্যবহার করা হয়।  এই ক্ষেত্রে PDFLaTeX compiler এর পরিবর্তে  XeLaTeX বা LuaLaTeX  compiler ব্যবহার করতে হয়।
\end{document}

Output: 

1

One thought on “How to Write Bengali with Custom Font Package in LaTeX?

  1. Pingback: How to Write Bengali Bold and Italic Font Text in English Document in LaTeX? – BETTER SOLUTION FOR YOU

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.