Update fonts.

This commit is contained in:
Tipx-L 2023-08-25 11:38:28 -07:00
parent 457c69f2df
commit 3f607d3017
14 changed files with 5 additions and 5 deletions

Binary file not shown.

BIN
font/huangcao.woff2 Normal file

Binary file not shown.

Binary file not shown.

BIN
font/shousha.woff2 Normal file

Binary file not shown.

Binary file not shown.

BIN
font/suits.woff2 Normal file

Binary file not shown.

Binary file not shown.

BIN
font/xiaozhuan.woff2 Normal file

Binary file not shown.

BIN
font/xingkai.woff2 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
font/yuanli.woff2 Normal file

Binary file not shown.

View File

@ -7813,10 +7813,10 @@
appearenceConfig.identity_font.item[value]=font; appearenceConfig.identity_font.item[value]=font;
appearenceConfig.cardtext_font.item[value]=font; appearenceConfig.cardtext_font.item[value]=font;
appearenceConfig.global_font.item[value]=font; appearenceConfig.global_font.item[value]=font;
fontSheet.insertRule(`@font-face {font-family: '${value}'; src: local('${font}'), url('${lib.assetURL}font/${value}.ttf');}`,0); fontSheet.insertRule(`@font-face {font-family: '${value}'; src: local('${font}'), url('${lib.assetURL}font/${value}.woff2');}`,0);
if(suitsFont) fontSheet.insertRule(`@font-face {font-family: '${value}'; src: local('${font}'), url('${lib.assetURL}font/suits.ttf');}`,0); if(suitsFont) fontSheet.insertRule(`@font-face {font-family: '${value}'; src: local('${font}'), url('${lib.assetURL}font/suits.woff2');}`,0);
}); });
if(suitsFont) fontSheet.insertRule(`@font-face {font-family: 'Suits'; src: local('Noname Suit'), url('${lib.assetURL}font/suits.ttf');}`,0); if(suitsFont) fontSheet.insertRule(`@font-face {font-family: 'Suits'; src: local('Noname Suit'), url('${lib.assetURL}font/suits.woff2');}`,0);
appearenceConfig.cardtext_font.item.default='默认'; appearenceConfig.cardtext_font.item.default='默认';
appearenceConfig.global_font.item.default='默认'; appearenceConfig.global_font.item.default='默认';
} }
@ -40148,11 +40148,11 @@
zip.load(data); zip.load(data);
var images=[],audios=[],fonts=[],directories={},directorylist=[]; var images=[],audios=[],fonts=[],directories={},directorylist=[];
for(var i in zip.files){ for(var i in zip.files){
var ext=i.slice(i.lastIndexOf('.')+1); var ext=i.slice(i.lastIndexOf('.')+1).toLowerCase();
if(i.indexOf('audio/')==0&&(ext=='mp3'||ext=='ogg')){ if(i.indexOf('audio/')==0&&(ext=='mp3'||ext=='ogg')){
audios.push(i); audios.push(i);
} }
else if(i.indexOf('font/')==0&&ext=='ttf'){ else if(i.indexOf('font/')==0&&ext=='woff2'){
fonts.push(i); fonts.push(i);
} }
else if(i.indexOf('image/')==0&&(ext=='jpg'||ext=='png')){ else if(i.indexOf('image/')==0&&(ext=='jpg'||ext=='png')){