Homebrew Homebrew app NFlib fonts not working

Project68K

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

akbat

Member
Newcomer
Joined
Sep 2, 2020
Messages
6
Trophies
0
Age
27
XP
97
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,214
Trophies
2
Location
Tree
XP
3,501
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
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: I did use a bot for Diablo III though but no ban there lol