更改字体文件存放位置,并对应修正ci (#254)

This commit is contained in:
scdhh
2021-08-29 12:15:40 +08:00
committed by GitHub
parent e726ef505f
commit 66dcfa40b0
5 changed files with 15 additions and 15 deletions

View File

@@ -3,11 +3,11 @@ local newFont=gc.setNewFont
local setNewFont=gc.setFont
local fontCache,currentFontSize={}
if
love.filesystem.getInfo('barlowCond.ttf')and
love.filesystem.getInfo('puhui.ttf')
love.filesystem.getInfo('font/barlowCond.ttf')and
love.filesystem.getInfo('font/puhui.ttf')
then
local fontData=love.filesystem.newFile('barlowCond.ttf')
local fallback=love.filesystem.newFile('puhui.ttf')
local fontData=love.filesystem.newFile('font/barlowCond.ttf')
local fallback=love.filesystem.newFile('font/puhui.ttf')
function setFont(s)
if s~=currentFontSize then
if not fontCache[s]then