The task arose to create a template in which the text and mathematical formulas are written in the Times New Roman font, since it is the standard in Russian universities. It turned out almost everything, except for some characters, please tell me how it can be corrected? Perhaps you already have a template where everything is written in a single font?
My code
\documentclass[14pt]{extarticle}
\usepackage{graphicx}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage {tabularx}
\usepackage {longtable}
\usepackage {multirow}
\usepackage {multicol}
\usepackage{booktabs}
\usepackage{setspace}
\onehalfspacing
\usepackage{indentfirst}
\setlength{\parindent}{1.25cm}
\usepackage{euscript}
\usepackage{icomma}
\usepackage{mathspec}
\newcommand*{\myfont}{Times New Roman}
\setallmainfonts[Ligatures=TeX,Scale=0.975]{Times New Roman}
\setmathfont(Digits,Greek,Latin){\myfont}
\setmathfont(Greek)[Lowercase=Regular]{\myfont}
\usepackage[english,russian]{babel}
\usepackage{titlesec}
\titleformat{\section}[hang]{\normalfont\bfseries}{}{0pt}{}
\titlespacing{\section}{\parindent}{6pt}{6pt}
\titleformat{\subsection}[hang]{\normalfont\bfseries}{}{0pt}{}
\titlespacing{\subsection}{\parindent}{6pt}{6pt}
\usepackage{geometry}
\geometry{a4paper, top = 2cm, bottom = 2cm, left = 3cm, right = 2cm}
\usepackage[unicode]{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=black,
filecolor=black,
linkcolor=black,
filecolor=black,
citecolor=black
}
\RequirePackage{caption}
\DeclareCaptionLabelSeparator{defffis}{ --- }
\captionsetup[figure]{justification=centerlast,labelsep=defffis,textfont=onehalfspacing}
\captionsetup[table]{justification=raggedleft,labelsep=defffis,textfont=onehalfspacing,singlelinecheck=off}
\captionsetup{belowskip=-6pt}
\usepackage{ragged2e}
\usepackage{microtype}
\justifying
\sloppy
\tolerance=500
\hyphenpenalty=10000
\emergencystretch=3em
\setmainfont{TeX Gyre Termes}\setmathfont{TeX Gyre Termes Math}
with unicode-math package