Page 1 of 1
CHRONICLES OF SEALING GODS binary font
Posted: Wed Nov 08, 2017 10:50 am
by hackspeedok
I am trying to edit a font so that this font can support my language. However, I do not have much knowledge about this file, can you help me? Thank you very much

Link font file:
https://drive.google.com/file/d/0Bwg-L6 ... sp=sharing
Re: CHRONICLES OF SEALING GODS binary font
Posted: Sat Nov 18, 2017 8:55 pm
by WRS
dead simple format:
Code: Select all
// 010 binary template
// WRS
uint count;
struct d
{
ushort glyph_code;
ubyte w, h;
ubyte data[(int)w*(int)h];
};
d data[count] <optimize=false>;
// Ensure the whole file is parsed
Assert(FTell() == FileSize());
script for quickbms - these will need converting to a bitmap and reimporting or something
Code: Select all
get NUM long
for J = 1 to NUM
get CHARCODE short
get WIDTH byte
get HEIGHT byte
savepos FTELL
math SIZE = WIDTH
math SIZE *= HEIGHT
string NAME p= "%u.font" CHARCODE
log NAME FTELL SIZE
math FTELL += SIZE
goto FTELL
next J
Re: CHRONICLES OF SEALING GODS binary font
Posted: Sun Nov 19, 2017 4:00 pm
by hackspeedok
WRS wrote:dead simple format:
Code: Select all
// 010 binary template
// WRS
uint count;
struct d
{
ushort glyph_code;
ubyte w, h;
ubyte data[(int)w*(int)h];
};
d data[count] <optimize=false>;
// Ensure the whole file is parsed
Assert(FTell() == FileSize());
script for quickbms - these will need converting to a bitmap and reimporting or something
Code: Select all
get NUM long
for J = 1 to NUM
get CHARCODE short
get WIDTH byte
get HEIGHT byte
savepos FTELL
math SIZE = WIDTH
math SIZE *= HEIGHT
string NAME p= "%u.font" CHARCODE
log NAME FTELL SIZE
math FTELL += SIZE
goto FTELL
next J
Thanks so much WRS.