I am trying to change doi font style to Times New Roman. By default, the font is not in Times New Roman but something else. I have tried:
\usepackage{lipsum}
\newcommand{\TNR}{\fontfamily{ptm}\selectfont}
\DeclareTextFontCommand{\textTNR}{\TNR}
\DeclareFieldFormat{doi}{ %
\color{black}{doi}%
\mkbibacro{}\addcolon \selectfont
\textTNR{\underline{
\ifhyperref
{\href{https://doi.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}
}
}
}
I have the above code by the following references link:
[1] Change font to comicneue only for one sentence
[2] Formatting only the DOI using biblatex
Can anyone point out what's wrong with the above? I appreciate your time.