Skip to content

WOFF2 fonts embeded as base64 as text/plain #183

Description

@brgrz

When you say embed as base64 data URI in CSS and pick a WOFF2 font (for instance, the Fontello service gives us WOFF2 now), WE 2015 will embed it as text/plain mime type.

This results in warnings and errors in browsers, for instance in Chrome you will get

OTS parsing error: Failed to convert WOFF 2.0 font to SFNT

and

Failed to decode downloaded font: data:text/plain;base64,d09GMgABAAAAAAocAA8AAAAAFVQAAAnDAAEAAAAAAAAAAAAAAAAA…NwpxA+iWbSfTXSzP/ehs2ynd70uKsbX+bonUNM2Gx8f9HKpOX6zoeokmjTPxnHXH6fYhIAAAA=

The correct mime type is font/woff2. If I manually replace text/plain with font/woff2 all works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions