Text in plug mode (Harfbuzz) does not work inside \text/\mtext
"Jairo A. del Rio" <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <CAKyqqaZLs=t=BCbkfhkF3RbGir56mQBVeEf---Jm9BeDgbSfYQ@mail.gmail.com> |
Hi! Currently, when font-plugins is used along with Harfbuzz, fonts and font fallbacks using Harfbuzz features don't work with \text nor \mtext. Strangely enough, the good ol' \hbox workaround does. MWE attached. Regards, Jairo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
ga.pdf
(application/pdf, 8.2 KB) - not displayed
ga.tex
(text/x-tex, 510 B)
\usemodule[fonts-plugins]
\definefontfeature[harf]
[mode=plug,
features=harfbuzz,
shaper=native,
script=khmr]
\definefallbackfamily[mainface][rm][battambang]
[range=khmer,
force=yes,
features=harf]
\definefontfamily[mainface][rm][dejavuserif]
\setupbodyfont[mainface]
\starttext
អក្សរខ្មែរ
\startformula
\hbox{អក្សរខ្មែរ}
% \text{អក្សរខ្មែរ} = 1 + 1
% \mtext{អក្សរខ្មែរ} = 1 + 1
\stopformula
\stoptext