Replace font

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-29 15:33:46 +07:00
parent fbfd9ee0db
commit c555e98081
6 changed files with 12 additions and 12 deletions

View File

@@ -947,16 +947,16 @@ function GameMode:drawSpeedStats(left, top)
love.graphics.rectangle("fill", left+3, top+3, 190, 145, 10, 10)
love.graphics.setColor(0.05,0.05,0.05,1)
love.graphics.rectangle("fill", left, top, 190, 145, 10, 10)
drawText("Efficiency Bonus: ", left+15, top+10, 1000, "left")
drawText("Efficiency Bonus: ", left+15, top+5, 1000, "left")
local lines = self.total_lines
if lines == 0 then lines = 1 end
if self.move_count == 0 then
drawText(string.format(" %4d Num. of Moves", self.target), left+15, top+25, 1000, "left")
drawText(string.format(" %4d Num. of Moves", self.target), left+15, top+20, 1000, "left")
else
drawText(string.format(" %4d Num. of Moves", self.move_count), left+15, top+25, 1000, "left")
drawText(string.format(" %4d Num. of Moves", self.move_count), left+15, top+20, 1000, "left")
end
drawText(string.format("/ %4d Active Frames", self.last_active), left+15, top+40, 1000, "left")
drawText(string.format("= %1.2f\n (0 added for hole)\n %1.2f %dpc Average\nx %s x Lines\n+ %4d", self.last_percent, self.total_speed_loss, #self.speed_table, self.bonus_components['speed'], self.last_speed), left+15, top+55, 1000, "left")
drawText(string.format("/ %4d Active Frames", self.last_active), left+15, top+35, 1000, "left")
drawText(string.format("= %1.2f\n (0 added for hole)\n %1.2f %dpc Average\nx %s x Lines\n+ %4d", self.last_percent, self.total_speed_loss, #self.speed_table, self.bonus_components['speed'], self.last_speed), left+15, top+50, 1000, "left")
end
function GameMode:drawLinesStats(left, top)
@@ -992,7 +992,7 @@ function GameMode:drawScoringInfo()
love.graphics.rectangle("fill", 68, 270, 140, 190, 10, 10)
love.graphics.setColor(0.05,0.05,0.05,1)
love.graphics.rectangle("fill", 65, 267, 140, 190, 10, 10)
drawBoldText(string.format("Replay in progress\n\n\n\n\n\n\n\n\n\n%s", formatTime(self.frames)), 70, 275, 1000, "left")
drawBoldText(string.format("Replay in progress\n\n\n\n\n\n\n\n\n%s", formatTime(self.frames)), 70, 275, 1000, "left")
drawBigText(string.format("%s", self.grade), 100, 143, 1000, "left")
self:drawInputDisplay(103,185)
elseif not PENTO_MODE then

View File

@@ -1,11 +1,11 @@
-- Fonts
FONT_tromi = love.graphics.newFont('res/fonts/MplusCodeLatin50-Regular.otf', 26)
FONT_bold = love.graphics.newFont('res/fonts/MplusCodeLatin50-Bold.otf', 26)
FONT_big = love.graphics.newFont('res/fonts/MplusCodeLatin50-Bold.otf', 54)
FONT_tromi = love.graphics.newFont('res/fonts/Iosevka-Bold.ttf' , 28)
FONT_big = love.graphics.newFont('res/fonts/Iosevka-Heavy.ttf', 56)
FONT_bold = love.graphics.newFont('res/fonts/Iosevka-Heavy.ttf', 28)
-- Icons
FONT_tromi:setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 26))
FONT_bold :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 26))
FONT_big :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 54))
FONT_tromi:setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 28))
FONT_bold :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 28))
FONT_big :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 56))
CHAR = require("char")
local font_height = FONT_tromi:getHeight() * 0.5

BIN
res/fonts/Iosevka-Bold.ttf Normal file

Binary file not shown.

BIN
res/fonts/Iosevka-Heavy.ttf Normal file

Binary file not shown.

Binary file not shown.