-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Vertically center integral.size1
#559
base: master
Are you sure you want to change the base?
Conversation
If we are going to do this, you have to check all big operators not just integral. It should also be centered around math axis. |
I modified the script to center around the math axis: startglyph = 1114441
endglyph = 1114441
thisfont = fontforge.activeFont()
for i in range(startglyph,endglyph+1):
ytop = thisfont[i].boundingBox()[-1] # counted from baseline, excluding descent!
ybot = thisfont[i].boundingBox()[1] # same note as above
# Calculation method:
# Current midpoint of glyph (counted from baseline) = (ytop + ybot) / 2
translation = thisfont.math.AxisHeight - ((ytop + ybot) / 2)
thisfont[i].transform( psMat.translate( 0, translation )) The difference to before is 6 coordinate points. I also investigated the other big operators (those with Produced with this latex snippet, rendered on Temml.org \begin{aligned}
&\cdot\int\iint\iiint\iiiint\oint\oiint\oiiint\intclockwise\varointclockwise\sum\prod\coprod \cdot\\
&\cdot\bigwedge\bigvee\bigcap\bigcup\bigcupdot\biguplus\bigsqcap\bigsqcup\cdot\bigodot\bigoplus\bigotimes\surd\Big(\Big)\Big\lceil\Big\rceil\Big\langle\Big\rangle\cdot
\end{aligned} I could nevertheless run the script over these? |
But the image shows that all integrals are not centered. You should also center the text version of the big operators (the radical and parentheses are not big operators so can be left alone). |
Oh, looking at the new image, I see that the circles are too high! I'll fix it. |
I haven’t checked the font files, but the screenshot looks good to me. |
Closes #542
I used this script to center it. The script seems to have moved it down by 308. It looks correct to me, but I may be wrong.
I also don't know whether I need to change hinting somewhere? I didn't see anything obvious in the .sfd file.
This also seems to center all the other large integral glyphs (including the ss08 glyphs) because they all refer to
integral.size1
.