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

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 »

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: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: CHRONICLES OF SEALING GODS binary font

Post 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 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 »

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