Mathematical signs are misaligned
alerque opened this issue · 1 comments
alerque commented
As noted in this issue on the TypeNetwork fork, mathematical symbols could use a little bit of alignment (and stroke weight) help. Most egregiously ‘+’ is hitched to a hot air balloon and sailing high, but lots of other minor issues are visible.
SILE Test Code
\begin{document}
\nofolios
\neverindent
\font[family=Raleway,size=32pt]
\begin{raggedright}
\begin{script}
local str = "1×<>+÷−¬=≠±≤≥3"
for _, features in ipairs({ "", "+lnum" }) do
for _, weight in ipairs({100, 200, 300, 400, 500, 600, 700, 800, 900}) do
SILE.call("font", { weight = weight, features = features }, function ()
SILE.typesetter:typeset(str)
SILE.call("hfill")
SILE.call("font", { style = "Italic" }, { str })
SILE.call("break")
end)
end
end
\end{script}
\end{raggedright}
\end{document}
(Shown with +onum
and +lnum
.)
CC: @thlinard who seems to be on a crusade on this topic 😉
alerque commented
ALso with lines at baseline, x-height, and half way between:
SILE Test Code
\begin{document}
\nofolios
\neverindent
\script[src=packages/grid]
\font[family=Raleway,size=16]
\grid[spacing=1ex]
\grid:debug
\font[family=Raleway,size=32]
\begin{raggedright}
\begin{script}
local str = "1×<>+÷−¬=≠±≤≥3"
for _, features in ipairs({ "", "+lnum" }) do
for _, weight in ipairs({100, 200, 300, 400, 500, 600, 700, 800, 900}) do
SILE.call("font", { weight = weight, features = features }, function ()
SILE.typesetter:typeset(str)
SILE.call("hfill")
SILE.call("font", { style = "Italic" }, { str })
SILE.call("break")
end)
end
end
\end{script}
\end{raggedright}
\end{document}