Homebrew Using the 3DS system font in homebrew?

Status
Not open for further replies.

flarn2006

Well-Known Member
OP
Member
Joined
Apr 6, 2014
Messages
394
Trophies
0
Age
30
XP
523
Country
United States
I think it would be nice if I could display text in a homebrew application using the 3DS's built-in system font. You know, the one that you see in the home menu, and all the system software. That way I could make it actually look like an official 3DS application, and also make use of the various system icons in the Unicode private use area (such as icons for the buttons on the system.) Since many games use this font as well, I'm guessing there's a way to have the OS render text from a system-wide copy of the font--that way I wouldn't have to get a license to distribute the font with my program, in which case I might as well just use a different font with a free license.

I do have a copy of the official SDK that got leaked a while ago, and that seems to support my theory that it's possible to just load the font from the OS, as one of the examples that displays text in that particular font refers to it as a "shared font".

So what I'm asking is does anyone know of a way to use this functionality from homebrew without having to link with Nintendo's official libnn library?
 

flarn2006

Well-Known Member
OP
Member
Joined
Apr 6, 2014
Messages
394
Trophies
0
Age
30
XP
523
Country
United States
I believe so, but there's a few issues:
  • I doubt that font is free. I did find a copy someone posted somewhere, but still I don't think I'd be allowed to distribute it with a homebrew app unless I paid a royalty. I'll still post the link though if a moderator says it's okay.
  • The version that's installed in the 3DS OS also contains several glyphs specific to the 3DS (and other Nintendo consoles too, interestingly.) Even if I bought that font and got the proper license to distribute it (which really wouldn't be worth it for a homebrew app) I doubt the version I get will have those.
  • If it's already built into the operating system, I'd rather not inflate the file size by including a separate copy.
If I use the version built into the operating system, I won't need to get a license to redistribute it, I'll be able to use those glyphs, and I won't need to inflate the file size by including it as a separate file.
 
  • Like
Reactions: Jwiz33

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I think it would be nice if I could display text in a homebrew application using the 3DS's built-in system font. You know, the one that you see in the home menu, and all the system software. That way I could make it actually look like an official 3DS application, and also make use of the various system icons in the Unicode private use area (such as icons for the buttons on the system.) Since many games use this font as well, I'm guessing there's a way to have the OS render text from a system-wide copy of the font--that way I wouldn't have to get a license to distribute the font with my program, in which case I might as well just use a different font with a free license.

I do have a copy of the official SDK that got leaked a while ago, and that seems to support my theory that it's possible to just load the font from the OS, as one of the examples that displays text in that particular font refers to it as a "shared font".

So what I'm asking is does anyone know of a way to use this functionality from homebrew without having to link with Nintendo's official libnn library?

On 3DBrew, this is what I found: http://www.3dbrew.org/wiki/System_Font

Processes can get the sharedmem_handle+vaddr for mapping the sharedmem for this via APT:GetSharedFont.

You'd probably have to draw it manually at this point.
 
  • Like
Reactions: flarn2006

flarn2006

Well-Known Member
OP
Member
Joined
Apr 6, 2014
Messages
394
Trophies
0
Age
30
XP
523
Country
United States
Sorry for the double post, but I wasn't sure if you saw this, @flarn2006: https://github.com/devkitPro/3ds-examples/blob/master/graphics/printing/system-font/source/main.c

The system font was finally reversed.

Oh cool, thanks for telling me! It looks kind of complicated; I'll see what adding it to my graphing calculator app would involve. Do you know what the license for the devkitPro examples is? I'd like to be able to just copy the functions from the example that handle the technical aspects of drawing text. I'm almost positive it's allowed, but I'd like to know what the rules are.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs