Important information: this site is currently scheduled to go offline indefinitely by end of the year.

I am Setsuna *.font_raw

Need help translating games in other languages? Have your language problems solved here.
Post Reply
adol365
advanced
Posts: 70
Joined: Fri Nov 21, 2014 12:21 pm
Has thanked: 17 times
Been thanked: 7 times

I am Setsuna *.font_raw

Post by adol365 »

Does anyone can make 010 template for raw files?
Samples. https://www.sendspace.com/file/ayq6cl

Code: Select all

295B8 = 5AC + EE9(# of glyphs) * 2C  = 5AC + 2900C
herbert3000
veteran
Posts: 145
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 149 times
Contact:

Re: I am Setsuna *.font_raw

Post by herbert3000 »

I don't have a copy of the 010 Editor but I think this should work:

Code: Select all

struct FILE {
    struct HEADER {
        int     v0;
        float   v1;
        float   v2;
        int     v3;
        int     v4;
        int     v5;
        int     v6;
        int     v7;
        int     v8;
        int     numCharacters;
    } header;

    struct CHARACTER {
        int     id;
        float   x;
        float   y;
        float   width;
        float   height;
        float   xoffset;
        float   yoffset;
        float   v7;
        float   v8;
        float   xadvance;
        float   page;
    } character[ file.header.numCharacters ];

} file;
adol365
advanced
Posts: 70
Joined: Fri Nov 21, 2014 12:21 pm
Has thanked: 17 times
Been thanked: 7 times

Re: I am Setsuna *.font_raw

Post by adol365 »

herbert3000 wrote:I don't have a copy of the 010 Editor but I think this should work:
Thank you. However, is it also including kernings?

Code: Select all

kernings count=198
kerning first=40  second=106 amount=3   
kerning first=8221 second=46  amount=-1  
kerning first=44  second=8217 amount=-3  
kerning first=44  second=8221 amount=-2  
kerning first=8221 second=44  amount=-1  
...etc
herbert3000
veteran
Posts: 145
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 149 times
Contact:

Re: I am Setsuna *.font_raw

Post by herbert3000 »

adol365 wrote:Thank you. However, is it also including kernings?
No, I don't think there's any kerning info in the raw file.
Post Reply