psb1558 / Junicode-font

A new version of Junicode font
SIL Open Font License 1.1
396 stars 17 forks source link

No Contextual Swash Uppercase Q #163

Open amarakon opened 1 year ago

amarakon commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

And italic:

image
amarakon commented 1 year ago

Looks good!