Does anyone know wii u BFFNT font file structure?

Discussion in 'Wii U - Hacking & Backup Loaders' started by 0xffcf, Jul 20, 2016.

  1. 0xffcf
    OP

    0xffcf Member

    Newcomer
    24
    0
    May 20, 2016
    United States
    Hi! I want to make a translation of wii u games but there is NO font editor(so I can't make a translation).
    So, I want to make a BFFNT edit tool.
    Does anyone know wii u's BFFNT file structure?
     
  2. Neouni

    Neouni Advanced Member

    Newcomer
    68
    22
    Sep 28, 2004
    Netherlands
    Last edited by Neouni, Jul 20, 2016
  3. Bug_Checker_

    Bug_Checker_ GBAtemp Advanced Fan

    Member
    950
    444
    Jun 10, 2006
    United States
    Code:
    FINF Header
    Version 4 (BFFNT)
    Offset Size Description
    0x00 0x04 Magic Header (FINF)
    0x04 0x04 Section Size
    0x08 0x01 Font Type
    0x09 0x01 Height
    0x0A 0x01 Width
    0x0B 0x01 Ascent
    0x0C 0x02 Line Feed
    0x0E 0x02 Alter Char Index
    0x10 0x03 Default Width (3 bytes: Left, Glyph Width, Char Width)
    0x13 0x01 Encoding
    0x14 0x04 TGLP Offset
    0x18 0x04 CWDH Offset
    0x1C 0x04 CMAP Offset
    
    Source:
    https://www.3dbrew.org/wiki/BCFNT#Version_4_.28BFFNT.29

    Code:
    TGLP Header
    Version 4 (BFFNT)
    Offset Size Description
    0x00 0x04 Magic Header (TGLP)
    0x04 0x04 Section Size
    0x08 0x01 Cell Width
    0x09 0x01 Cell Height
    0x0A 0x01 Number of Sheets
    0x0B 0x01 Max Character Width
    0x0C 0x04 Sheet Size
    0x10 0x02 Baseline Position
    0x12 0x02 Sheet Image Format 0-13: (RGBA8, RGB8, RGBA5551, RGB565, RGBA4, LA8, HILO8, L8, A8, LA4, L4, A4, ETC1, ETC1A4)
    0x14 0x02 Number of Sheet columns
    0x16 0x02 Number of Sheet rows
    0x18 0x02 Sheet Width
    0x1A 0x02 Sheet Height
    0x1C 0x04 Sheet Data Offset
    
    Source:
    https://www.3dbrew.org/wiki/BCFNT#Version_4_.28BFFNT.29_2

    Source:
    https://www.3dbrew.org/wiki/BCFNT

    http://mk8.tockdom.com/wiki/BFFNT_(File_Format)

    https://gbatemp.net/threads/release-various-3ds-editing-tools.424118/
     
    Last edited by Bug_Checker_, Jul 20, 2016
  4. kavid

    kavid GBAtemp Advanced Fan

    Member
    550
    38
    Sep 28, 2008
    Switzerland
    it not support wiiu's bffnt.