1. Anders Ruud
  2. love

Issues

Issue #73 resolved

newImageFont() gives error - Could not decode image!

the_leg
created an issue

The following example errors out with "Error: Could not decode image!". This is in the latest love (tip). {{{

!lua

function love.load() img = love.image.newImageData("imagefont.png") font = love.graphics.newImageFont(img, " abc") end }}}

It looks like what's happening in the C++ code is that love is trying to convert the image data I pass in, into image data. Attached is the imagefont.png that I used.

Comments (2)

  1. Log in to comment