Skip to content
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

Mathematical signs are misaligned #20

Open
alerque opened this issue Aug 27, 2020 · 1 comment
Open

Mathematical signs are misaligned #20

alerque opened this issue Aug 27, 2020 · 1 comment

Comments

@alerque
Copy link
Member

alerque commented Aug 27, 2020

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}

image

(Shown with +onum and +lnum.)

CC: @thlinard who seems to be on a crusade on this topic 😉

@alerque
Copy link
Member Author

alerque commented Aug 27, 2020

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}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant