更改字体文件存放位置,并对应修正ci (#254)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user