移除barlow字体

This commit is contained in:
MrZ626
2021-09-04 22:16:23 +08:00
parent bb3cc84ca4
commit 59356b9f28
4 changed files with 19 additions and 8 deletions

View File

@@ -26,13 +26,20 @@ function FONT.reset()
end
function FONT.init(mainFont,secFont)
assert(love.filesystem.getInfo(mainFont))
mainFont=love.filesystem.newFile(mainFont)
secFont=love.filesystem.newFile(secFont)
if secFont and love.filesystem.getInfo(secFont)then
secFont=love.filesystem.newFile(secFont)
else
secFont=false
end
function FONT.set(s)
if s~=currentFontSize then
if not fontCache[s]then
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
if secFont then
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
end
end
set(fontCache[s])
currentFontSize=s
@@ -41,14 +48,18 @@ function FONT.init(mainFont,secFont)
function FONT.get(s)
if not fontCache[s]then
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
if secFont then
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
end
end
return fontCache[s]
end
function FONT.reset()
for s in next,fontCache do
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
if secFont then
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
end
end
end
FONT.reset()

View File

@@ -45,7 +45,7 @@ end
--Load modules
require'Zframework'
FONT.init('parts/fonts/barlowCond.ttf','parts/fonts/puhui.ttf')
FONT.init('parts/fonts/puhui.ttf')
setFont=FONT.set
getFont=FONT.get
SCR.setSize(1280,720)--Initialize Screen size

Binary file not shown.

View File

@@ -21,7 +21,7 @@ return[=[
大型任务树模式; 可调场地宽度; 可调攻击系统; 组队战; 实时统计数据可视化
重做模式选择UI; 重做模组UI; 高级自定义序列; 加速下落; spike相关统计数据
方块位移/旋转动画; 更好的手柄支持; 场地格子边缘线; 模式数据分析; C2规则
Zone状态; 音效包; 手势操作; 特殊控件(虚拟摇杆等)
Domain状态; 音效包; 手势操作; 特殊控件(虚拟摇杆等)
区分各种消除(隔断/架空/混合/彩色/穿墙)
更复杂的攻击(数量/可抵消延时/不可抵消延时/反击/攻击/防御/洞数/连接/炸弹/厚度)
更细节的DAS选项; 成就系统; 拓展主题系统
@@ -36,7 +36,6 @@ return[=[
新BGM:Jazz nihilism(用于节日主题,by Trebor)
新增规则包系统,自定义游戏和联网对战可以有更多玩法了
新皮肤:shiny(C29H25N3O5)
英文默认字体改为Barlow
改动:
切换BGM时弹出BGM名称
音乐室显示bgm进度,添加可拖进度条
@@ -46,12 +45,13 @@ return[=[
回合制模式改为7块一个回合与两条命
代码:
重写ai相关代码(轻微影响难度),新增BOT模块方便未来接入更多机器人
修改主循环帧率限制策略,尝试修复部分设备帧率不稳定(可能消耗更多性能)
修改主循环帧率限制策略,尝试修复部分设备帧率不稳定(可能消耗一点性能)
大规模整理ai相关代码
方块对象内记录旋转系统
大规模整理玩家创建特效相关方法
调整loadLib加载安卓so库的策略
控制台添加删除模式排行榜的命令
代码进一步规范化
修复:
master-ph模式录像回放时有不一致 #226
cc旋转第一个i块会报错