Page 1 of 1

Love2d Cant Find Font File

Posted: Tue Feb 09, 2016 3:07 pm
by MartenMoti
I am trying to import a custom font into love to use it later. I am using the following code:

Code: Select all

local font = love.graphics.newFont("fonts/pixelmix.tff", 15)
I have my main folder, inside there is my main.lua. In that folder is a folder named "fonts" which contains "pixelmix.tff". The error I get is the following error message:

"Error: Could not open file fonts/pixelmix.tff. Does not exist."

Thanks in advance

Re: Love2d Cant Find Font File

Posted: Tue Feb 09, 2016 3:25 pm
by bartbes
Are you sure it's not called "pixelmix.ttf"? Also note that it's case-sensitive.

Re: Love2d Cant Find Font File

Posted: Tue Feb 09, 2016 3:51 pm
by MartenMoti
Well that just fixed it. Wow I feel stupid. thanks