font
This commit is contained in:
parent
56f3ba6fae
commit
572ff2fe9b
3 changed files with 7 additions and 1 deletions
BIN
Inter-Regular.otf
Normal file
BIN
Inter-Regular.otf
Normal file
Binary file not shown.
|
@ -17,3 +17,7 @@ Then launch the game like so: https://love2d.org/wiki/Getting_Started#Running_Ga
|
|||
![Previewing eases](./screenshot1.png)
|
||||
|
||||
![Mixing eases](./screenshot2.png)
|
||||
|
||||
## Attributions
|
||||
|
||||
Inter V Font: by The Inter Project Authors
|
2
main.lua
2
main.lua
|
@ -4,6 +4,7 @@ for k, v in pairs(_G) do
|
|||
end
|
||||
|
||||
love.graphics.setDefaultFilter('nearest', 'nearest')
|
||||
interfaceFont = love.graphics.newFont('Inter-Regular.otf', 16)
|
||||
|
||||
ease = require 'ease'
|
||||
|
||||
|
@ -31,6 +32,7 @@ fontHeight = love.graphics.getFont():getHeight()
|
|||
mode = nil
|
||||
|
||||
function love.load()
|
||||
love.graphics.setFont(interfaceFont)
|
||||
fontHeight = love.graphics.getFont():getHeight()
|
||||
createUI()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue