fontTexture tool

fontTexture tool

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderators: Moderators, Moderators

Post Reply
KaZoiTeZ
Posts: 19
Joined: 08 Apr 2007, 12:19

fontTexture tool

Post by KaZoiTeZ »

Fonts in this directory are generated using the
fontTexture tool, or by the Spring application.
where can i find such tool, or how can i use spring for this?

or if there isn´t any tool, where can i find a complete documentation about the font .lua files?

Code: Select all

glyphs[32] = { --' '--
  num = 32,
  adv = 7,
 oxn =   -1, oyn =   -2, oxp =    2, oyp =    1,
  txn =    1, tyn =    1, txp =    4, typ =    4,
}
i know allmost allof this values,
but i was not able to find out the sence of this values:
oxn = -1, oyn = -2
does anyone know?
0 x

KaZoiTeZ
Posts: 19
Joined: 08 Apr 2007, 12:19

Post by KaZoiTeZ »

problem solved...
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14625
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

well at least mention how you solved it...
0 x

KaZoiTeZ
Posts: 19
Joined: 08 Apr 2007, 12:19

Post by KaZoiTeZ »

i thought no one is interested in this ...
but you are right, maybe someday someone got the same questions

i was refering the source code how to get behind they work...

example:

Code: Select all

glyphs[33] = { --'!'--
  num = 33,
  adv = 3,
  oxn =   -2, oyn =   -2, oxp =    5, oyp =    8,
  txn =   15, tyn =    1, txp =   22, typ =   11,
}
description:
glyphs[33] and num =33 <--- the char number (ASCII)
adv = 3, <- the X size of a character
oxn = -2, oyn = -2, oxp = 5, oyp = 8, <--- the resizing values for the character to fit the whole font
txn = 15, tyn = 1, txp = 22, typ = 11, <--- the coordinates on the image, where the tyn and the typ values are counted from the bottom of the image (and they txn / txp are regulary from the left site)
0 x

Post Reply

Return to “Lua Scripts”