Add .woff file to binary format (flutter/engine#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 efc116e72c
commit bc52fcc390

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