[Tutorial] Customising a System Font

Discussion in '3DS - Tutorials' started by RosaliinaDaHacker64, Jul 14, 2017.

  1. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Hey, I'm showing how to customize a font for 3DS and install it. This requires Luma3DS and Boot9Strap.

    Please backup your NAND before proceeding. I am not responsible if you brick. :)

    Requirements:
    FontTool
    Python (pick 2.7, not 3.6)
    GodMode9
    3dstool
    ctrtool
    make_cia
    ctr_FontConverter (can't link this SDK here)


    Let's start!

    Onto PC:
    1- Open ctr_FontConverter.exe
    2- Go to Windows Font tab for Input section
    3- Pick a font
    4- Set the size to 25 px and the Bit depth to 16 levels (A4) - important: always use 16 levels, selecting 2 levels will make texts look corrupted (garbled) in some games!
    5- On Output section, save as .bcfnt
    6- Hit Convert
    7- Move BCFNT to FontTool folder (you need 3dstool.exe, ctrtool.exe, and make_cia.exe in this folder)
    8- Open up Command Prompt or Windows PowerShell
    9- Type the following: FontTool.py -font <your outputted file>.bcfnt (sorry for confusing you, don't just input *.bcfnt)
    10- Hit Enter
    11- Copy the .cia file to SD card
    12- Remove SD card

    Onto 3DS:
    13- Insert SD card back into 3DS
    14- Power on and hold START to launch chainloader
    15- Open GodMode9
    16- Navigate to SD card
    17- Select .cia file
    18- Go to CIA image options... > Encrypt file (...) > Encrypt inplace
    19- Reboot 3DS
    20- Open FBI
    21- Select .cia file
    22- Install it
    23- Restart your system
    24- Voila!

    If you wanna revert the font, download 3DNUS, open it up, copy this TitleID into the box: 0004009B00014002 v0
    It'll export .cia file.
    Install with FBI and done.

    @TheMachinumps posted this batch tool that converts multiple BCFNTs to CIAs which has been made easier: https://gbatemp.net/threads/tutorial-customising-a-system-font.477415/#post-7449721
    This is better: https://gbatemp.net/threads/tutorial-customising-a-system-font.477415/page-2#post-7450055


    Q: Can I install font on completely stock/unhacked system?
    A: No, you need CFW.

    Q: Most button symbols such as Home icon are missing!
    A: I am trying to find the fix. But CTGP-7 has custom font with all text characters stayed intact. FontForge might be able to merge pieces of CafeStd.ttf (dumped off Wii U) into TTF/OTF before converting to BCFNT. This is unconfirmed. I will add this tutorial here soon...or someone may help me with that.
    20 Jul: OK, @PabloMK7 came to help me starting these posts, this is pretty difficult cuz you have to deal with alpha channel (transparency) and merge the symbols from original 3DS font onto new bitmap font image (.tga), so use paint.net. I will practice a bit more and I'll add the part of tutorial here.
    21 Jul: I found a way to port symbols to another font using FontForge. Open a TTF font of Wii U (dumped from NAND using FTPiiU_Everywhere) or Switch (from SDK), go to Private Use Area (starting with U+E000), double click on character, export as .eps . On other font you want on 3DS, select PUA, import EPS file (you have to resize), repeat - only do 3DS ones, not the rest of Wii U or Nintendo Switch symbols, then Generate font.

    Q: You have some copyrighted files sh*t (FontConverter, .CIA fonts) on video description!
    A: I know, it's not allowed to directly link such warez stuff here. Idk if linking this video counts as linking to copyrighted content, I am trying to distance such stuff away from here. (pls don't take 'em down or ban meh lol)

    Q: I bricked my 3DS while trying to install font :(
    A: Your font could be corrupted or it exceeded 1.5 MB. Restore NAND with GodeMode9.
    |
    Q: I have system apps' saves (StreetPass) I wanna keep.
    A: Open GodMode9, go to CTRNAND, copy 'data' folder to SD card, restore NAND and copy 'data' folder back. JK's Save Manager might not be able to backup most system saves...
    |
    Q: But I don't have a NAND backup ;-;
    A: Do CTRTransfer method.
    |
    Expert only

    Q: My custom font exceeded 1.5 MB!
    A: Switch to Image tab for Output section and save as .tga , on Image tab for Input section, open TGA (select A4 for Colour format), switch back to bcfnt / bcfna and save as BCFNT, hit Convert, this will reduce ALOT of filesize to few hundreds of KB's. Never use MsbtEditor to LZ-compress because FontTool does that for you. Trying to double compress and install font will brick 3DS, it still counts as not being able to load font.

    Q: The texts are wide as hell!
    A: On 'Font width' tick the box for "Specify average width" and try to adjust. I picked around 20px to squeeze the texts.

    Q: Does it work with Citra emulator?
    A: Yes, follow this instruction to acquire custom shared_font.bin

    Q: I went to Super Smash Bros. and the texts look garbled!
    A: You must set bit depth to 16 levels (A4), never 2 level.

    Video tutorial


    I have custom fonts made by me. https://www.dropbox.com/sh/bhrt5x82nxesi0g/AACrA-q0qmadcz_azik4uhLZa?dl=0
     
    Last edited by RosaliinaDaHacker64, Jul 21, 2017 at 10:11 PM


  2. Beerus

    Beerus Gbatemp's God Of Destruction

    Member
    141
    38
    May 3, 2017
    Canada
    Universe 7
    nice tutorial gonna try it out hopefully wont brick
     
  3. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Good luck
     
  4. Beerus

    Beerus Gbatemp's God Of Destruction

    Member
    141
    38
    May 3, 2017
    Canada
    Universe 7
    the ctr_FontConverter is in the youtube video description for anyone wondering

    — Posts automatically merged - Please don't double post! —

    i cant access the bit depth option
     
  5. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Yea, that's why I am not allowed to leave download link here.

    Your monitor screen has to be big enough to fit the window to be ablt to access bit depth, I know it's a pain. You can rotate screen by 90° by holding Alt Gr + Left/Right if it's 16:9 / widescreen.
     
    Last edited by RosaliinaDaHacker64, Jul 14, 2017
    Beerus likes this.
  6. Beerus

    Beerus Gbatemp's God Of Destruction

    Member
    141
    38
    May 3, 2017
    Canada
    Universe 7
    lol thank you!

    — Posts automatically merged - Please don't double post! —

    upload_2017-7-14_15-2-0.png got this error any idea how to fix this
     
    RosaliinaDaHacker64 likes this.
  7. MaiconErick

    MaiconErick Advanced Member

    Newcomer
    74
    4
    Jan 4, 2016
    Brazil
    Do we need to revert before updating the 3DS when a new firmware comes?
     
  8. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    576
    304
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    I for the life of me couldn't get "FontTool.py -font *.bcfnt" on its own to work for me.
    I did eventually get it to work by using "python FontTool.py -font <File Name>.bcfnt".
    Not entirely sure why it was finicky for me, but hopefully that helps someone else.

    Edit: Just finished some fonts. Great tutorial!
     
    Last edited by 8BitWonder, Jul 15, 2017
    RosaliinaDaHacker64 and Beerus like this.
  9. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    279
    134
    Oct 31, 2016
    Portugal
    yes
    You need 3dstool
     
    Beerus likes this.
  10. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Woops, I forgot to include those.

    @Beerus I added link for required executable files.
     
    Beerus likes this.
  11. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    279
    134
    Oct 31, 2016
    Portugal
    yes
    I'm just going to share this...
    Put the bcfnt files inside the fonts folder and open convert fonts.bat.
    It should convert every single bcfnt to cia. The cia files are saved to the out folder.
    It has everything, so you don't need to download any extra executables.
    Hope it makes it simpler (not that it was hard to begin with)
     

    Attached Files:

  12. Beerus

    Beerus Gbatemp's God Of Destruction

    Member
    141
    38
    May 3, 2017
    Canada
    Universe 7
    thanks for the solution i was so lost i gave up ill resum later on
     
    8BitWonder likes this.
  13. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    576
    304
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Make sure you also have ctrtool and 3dstool (along with make_cia) in the same directory as FontTool.py. the guide didn't mention that until a little while ago.
     
  14. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    279
    134
    Oct 31, 2016
    Portugal
    yes
    FontTool doesn't use ctrtool, so you don't need that.
     
  15. Beerus

    Beerus Gbatemp's God Of Destruction

    Member
    141
    38
    May 3, 2017
    Canada
    Universe 7
    lol alright guys ill do both
     
  16. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Wow, thanks, I'll give it a shot, and I'mma add to my main post.
     
  17. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    576
    304
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    The readme of FontTool mentioned it as a requirement, so I figured to use it. ¯\_(ツ)_/¯
     
    RosaliinaDaHacker64 likes this.
  18. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    279
    134
    Oct 31, 2016
    Portugal
    yes
    Yeah, but if you look at the code, it doesn't run "ctrtool" at all. It only runs "3dstool" and "make_cia" =P
     
    8BitWonder likes this.
  19. RosaliinaDaHacker64
    OP

    RosaliinaDaHacker64 don't click on me pls, it hurts :c

    Member
    549
    246
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Hm, you're right, I took a look inside the Python file and used Ctrl+F lol.
     
  20. RustInPeace

    RustInPeace Samurai Cop

    Member
    2,408
    1,515
    Oct 13, 2014
    United States
    Used the Pokemon GB font, thanks for the tutorial!

    Warning: Spoilers inside!
     
    Last edited by RustInPeace, Jul 15, 2017