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
Accents are not well positioned in STIX and the new web fonts #731
Comments
The TeX fonts include character-by-character "skew" data for adjusting the accent positions. MathJax uses this to improve the placements for the TeX fonts, but doesn't have this for STIX or any of the new web fonts. There is a heuristic that uses a stand-in for italic correction to adjust the positions, and this works OK for STIX, but not the other fonts. I think the true fix for this will require generating skew data for the other fonts. I don't think this can be automated, as it has to do with the actual shapes of the glyphs as well as their slant, so this probably has to be done by hand. The TeX skew data came from the tfm files (it is part of the kerning information), and some of the new fonts are for use with TeX, so there must be tfm files for those, but the connection of OTF fonts to TeX tfm files is complicated, and it may be hard to extract them. In any case, I don't think Asana has TeX tfm files, so some hand work may be needed. Fortunately, TeX only has data for the standard 26 letters in upper and lower case, and the Greek letters, so it would be possible to do this by hand. But it is mind-numbingly tedious work. I think it should wait until a future version. There are a number of other font-related issues that need to be addressed, as well, and I'm not sure these are priorities at the moment. |
+1 I'll reach out to the STIX group to see if they might be able to supply the skew data. |
I may be repeating what you already know, but TeX just skews the In other words, it's a bit of smoke and mirrors that relies on the For the STIX fonts, Khaled chose character 177 as the skewchar. In N.b.: I use the words "arbitrarily" and "coincidence" advisedly, since |
Thanks for adding a comment, @davidmjones ! |
Thanks, David. Yes, I know that the skew information is stored in the kerning for the skew character. I haven't looked to see if I can get that information out of the STIX fonts (since the heuristics used in the absence of skew information work reasonably well with STIX). In any case, since the STIX fonts are packaged in several forms, can you say which one you are referring to? Is it the STIX LaTeX version? (Or STIX Word, or STIX General?) To tell you the truth, I haven't looked at the LaTeX versions. |
Should be resolved in v3 font update. |
Accents from
\hat
,\grave
,\dot
, etc, are not centered properly for italic characters in the STIX and most of the new web fonts. There may need to be a flag in the fontdata file that indicates that italic shifting is needed (the TeX fonts have this built in).The text was updated successfully, but these errors were encountered: