Git Product home page Git Product logo

Comments (3)

rsheeter avatar rsheeter commented on May 8, 2024 1

Closing as this should already work. As @Pomax notes there is no table-specific optimization but you will still benefit from brotli. In our experience brotli run on a desubroutinized CFF often yields a smaller woff2 than the one you get if you feed in a highly subroutinzed CFF.

from woff2.

camertron avatar camertron commented on May 8, 2024

@strarsis I assume by "OTF support" you mean support for CFF-flavored TrueType fonts. This library should already handle CFF-flavored fonts. The WOFF2 spec only defines transformations for the glyf, loca, and hmtx tables, meaning the CFF table (and other supporting tables) can be used directly and do not need to be explicitly handled.

from woff2.

Pomax avatar Pomax commented on May 8, 2024

On a technical note, the WOFF2 spec only defines table compression, it does not limit which tables can and cannot be compressed: every single table (even including custom tables that have a valid SFNT directory entry) can be compressed as far as WOFF2 (and WOFF) are concerned.

There are additional optimizations around glyf/loca/hmtx, but those are on top of standard "any table" compression.

(of course, CFF and CFF2 tables are already highly compressed, so it's entirely possible that brotli has nothing meaningful to contribute there, but it should be entirely compressible if desired)

from woff2.

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.