Love2d Cant Find Font File

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MartenMoti
Prole
Posts: 2
Joined: Tue Feb 09, 2016 3:03 pm

Love2d Cant Find Font File

Post 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
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love2d Cant Find Font File

Post by bartbes »

Are you sure it's not called "pixelmix.ttf"? Also note that it's case-sensitive.
MartenMoti
Prole
Posts: 2
Joined: Tue Feb 09, 2016 3:03 pm

Re: Love2d Cant Find Font File

Post by MartenMoti »

Well that just fixed it. Wow I feel stupid. thanks
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 8 guests