निरंजन
See this minimal code -
```
\documentclass[border=0.5cm]{standalone}
\usepackage{gchords}
\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}
\begin{document}
\mediumchords
\chord{t}{f२p3,f२p2,n,n,n,f३p3}{शुद्ध सूरमेळ}
\chord{t}{f2p3,f1p2,n,n,n,f3p3}{G Major}
\end{document}
```
It produces something like -
![Screenshot from 2020-03-13 17-00-34.png](/image?hash=97840d868c3b8abf1e7480cb30fae0a297f98882191d3f16c2ace184dfed96b2)
How to make Devanagari script appear in this output?
Edit -
```
\documentclass[border=0.5cm]{standalone}
\usepackage{gchords}
\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}
\newfontfamily\sho[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}
\begin{document}
\mediumchords
\chord{t}{f{\sho२}p3,f{\sho१}p2,n,n,n,f{\sho३}p3}{\sho शुद्ध सूरमेळ}
\chord{t}{f2p3,f1p2,n,n,n,f3p3}{G Major}
\end{document}
```
Top Answer
samcarter
In the `gchords` package, the use of the computer modern font is hard coded. With a few redefinitions one can make the package use the font of the surrounding text:
```
% !TeX TS-program = xelatex
\documentclass[border=0.5cm]{standalone}
\usepackage{gchords}
\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}
% These should be modified if you want chords in a different size
\renewcommand\mediumchords{
\def\chordsize{3.0mm} % distance between two frets (and two strings)
\def\dampsymbol{$\scriptstyle\times$} % symbol of the `damp this % string' marker
\def\opensymbol{$\scriptstyle\circ$} % symbol of the `open string' marker
}
\renewcommand\smallchords{
\def\chordsize{2.0mm} % distance between two frets (and two strings)
\def\dampsymbol{$\scriptstyle\times$} % symbol of the `damp this string' marker
\def\opensymbol{$\scriptstyle\circ$} % symbol of the `open string' marker
}
\renewcommand{\fingerfont}{\tiny}
\renewcommand{\namefont}{}
\renewcommand{\fretposfont}{}
\begin{document}
\mediumchords
\chord{t}{f२p3,f२p2,n,n,n,f३p3}{शुद्ध सूरमेळ}
{
\fontspec{Arial}
\chord{t}{f2p3,f1p2,n,n,n,f3p3}{G Major}
}
\end{document}
```
![Screen Shot 2020-03-13 at 13.23.23.png](/image?hash=d48c85aa98e781529693888991414f414e3a55fbac807af949c1d16a8b9ff51c)