I want to combine Helvetica World (for roman, cyrillic, greek and arabic) and Hei Std (for simplified chinese) in one document with LuaLaTeX. Hei Std probably hasn't all the glyphs from Helvetica World and Helvetica World certainly hasn't all characters from Hei Std.
Can I get LuaLaTeX to automatically choose the right font based on the input, i.e. can I combine fonts into one "virtual font"? I don't want to switch the fonts manually.
Out of curiosity I'm also interested in a solution for XeLaTeX, but I need one for LuaLaTeX.
unicode-math
can handle different fonts for a defined range of characters. For a text font it maybe possible in the same wayxeCJK
(see e.g. tex.stackexchange.com/questions/21046). This uses\XeTeXinterchartoks
. For luatex there has been some discussion to implement something similar (tex.stackexchange.com/questions/21625) but the code suggested there by Taco has some problems (see the comment of Manual). I don't know if someone created something better (or is working on it).unicode-math
because in math each symbol specify its font, in text mode it is entirely a different matter. ConTeXt support script and range-based font fallbacks without even using virtual fonts, so it is certainly possible...xeCJK
andluatexja
are not widely heared by people out of China/Japan, although they are quite useful and somewhat stable now. I myself didn't noticeluatexja
until early this year.