Homebrew Homebrew app NFlib fonts not working

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
72
Trophies
0
Age
24
XP
681
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,256
Trophies
2
Location
Tree
XP
3,577
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
  • Veho @ Veho:
    Look, it's China. They know what it's like when you give a poll to half a billion trolls.
    +1
  • K3Nv2 @ K3Nv2:
    How much dollar do you think it is?
  • Veho @ Veho:
    ONE MILLION DOLLA
    +1
  • Veho @ Veho:
    I know the pricing of electronics nowadays isn't "how much it actually costs" but "how much we can get away with", but putting up a poll is just cynical.
    +1
  • K3Nv2 @ K3Nv2:
    Probably $150 someone said Anbernic said around the same price as rg556
  • Julie_Pilgrim @ Julie_Pilgrim:
    you know which game i wish they would rerelease
  • Julie_Pilgrim @ Julie_Pilgrim:
    sonic unleashed
  • K3Nv2 @ K3Nv2:
    Make it a happy meal toy
  • Julie_Pilgrim @ Julie_Pilgrim:
    that game's engine is really fucking intensive so it runs like literal shit on xbox 360 and ps3
  • Veho @ Veho:
    Nah I'm getting value creep again. I look at a $50 console "but for just a few more dollars you could get XYZ" and I end up considering the Steam Deck.
    +1
  • Julie_Pilgrim @ Julie_Pilgrim:
    like the lighting in that game was genuinely so good
  • Veho @ Veho:
    Not getting dragged into that again.
  • Julie_Pilgrim @ Julie_Pilgrim:
    i dont get why they didn't port the one game that ran the worst on consoles, to pc
  • Julie_Pilgrim @ Julie_Pilgrim:
    like you port everything to pc except the one game where it would make the most sense. why. what do you gain from this
  • Julie_Pilgrim @ Julie_Pilgrim:
    is sega just personally fucking with me? are they laughing while watching me through my kinect camera as i get up to restart my xbox for the third time because the game froze again
  • K3Nv2 @ K3Nv2:
    Buy handhelds from five below better quality
  • K3Nv2 @ K3Nv2:
    Valve probably going to do another refresh of the deck this fall with rog ally like specs tbh
    +1
  • Veho @ Veho:
    A smaller form factor would be nice too.
    +1
  • K3Nv2 @ K3Nv2:
    A shield portable 2 would be nice aye Nvidia
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    The big leap in all things tech is when carbon based chips start hitting.
  • Psionic Roshambo @ Psionic Roshambo:
    Longer battery life cooler temps and faster! What's not to like lol (probably expensive as hell)
  • AncientBoi @ AncientBoi:
    [checks my dildo(s) batteries, coolant and lube] :O [promptly replaces them] :D
    K3Nv2 @ K3Nv2: https://anbernic.com/products/rg-cube well there we go $160