https://lovefont.surge.sh/
* open the tool in a browser
* set the characters you want in the first box
* set the font (it's CSS-style, so like "16px monospace") more fonts may be added later, but for now, it's just the fonts built-in to your browser, and whatever you have installed on your system (by name). The input box will match the style so you can see it without the the lines.
* set text (black) and spacer (red) colors to something different from each other. The can be anything, they just need to be different, so I use red for black text.
* Click download to save the font-image
You can use it in your code, like this:
Code: Select all
local font = love.graphics.newImageFont( "font.png", [[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-=_+!@#$%^&*()[]{}\|;':",./<>?↥↧↤↦]] )
love.graphics.setFont( font )
love.graphics.setBackgroundColor( 1,1,1,1 )
function love.draw()
love.graphics.print( "This is a test of the font. ↥↧↧↧", 0, 0 )
end