mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-27 09:24:45 +00:00
Bug fix: TTF extension was wrong. update font types, add OTF type. (#8898)
* Bug fix: TTF extension was wrong. * Update font MIME types throughout; add font/otf.
This commit is contained in:
parent
9aed6a5248
commit
b04af8bf7a
@ -2467,9 +2467,10 @@ $tw.boot.initStartup = function(options) {
|
|||||||
$tw.utils.registerFileType("image/vnd.microsoft.icon","base64",".ico",{flags:["image"]});
|
$tw.utils.registerFileType("image/vnd.microsoft.icon","base64",".ico",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
|
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("application/wasm","base64",".wasm");
|
$tw.utils.registerFileType("application/wasm","base64",".wasm");
|
||||||
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
$tw.utils.registerFileType("font/woff","base64",".woff");
|
||||||
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
|
$tw.utils.registerFileType("font/woff2","base64",".woff2");
|
||||||
$tw.utils.registerFileType("application/font-woff2","base64",".woff2");
|
$tw.utils.registerFileType("font/ttf","base64",".ttf");
|
||||||
|
$tw.utils.registerFileType("font/otf","base64",".otf");
|
||||||
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
|
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
|
||||||
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
||||||
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);
|
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"isTiddlerFile": false,
|
"isTiddlerFile": false,
|
||||||
"fields": {
|
"fields": {
|
||||||
"title": {"source": "filename", "prefix": "$:/plugins/tiddlywiki/katex/fonts/"},
|
"title": {"source": "filename", "prefix": "$:/plugins/tiddlywiki/katex/fonts/"},
|
||||||
"type": "application/font-woff"
|
"type": "font/woff"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -37,4 +37,4 @@
|
|||||||
"suffix": "})(require);\n"
|
"suffix": "})(require);\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/themes/tiddlywiki/starlight/arvo.woff
|
title: $:/themes/tiddlywiki/starlight/arvo.woff
|
||||||
type: application/font-woff
|
type: font/woff
|
||||||
|
Loading…
Reference in New Issue
Block a user