Giter VIP home page Giter VIP logo

Comments (4)

justvanrossum avatar justvanrossum commented on May 3, 2024

We could require that fonts themselves should make sure that the interpolated local designspace values cannot be out of bounds, but that feels a bit wrong.

from variable-components-spec.

justvanrossum avatar justvanrossum commented on May 3, 2024

Perhaps clamping between -1.0 and +1.0 is good enough, even for axes that don't go below 0.

varLib behaves correctly with such clamping (it simply doesn't apply a delta if the scalar is not between 0 and 1, or something to that effect).

from variable-components-spec.

behdad avatar behdad commented on May 3, 2024

Perhaps clamping between -1.0 and +1.0 is good enough, even for axes that don't go below 0.

That's what I do in avar2 proposal, clamp to -1..+1.

from variable-components-spec.

Lorp avatar Lorp commented on May 3, 2024

I raised this issue in respect of avar2. In that case, the only practical disadvantage of sticking to a simple -1..+1 seems to be that a polyfill would not be able to generate all the possibilities that the font is capable of in an avar2 environment. That doesn’t seem like a reason to forbid fonts that exploit the technique.

from variable-components-spec.

Related Issues (8)

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.