1
0
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:
Galen Huntington 2025-01-23 10:18:02 -08:00 committed by GitHub
parent 9aed6a5248
commit b04af8bf7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -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"]);

View File

@ -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"
} }
] ]
} }

View File

@ -1,2 +1,2 @@
title: $:/themes/tiddlywiki/starlight/arvo.woff title: $:/themes/tiddlywiki/starlight/arvo.woff
type: application/font-woff type: font/woff