8000 woff2_decompress fails to unpack superOTC · Issue #141 · google/woff2 · GitHub
[go: up one dir, main page]

Skip to content

woff2_decompress fails to unpack superOTC #141

Open

Description

@davelab6

https://twitter.com/ken_lunde/status/1394496314197508103?s=19

Interestingly, @googlefonts’ woff2 project can convert the #SourceHanSans Super OTC into a WOFF2 Collection by executing woff2_compress, but executing woff2_decompress fails to convert the resulting WOFF2 Collection back into an OpenType Collection.

Related to #37

Activity

  1. davelab6 commented on May 18, 2021

    @davelab6
    MemberAuthor

    The woff_decompress silent failure is due to kDefaultMaxSize being set to 30 × 1024 × 1024, meaning 30MB, and this limit applies to the uncompressed size of the WOFF2. I built two TTCs with sizes just under and just over this threshold: the former succeeded and the latter failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0