Giter VIP home page Giter VIP logo

Comments (5)

kenmcd avatar kenmcd commented on August 25, 2024 1

Great. Sounds like you are all set.
Please close this issue.

from inter.

kenmcd avatar kenmcd commented on August 25, 2024

That is the calt Contextual alternates feature.
Go further down the page: https://rsms.me/inter/#features
And look at these two OpenType features

  • calt Contextual alternates
  • case Case alternates

calt is On by default and is affecting the parentheses based on being next to uppercase or lowercase characters.
You can turn calt Off and you will get only the lower parentheses.
Or you can turn case On and get only the higher parentheses.

Go to the Lab page and test.
https://rsms.me/inter/lab/?antialias=default&size=76
The case toggle is near the top right
The calt toggle is near the lower right

from inter.

Alexn117 avatar Alexn117 commented on August 25, 2024

That is the calt Contextual alternates feature. Go further down the page: https://rsms.me/inter/#features And look at these two OpenType features

  • calt Contextual alternates
  • case Case alternates

calt is On by default and is affecting the parentheses based on being next to uppercase or lowercase characters. You can turn calt Off and you will get only the lower parentheses. Or you can turn case On and get only the higher parentheses.

Go to the Lab page and test. https://rsms.me/inter/lab/?antialias=default&size=76 The case toggle is near the top right The calt toggle is near the lower right

Interesting, I didn't know this was a thing. How do I turn it Off in CSS? Also, is the norm to have it On by default?

from inter.

kenmcd avatar kenmcd commented on August 25, 2024

Also, is the norm to have it On by default?

Yes. OpenType standards are for certain features to be On by default - so calt is On by default.

How do I turn it Off in CSS?

From the link at the top of the Features page...
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings

from inter.

Alexn117 avatar Alexn117 commented on August 25, 2024

Also, is the norm to have it On by default?

Yes. OpenType standards are for certain features to be On by default - so calt is On by default.

How do I turn it Off in CSS?

From the link at the top of the Features page... https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings

Great! I found the section near the very bottom: https://rsms.me/inter/#faq-using-features

From Mozilla: https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings#syntax

Whenever possible, Web authors should instead use the font-variant shorthand property or an associated longhand property . . .

It seems it is recommended to use the font-variant properties when possible, so I turned calt Off with this:

font-variant-ligatures: no-contextual;

from inter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.