This commit is contained in:
jill 2021-09-18 13:11:19 +03:00
parent 56f3ba6fae
commit 572ff2fe9b
3 changed files with 7 additions and 1 deletions

BIN
Inter-Regular.otf Normal file

Binary file not shown.

View file

@ -17,3 +17,7 @@ Then launch the game like so: https://love2d.org/wiki/Getting_Started#Running_Ga
![Previewing eases](./screenshot1.png) ![Previewing eases](./screenshot1.png)
![Mixing eases](./screenshot2.png) ![Mixing eases](./screenshot2.png)
## Attributions
Inter V Font: by The Inter Project Authors

View file

@ -4,6 +4,7 @@ for k, v in pairs(_G) do
end end
love.graphics.setDefaultFilter('nearest', 'nearest') love.graphics.setDefaultFilter('nearest', 'nearest')
interfaceFont = love.graphics.newFont('Inter-Regular.otf', 16)
ease = require 'ease' ease = require 'ease'
@ -31,6 +32,7 @@ fontHeight = love.graphics.getFont():getHeight()
mode = nil mode = nil
function love.load() function love.load()
love.graphics.setFont(interfaceFont)
fontHeight = love.graphics.getFont():getHeight() fontHeight = love.graphics.getFont():getHeight()
createUI() createUI()
end end