-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
calt being too smart: Punctuation alignment #193
Comments
This is probably part of the case alternates Opentype feature. Are you able to disable any opentype features in your app? |
The problem is that these case alternatives are impelemented in |
@be5invis Indeed, the behavior above is with Of course, turning @Derpitron In my case (ahem), I'm not able to control specific OpenType features (thanks, Qt). However, I'm fine with modifying Inter for our use as needed, so I'm just reporting this issue to see if it warrants a fix in the original font. |
This is an unfortunate outcome of In any case, I think there’s room for improvement to the Anyhow, disabling |
@jmk I hope this looks good to you. If you have any more sample text of tricky situations, please do post them here and I’ll make sure to add them to test matter. |
Hello, I just was about to report something that is probably related. There is an issue in parenthesis alignment as soon as you put numbers within. I get the issue in firefox or Pango (gtk3 rendering), either using TTF (without hint) or OTF variants. Thank’s ! |
Describe the bug
In certain contexts, the alternate vertical alignment of colons and parentheses produces odd results.
These look especially awkward for unusual strings like C++ types. I know this isn't a common use case for a face like Inter, but these strings do appear in our app UI.
However, there are other (somewhat contrived) cases where these contextual alternates produce unexpected results as well.
To Reproduce
Steps to reproduce the behavior:
In the lab, I used a string like "Foo::Bar() foo::Bar() F" to produce a few examples of odd alignment. See the screenshot below for a few more.
In the first case, the two colons aren't aligned together. I'm a bit surprised that the second colon is shifted up because there are no numerals, but this appears to be caused by the capital B that follows.
In the second case, the same thing is happening to the parenthesis because of the capital letter F at the end. Given that it's a closing parenthesis, I'm surprised that a subsequent letter influences its alignment.
Given that these cases aren't very likely in ordinary prose, I'm not sure if there are additional contextual rules that will solve these cases without affecting other more common use cases.
Expected Results
I'd expect all colons and parentheses in these examples to have the default (lowercase-aligned) vertical positioning.
Screenshots
Example text in the lab (Safari on 10.14):
Environment
The text was updated successfully, but these errors were encountered: