mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
@@ -373,7 +373,7 @@ async function loadDocumentLocalFonts(available, openSeq = state.openSeq) {
|
|||||||
const docNames = externalDocumentFontNames();
|
const docNames = externalDocumentFontNames();
|
||||||
if (!docFonts.length) {
|
if (!docFonts.length) {
|
||||||
state.localFonts = [];
|
state.localFonts = [];
|
||||||
setStatus("当前 OFD 未声明字体");
|
setStatus("暂无字体");
|
||||||
updateFontSummary();
|
updateFontSummary();
|
||||||
renderFontList();
|
renderFontList();
|
||||||
return false;
|
return false;
|
||||||
@@ -1356,7 +1356,7 @@ function renderDocumentFonts() {
|
|||||||
if (!fonts.length) {
|
if (!fonts.length) {
|
||||||
const empty = document.createElement("div");
|
const empty = document.createElement("div");
|
||||||
empty.className = "font-empty";
|
empty.className = "font-empty";
|
||||||
empty.textContent = "未声明字体";
|
empty.textContent = "暂无字体";
|
||||||
el.docFontList.append(empty);
|
el.docFontList.append(empty);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user