[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [bos-dev] implement Chinese?



You'll also need to change the source code so it draws more font characters.
 
#define X 32
#define Y 16
It draws 32 characters per row, 16 rows total.  Find where the Chinese characters are in Unicode and change Y to a much larger value so they get drawn.


From: Jimmy Salmon <jsalmon3@xxxxxxxxx>
To: bos-dev@xxxxxxxx
Sent: Thursday, November 20, 2008 10:33:54 PM
Subject: Re: [bos-dev] implement Chinese?

What ttf file are you using?  The dejavu font should support all of Unicode which includes Chinese characters.


From: Olaf <dl7und@xxxxxxxxx>
To: bos-dev@xxxxxxxx
Sent: Thursday, November 20, 2008 10:22:59 PM
Subject: Re: [bos-dev] implement Chinese?

Aaaaaaaarrrrggghhh... Sometimes I do not like this language very much...

Jimmy Salmon wrote:
> scripts/fonts.lua defines them
> graphics/general/dejavusans*.png
> A program that we used to generate the pngs from a ttf is in svn:
> http://www.seul.org/viewcvs/viewcvs.cgi/materials.bos/trunk/tools/ttf2png/?rev=9583&root=BosWars
Thanks! Had to install another library, but then I could finally compile the program and process a font file. Problem is: It only works for the ASCII range, the rest is squares... (result attached - hope this is OK here?)

So, I suppose that Chinese will not be easily supported in BOS Wars?

Regards,

Olaf