Homebrew Homebrew app NFlib fonts not working

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
72
Trophies
0
Age
24
XP
685
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

  • font_text.zip
    709.2 KB · Views: 27

akbat

Member
Newcomer
Joined
Sep 2, 2020
Messages
6
Trophies
0
Age
27
XP
98
Country
United States
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

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,260
Trophies
2
Location
Tree
XP
3,582
Country
Poland
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

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +2
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    He could make so much money!!! His arm would never get tired lol
    +2
  • S @ salazarcosplay:
    How are yall doing
    +2
  • VXNlcm5hbWU @ VXNlcm5hbWU:
    Just had a pure banger of a sandwich there, was very nice
    +1
    VXNlcm5hbWU @ VXNlcm5hbWU: Just had a pure banger of a sandwich there, was very nice +1