Giter VIP home page Giter VIP logo

Comments (5)

RazrFalcon avatar RazrFalcon commented on May 25, 2024 2

Just to clarify even more, by disabling variable fonts support variable OpenType fonts (CFF2) will stop working (can be fixed in the future). Regular OpenType fonts (CFF) will continue working.
TrueType fonts (glyf) will work anyway and will be outlined using the default variation style (i.e. without applying the variation deltas).

Disabling variable fonts makes ttf-parser 2x smaller binary-wise and slightly faster in some operations.

from ttf-parser.

RazrFalcon avatar RazrFalcon commented on May 25, 2024 1

I will publish a new release now, but note that a new version has variable fonts support as an optional feature. Afaik, you're using --no-default-features.

from ttf-parser.

RazrFalcon avatar RazrFalcon commented on May 25, 2024

Yes, this is definitely a bug.

from ttf-parser.

RazrFalcon avatar RazrFalcon commented on May 25, 2024

Because ttf-parser is zero-allocation, we have to limit variation tuples to 16 while the technical limit is 4095. And this font uses 15-23. This is the reason.

I will increase the limit to 32. This should be good enough.

PS: on older Rust versions I had a drastic performance regression when using larger tuples stack, but looks like it was fixed, because on 1.49 I don't see any performance differences.

Wrong benchmark... it did made gvar parsing 10% slower.

from ttf-parser.

alexheretic avatar alexheretic commented on May 25, 2024

Thanks for looking into this & the heads up about the features 👍 I'll take a look at the feature activation up the stack.

from ttf-parser.

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.