Replies: 4 comments 1 reply
-
(I've converted the original issue to a Discussion since I think that's a better form for the question raised here.) I guess my initial feeling is that it is better to guide people towards creating documents that load fonts that have wide-ranging Unicode coverage, rather than implementing a way to bring in those fonts on-the-fly when needed. On the one hand, this approach clearly doesn't help with the large corpus of existing documents that just use Computer Modern and don't actively do anything about their font at all ... on the other hand, by definition these documents shouldn't have any Unicode characters to handle since they wouldn't have worked! It's a good question, though, and I'm really not sure how to approach it. If someone needs to include some Chinese characters in their document you probably don't want them randomly guessing which font is best. And there are situations where you want to be able to include arbitrary text in a document that might include Chinese characters (or Thai, or Arabic, or ...) without knowing in advance what you'll find. This seems especially relevant if you want to be able to process lightweight text+TeX markup in, say, a web form, which I definitely would like to do! So, I dunno. Does anyone else have thoughts? |
Beta Was this translation helpful? Give feedback.
-
I have.
This is not realistic.
You can say that I should glue my own font from several fonts available to me with some font editor, instead of asking Tectonic to do it for me. This is a general solution. However, my proposition is that rendering characters is an essential feature of a type setting system. We only excuse Latex because it is so old. If any program with even a single text area shipped without support for Unicode these days, it would be considered a glaring fault. |
Beta Was this translation helpful? Give feedback.
-
Yes, as I think about it more, I think you're right. If I have a document in English and want to include some CJK text, I shouldn't have to wrap that text in some kind of font activation command. I should be able to just include it and get good results. I do not know enough about |
Beta Was this translation helpful? Give feedback.
-
So, what is the way forward here? |
Beta Was this translation helpful? Give feedback.
-
A long-standing problem with Latex is that fancy Unicode characters never really work, because they are not in the font.
Normal text rendering systems (browsers, terminal emulators, and so on) would in this event look for another font that does have the character in question. For example, you would likely be able to see these symbols right now:
∷
(4 dots),★
(a star). But rendering them in Latex is hell. For Xetex, there are awkward and poorly maintained ways to circumvent this problem by switching the font on the fly, such as the packageucharclasses
. Sometimes they work, sometimes they do not. Sometimes they work half way through the document and then forget to switch back to your normal font.How about we get some code to look for fallback fonts in the event of a missing character? We could even make a command line option for the invoker to supply a list of fonts that would be tried in order.
Beta Was this translation helpful? Give feedback.
All reactions