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

Asterisk is high above baseline in Mono font; problematic for code listings #206

Closed
jfbu opened this issue Aug 2, 2018 · 2 comments
Closed

Comments

@jfbu
Copy link

jfbu commented Aug 2, 2018

MWE:

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\setsansfont[Scale=MatchLowercase]{Libertinus Sans}
\setmonofont[Scale=MatchLowercase]{Libertinus Mono}

%\setmonofont[Scale=MatchLowercase, FakeStretch = 0.8]{Libertinus Mono}
%\usepackage{libertinus-otf}% testing
\begin{document}

The asterisk * is at high position, this is ok.

\texttt{The asterisk * is at high position also in monospaced font,
  problematic for code listings. It is small, furthermore.}


\end{document}
% Local variables:
% TeX-engine: xetex
% End:

produces (TeXLive 2018, updated August 3.)

capture d ecran 2018-08-02 a 11 52 33

Possibly relates #63, #164

I am not familiar with OpenType fonts in general, is there some stylistic alternate here which already fixes that "issue"? I opened the font in FontForge but saw nothing particular on selecting the glyph about alternates.

@khaledhosny khaledhosny added enhancement pr-welcome A PR contributing towards this issue would be welcome. labels Aug 4, 2018
@khaledhosny khaledhosny removed pr-welcome A PR contributing towards this issue would be welcome. labels Oct 10, 2018
@khaledhosny
Copy link
Contributor

The monospace asterisk was the same size as the serif one, but you were scaling down the font which made it look smaller. However, I agree that monospace asterisk should be larger and lower, so I did just that.

@jfbu
Copy link
Author

jfbu commented Jan 2, 2019

ah, allright, thanks for the explanation, and great to hear about this larger and lower asterisk looking forward to use it soon

alerque pushed a commit that referenced this issue Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants