Add .woff file to binary format (#7202)

Fixes https://github.com/flutter/flutter/issues/25285
This commit is contained in:
liyuqian 2018-12-12 10:29:02 -08:00 committed by GitHub
parent 2bd75ae8ba
commit 793a08bbfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,7 @@ FileType identifyFile(String name, Reader reader) {
case '.ttf': return FileType.binary; // TrueType Font
case '.ttcf': // (mac)
case '.ttc': return FileType.binary; // TrueType Collection (windows)
case '.woff': return FileType.binary; // Web Open Font Format
case '.otf': return FileType.binary; // OpenType Font
// Graphics formats
case '.gif': return FileType.binary; // GIF