mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:25:49 +08:00
1 parent
051fc3b65e
commit
cf8dfd046b
21 files changed
+1071
-237
No files matched your search
@@ -2957,8 +2957,7 @@ function refreshEditorFonts() {
|
||||
|
||||
async function readTextFont(font) {
|
||||
if (font.embedded) return (await callWASM("ofdgoEditorFont", font.id.slice(9))).bytes;
|
||||
if (font.file) return (await callWASM("ofdgoFontFace", await fontManager.read(font.file), font.index)).bytes;
|
||||
return fontManager.read(font);
|
||||
return (await callWASM("ofdgoFontFace", await fontManager.read(font.file || font), font.index || 0)).bytes;
|
||||
}
|
||||
|
||||
function updateTextFonts(item, refresh = false) {
|
||||
|
||||
Reference in new issue
Block a user