[freespace2] can someone verify this?

tigital tigital at mac.com
Thu Aug 15 21:22:26 EDT 2002


>On Thu, 15 Aug 2002, tigital wrote:
>
>>  I'm having font troubles on OS X, and here is what I'm seeing:
>>
>>  char		filename[]	font01.vf
>>  int		id		1414415958	(shouldn't this be 'VFNT'?)
>>  int		version		0
>>  int		num_chars	109
>>  int		first_ascii	32
>>  int		w		7
>>  int		h		9
>>  int		num_kern_pairs	1744
>>  int		char_data_size	7722
>>  font_kernpair	*kern_data
>>  font_char	*char_data
>>  ubyte		*pixel_data
>>  int		bitmap_id	0
>>  int		bm_w, bm_h	128, 128
>>  ubyte		*bm_data
>>  int		*bm_u
>>  int		*bm_v
>
>These numbers are correct.
>
>Did you also swap the kern_data and char_data structs?
>
>
>Here's that debug output you requested:
>http://www.icculus.org/~relnev/fs2demo_log.txt.gz
>
>
>Steven Fuller

Thanks!

...everything checks out so far...and I'm pretty sure I've correctly 
swapped the kern_data, but I haven't done any char_data swap:  it's 
made of "char" and "signed char", and I haven't figured out how to 
swap them!  SDL_endian only provides 16, 32, and 64 bit swapping 
macros...

l8r,
jamie



More information about the freespace2 mailing list