Homebrew Homebrew app NFlib fonts not working

  • Thread starter Thread starter JoeySyntax
  • Start date Start date
  • Views Views 1,038
  • Replies Replies 2

JoeySyntax

Well-Known Member
Member
Joined
Nov 12, 2020
Messages
112
Reaction score
84
Trophies
1
Age
26
XP
1,187
Country
United States
I did some test rom that used NFLib's 3D Sprite feature, along with some modulo tests. When implementing 8x8 fonts, or 8x16 fonts, I get this error:

desmume-screenshot-0.png


I've tried several different fonts, even the default font found in the NFlib examples, but to no avail. I honestly have no idea what is going on..
 

Attachments

NF_WriteText(1,1,(SCREEN_WIDTH/2),SCREEN_HEIGHT - 16, "Welcome To Superball");

This function doesn't use screen coordinates. Try something like NF_WriteText(1,1,3,3, "Welcome To Superball"); to see if that is the problem.
 
  • Like
Reactions: plasturion
right SCREEN_WIDTH refer to pixel coordinates, and text refer to 8x8px tile position, so max x is 32 (256/8) and max y 24 (192/8)
 

Site & Scene News

Popular threads in this forum