Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Kingdom Hearts 3 font

Featured Replies

  • Author
  • Localization

yusuf2020, posted Fri Dec 11, 2020 12:47 pm (61055)


I'm localizing Kingdom Hearts 3 but there is font problem.Can these be modified?
  • Author
  • Localization

yusuf2020, posted Sun Dec 20, 2020 11:35 am (61205)


Up
  • Author
  • Localization

LinkOFF, posted Tue Mar 02, 2021 11:35 am (62615)


I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header data table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw
  • Author
  • Localization

yusuf2020, posted Tue Mar 02, 2021 12:15 pm (62618)


Code:
/TresGame/Flash/91_font/TresFont.swf

It's extension is "swf"
If i know correctly, if we can extract this and repack this "TresFont.uexp"
JPEX Flash decompiler can help.
  • Author
  • Localization

LinkOFF, posted Tue Mar 02, 2021 2:49 pm (62621)


yusuf2020 wrote:
Code:
/TresGame/Flash/91_font/TresFont.swf

It's extension is "swf"
If i know correctly, if we can extract this and repack this "TresFont.uexp"
JPEX Flash decompiler can help.

SWF contains 4 unknown files. I guess this is TGA textures, but i can't bring them to correct look(maybe because it swizzled). I showed the structure of these files above.
  • Author
  • Localization

h3x3r, posted Thu Mar 04, 2021 6:48 am (62655)


LinkOFF wrote:
I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header data table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw


Hh nice guesswork but that file is actual SWF. Just cut first 289 bytes from TresFont.uexp and save as swf. There are also some of data on the end of file but its few bytes. Just save that cutted file with JPEXS and compare with original. It will show you which bytes are removed after saving.
Image

Here is 010 Hex Editor template to parse not whole file but at least the SWF you wanted.
Code:
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------
LittleEndian();
FSeek(285);

struct {
    uint GFXFileSizeCheckFlag;
    ubyte GFXFile[GFXFileSizeCheckFlag];
    uint ExtraDataSize;
    ubyte ExtraData[ExtraDataSize];
} GFXF;
  • Author
  • Localization

yusuf2020, posted Thu Mar 04, 2021 10:39 am (62662)


LinkOFF wrote:
I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header data table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw

Image
How did you export the TresTestDebugFontLarge.uexp ?
  • Author
  • Localization

h3x3r, posted Thu Mar 04, 2021 3:07 pm (62672)


Most probably with Umodel. Set engine version from 4.16 to 4.19 but you get nothing useable... BTW textures are PS4 swizzled. I manage to HEX extract first texture from 112 or so.
  • Author
  • Localization

LinkOFF, posted Thu Mar 04, 2021 4:09 pm (62674)


h3x3r, thanks!
yusuf2020 wrote:
How did you export the TresTestDebugFontLarge.uexp ?

Gildor's Umodel
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.