重构字体模块,支持多字体

控制台应用等宽字体
This commit is contained in:
MrZ626
2021-11-27 04:24:40 +08:00
parent 4e759cad4c
commit 3226c0c831
7 changed files with 82 additions and 75 deletions

View File

@@ -50,7 +50,13 @@ local _LOADTIME_=TIME()
--Load modules
Z=require'Zframework'
FONT.load('parts/fonts/proportional.ttf')
FONT.load{
norm='parts/fonts/proportional.ttf',
mono='parts/fonts/monospaced.ttf',
}
FONT.setDefault('norm')
FONT.setFallback('norm')
SCR.setSize(1280,720)--Initialize Screen size
BGM.setMaxSources(5)
BGM.setChange(function(name)MES.new('music',text.nowPlaying..name,5)end)