I just downloaded Juicy Fonts (mainly for the word wrap), put together a font, and put it in a game with these lines:
Why does the text appear half off the top of the screen and a little off the left side?
I haven't used Origin (which would have altered the whole screen anyway). I think the letters are individually centered, in case that's important. Also, I put all of the Juicy Fonts commands (including the Include line) after the Graphics call, as the website said that something or other had to be done after the graphics mode was set.
Thank you!
Graphics 640, 480 SetBuffer BackBuffer() AutoMidHandle True SeedRnd MilliSecs() Include "LIB_juicy_fonts.bb" frametimer = CreateTimer(27) Global thefont = jf_load_font("Kartika32.png") Color 0, 0, 0 ;Doesn't affect the JF font. It's in there for the normal text ;A few constants and globals that I wouldn't think would affect the fonts ;Then a few types, but I don't think any match the ones in the LIB ;After that, I create everything, draw a title screen, then -- While Not KeyDown(1) WaitTimer(frametimer) Cls If playerhp > 0 And level <= 50 ... jf_text(thefont, <b>450,</b> 0, "Level: ", 0, 0)
Why does the text appear half off the top of the screen and a little off the left side?
I haven't used Origin (which would have altered the whole screen anyway). I think the letters are individually centered, in case that's important. Also, I put all of the Juicy Fonts commands (including the Include line) after the Graphics call, as the website said that something or other had to be done after the graphics mode was set.
Thank you!