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

spurious space in color feature? #433

Open
4 tasks done
u-fischer opened this issue Oct 21, 2020 · 0 comments
Open
4 tasks done

spurious space in color feature? #433

u-fischer opened this issue Oct 21, 2020 · 0 comments

Comments

@u-fischer
Copy link
Member

Description

The font feature list contains a space and the log for color feature contains a line feed if opacity is not give explictly. While this is valid syntax---and so not a bug---, the log looks odd and the space confuses microtype. So the question is if it is really needed.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Color=FF0000]{TeX Gyre Heros}

\begin{document}
blub
\end{document}

Further details

The default value of opacitiy is defined in font spec with a space:

  \tl_const:Nn \c__fontspec_opacity_tl {FF~}

This means that if the opacity is not given explictly, there is a space in the feature list, which shows up in the log as line feed:

(fontspec)             <->"TeXGyreHeros:mode=node;script=latn;language=dflt;+tli
g;color=FF0000FF
(fontspec)             ;"
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