READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

CHRONICLES OF SEALING GODS binary font

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

CHRONICLES OF SEALING GODS binary font

Post by hackspeedok » Wed Nov 08, 2017 10:50 am

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 :D
Link font file: https://drive.google.com/file/d/0Bwg-L6 ... sp=sharing

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: CHRONICLES OF SEALING GODS binary font

Post by WRS » Sat Nov 18, 2017 8:55 pm

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 8)

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
Useful tool links:

hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Re: CHRONICLES OF SEALING GODS binary font

Post by hackspeedok » Sun Nov 19, 2017 4:00 pm

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 8)

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.

Post Reply