Following comments I received in this question, I'm trying to use libertinus font (in Overleaf).
\documentclass[11pt]{article}
\usepackage[compact]{titlesec}
\tracinglostchars2
\usepackage{libertinus}
\usepackage[T1]{fontenc}
\begin{document}
hō͘ lí
\end{document}
At first glance everything seems to be working fine, but when I place the cursor between l and í in the word lí and press "space", I would expect to get l í but instead I'm getting lí (i.e, the space is added not between the letters, but before the word). When I delete hō͘ before lí and repeat the above, everything seems to be working fine, I'm getting l í. Similar bugs happen many other cases. What's the problem with this?
xelatex, you don't want the\usepackage[T1]{fontenc}line. Without this line, I have no problems and can put spaces between the l and í fine. – David Purton Apr 13 '21 at 05:42