When Using Times New Roman in both LuaLaTeX and Google Docs, the acute accent in each isin a different position, with Google Docs having the right one. Why does LuaLaTeX have the wrong position? I would have expected LuaLaTeX to have gotten it right. I do not want to change the font to STIX Two Text, as I have seen inconsistencies in size when using TNR Cyrillic о and STIX Two Text Cyrillic о, STT has a bigger о, and it is noticeable. I must add acute accents to vowels for a document im working on.
\documentclass[letterpaper,12pt]{article}
\usepackage{microtype}
\usepackage{unicode-math} % loads fontspec
\setmainfont[Ligatures=TeX]{Times New Roman}
\newfontfamily\secondfont[Ligatures=TeX]{STIX Two Text}
\usepackage[main=english,russian]{babel}
\title{help with Cyrillic accents!}
\author{(please!)}
\date{\today}
\begin{document}
\maketitle
\foreignlanguage{russian}{
\'ы ы? {\secondfont \'ы ы?}
}
Cyrillic o looks inconsistent when using the two fonts.
\foreignlanguage{russian}{
\'o {\secondfont \'o}
}
\end{document}
It just doesn't make sense the Google Docs has the right positioning, but not LuaLaTeX. I hope there is a fix to this.
fontspec
font-loading optionLigatures=TeX
has been the default for a decade or more. There's no need to specify this option explicitly unless your TeX distribution is of some stone-age vintage (which, fortunately, is not the case for the TeX distribution used by Overleaf).