-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
script and lang missing in font definition. #349
Comments
Additional remark: I do have in the luaotfload testsuite suddenly also quite a number of test failures related to unicode-math. A number of boxes have suddenly a different width. A possible cause could be that the math fonts are loaded without the script=math feature:
And the difference is visible: |
Thanks for the detailed analysis. You're right, it is a change, and it is indeed a bug :( I think I have this fixed now in the |
If anyone has the capacity to check the code I'd be much obliged. I'm wary of releasing too soon and missing more bugs! |
I did run my (luaotfload)-testsuite with the new version (so only with luatex ...). The unicode-math failures are gone, I have one failure because a font id number has changed, but that's imho harmless. I also get a failure because scaling has slightly changed:
This output with 2019/01/18 v2.6l
and with the experimental code
|
@u-fischer 0911d75 contains the exact same changes in font size, e.g., in |
@RuixiZhang42 Ah yes. My testfile is a copy from this one. |
The ± 1sp, 2sp, 3sp thing was added as an additional measure to avoid XeTeX “caching” the fontname — strictly I could remove them but I hoped the differences were small enough that they wouldn’t affect too much in practice.
I could revert if you think even such small changes are problematic :)
|
I personally don't care much about the scaling difference. But I think an update would be good as the missing script is starting to show e.g. https://tex.stackexchange.com/questions/471565/realscripts-fontspec-update-vs-some-opentype-fonts and https://tex.stackexchange.com/questions/471184/problem-with-prime-and-unicode-math-package |
Scaling is back to normal. New release sent to CTAN. |
Description
fontspec (2019/01/18 v2.6l) writes "Font "OpenSans-Regular" does not contain any OpenType `Script' information." and then doesn't add script and language tag.
Check/indicate
Minimal example demonstrating the issue
Further details
I 'm not sure if the current behaviour is actually more correct, but it is certainly a change. For some fonts (I found opensans, times and arial) I get no script and language tag in the font features.
The log-file says
Trying to force the script with e.g.
\setmainfont{times.ttf}[Script=Greek]
doesn't work.otfinfo says:
For other fonts it still works. The main difference I saw is that working fonts have DFLT in their script list.
The text was updated successfully, but these errors were encountered: