Closed NudPiyapon closed 12 months ago
I’ve posted a workaround in stackexchange, but I’ll investigate a general solution to this issue once TeXLive 2022 is released (I'm taking a short break).
While investigating how to deal with these cases and how to improve the current algorithm, I’ve discovered a very dirty trick: add a dummy RawFeature
(e.g. RawFeature=+xxxx
) to the second font. Seems to work.
The workaround based on the RawFeature
doesn’t work anymore, and what’s worse, the working example (with the expected result) doesn’t work with TeXLive 2023... 🙁 (it worked with 2022).
Note: This issue stems from stackexchange forum: https://tex.stackexchange.com/questions/637687/weird-behavior-when-using-babelfont-with-two-styles-in-luatex
Consider these MWEs.
The following code produces expected result. (Correctly apply serif and sans-serif style)![image](https://user-images.githubusercontent.com/50803100/159169501-ce885209-1211-44c0-8765-3d17b5116b73.png)
However, when I changed the serif font of Thai to the same as sans-serif one (Laksaman), the product of this code is formatted wrong. (The last test text's style is serif, not sans-serif)
So, could anyone explains to me what happened here? Thanks in advances!