fnt load not working

Issue #28 resolved
Benjamin Hoffmann created an issue

I'm not able to load fnt. I have no error message but the text is not displayed.

Here is a sample :

import "mod_say"
import "mod_proc"
import "mod_grproc"
import "mod_map"
import "mod_text"
import "mod_key"
import "mod_video"
import "mod_screen"
import "mod_draw"
import "mod_video"
import "mod_curl"
import "mod_say"
import "mod_key"
import "mod_text"
import "mod_map"
import "mod_file"

global
    int font;
end

process int main();

begin
    set_mode(800, 600);
    set_fps(60, 0);
    font = fnt_load("font.fnt");
    write(font, 0, 0, 0, "Test");
loop
    if(key(_esc))
        break;
    end
    frame;
    end
end

I'm using the fnt file from the project example folder. I don't know if the problem come from my computer config, maybe it's the same problem than png's one. I will make some tries again.

Comments (3)

  1. Joseba Echevarria García repo owner

    This might be related to issue #25, since the code works as expected in my computer. Let's try to fix issue #25 first and then see it we can fix this one.

  2. Joseba Echevarria García repo owner

    I can load the FNT file correctly given the considerations in issue #25, so I'm going to close the issue for now.

  3. Log in to comment