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

No Contextual Swash Uppercase Q #163

Open
amarakon opened this issue Mar 15, 2023 · 4 comments
Open

No Contextual Swash Uppercase Q #163

amarakon opened this issue Mar 15, 2023 · 4 comments

Comments

@amarakon
Copy link

amarakon commented Mar 15, 2023

In Junicode, the uppercase Q would go under a lowercase U but not a lowercase I. Therefore, collisions are avoided. In Junicode Two Beta, I can still get the swash Q via the swsh OpenType feature, but it will not be automatically disabled to avoid collisions. I am using LaTeX. Here is a minimum working example you can try out:

\documentclass[varwidth]{standalone}

\usepackage{fontspec}
\setmainfont{Junicode Two Beta VF}

\begin{document}

Que Qiy\\
\addfontfeatures{Style = Swash} Que Qiy

\end{document}
@psb1558
Copy link
Owner

psb1558 commented Mar 15, 2023

What was going on with Q in Junicode 1 wasn't nearly as clever as what you describe: the long-tail Q appeared only when u followed: I think it was a Qu ligature. For Junicode 2 I wanted something switchable, so users could have a choice between the short-tail and long-tail Q without having to disable a feature that was normally always on. So you select long-tail Q with cv33[3] and longer-tail Q with cv33[4].

But something like what you're describing is actually easy to do: once cv33[3] or cv33[4] is on, the default Q can be substituted when followed by a letter with a descender. I'll add a couple of contextual rules to do that.

@psb1558
Copy link
Owner

psb1558 commented Mar 15, 2023

Like this. With cv33[3] selected, you get:
image
With cv33[4], you get:
image
But without cv33, it's always just the default Q:
image

@psb1558
Copy link
Owner

psb1558 commented Mar 16, 2023

And italic:
image

@amarakon
Copy link
Author

Looks good!

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

2 participants