I defined the following macro (thanks to this question)
\font\maljapanese=dmjhira at 2.5ex
\newcommand{\yo}{\textrm{\!\maljapanese\char"48}}
which prints the Hiragana letter よ. This works fine in both text and inline math mode, but its size does not scale correctly when I use it in a subscript in math mode. In fact, it does not scale at all:
Inline: $a$; subscript: $f_a$.
Inline: $\yo$; subscript: $f_\yo$.
How can I reasonably fix this? I could add a version of \yo, say \subyo, which prints よ in a smaller font, but it does not seem elegant at all.



\fontin LaTeX. – egreg Jun 25 '21 at 09:51\char"3088but my compiler didn't like it. What can I use instead? – Lorenzo Riva Jun 25 '21 at 10:02