27.04.2005, 05:27
|
#26
|
|
Архивный участник
Join Date: Apr 2005
Posts: 10
|
Quote:
|
Originally Posted by reijii
In it gly all is estimated in dwords. First two words - width and height of a texture with fonts. It's not very importlant values.
The "structure" begins with 4 dword. Such "structures" in such file can be a several. And so the third dword is a quantity of such "structures".
Each such structure describes consistently certain symbols (width height and position on a structure). The first dword in it is about a code of a symbol with which the description begin, the second dword - quantity of described symbols in this structure.
Then the description of symbols in such order (all in dwords) begins:
X-?oordinate position of a symbol on texture
width of a symbol
Y-?oordinate position of a symbol on texture
height of a symbol.
Example. If you need to describe numerals.
1st dword - texture width.
2nd dword - texture height.
3d dword - quantity of "structures" (in that example only one).
4th dword - begining from "0", 0x39 there.
5th dword - In total 10 figures, 0x0A there.
-- Describe "0" --
6th dword - position the image of zero on a texture on x-coordinate (if this coordinate is equal 0 write in dword 0xFFFFFFFF don't 0)
7th dword - zero image width on texture.
8th dword - position the image of zero on a texture on y-coordinate
9th dword - zero image height on texture.
Further describing other figures are in the same way.
In the end shit is written:
in smallfont-e.gly i wrote 0, 1, 4, 0x3BA6B24E, 0
in largefont-e.gly: 0, 1, 4, 0x765608F7, 0
(c)Ayzen (i post his patches upper)
translate by me ) sry for not very good inglis :wink:
если кому нада дам оригинал )
p.s. for texture editing i want to advise DXTbmp program
because with photoshop plugin i have some problems...
|
Sorry reijii, can u give us another example ( well, describe of the alphabet or one unicode character ) ?
|
|
|