PDA

View Full Version : Font in LineAge


Michelle
19.04.2005, 11:47
Well, i wanna create a new font for my LineAge II client, and this is my research :
1. Create a new font with Unreal Engine ( import a font into *.utx )
2. Decrypt fontinfo.ini in system folder and change the path to my *.utx
Everything seem work ok, but there is a prob : In fontinfo.ini, i found there s line "Glyph=L2font-e.gly" , and i think that L2font-e.gly is the one control the font. I try another *.utx with another *.gly ( eg: L2font-e.utx and l2font.gly ), and yes, they cant show the character correctly. Well, that is my story, and i need ur help in this *.gly . Anyone know about this plz help me.

Digital
19.04.2005, 12:09
good job :)
moved to mods :)

Osito2Dancer
19.04.2005, 13:34
this .gly is the one that makes L2Font work? Or by just changing the font, it does it automatically?

Gonna try it after i return from college.

Oso

hoahongtim
19.04.2005, 13:52
if i want changes languague in l2 into vietnames by unicode font, what i should do ? please help me !

Michelle
19.04.2005, 14:18
Nah Osito2Dancer. Like i said when i use another .gly with another .utx, character cant show correctly :) And with some research, i know that the .gly is the map of character of the font, and without it, the .utx wont work correctly . Btw, i ve not found out any tool to play with this extension ...
Ah yeah, one thing more...Have any Russian server have their own font ? ( i mean Russian :) ). So Russian moders help us plz . Thx & Regard.

reijii
19.04.2005, 17:59
ruschat patch includes:
system
FontInfo.ini
NWindow.dll
SmallFont-x.gly
systextures
L2Font-e.utx

i see it there http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar
http://www.lineage2.wnet.ua/cyr/L2RusFontsTahoma.rar
http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar

don't allow wrote on russian in body of msq in bbs

Osito2Dancer
20.04.2005, 00:23
nice. How did you import the font to .utx using Unreal Ed?

Oso

RmzVoid
20.04.2005, 01:21
ruschat patch includes:
system
FontInfo.ini
NWindow.dll
SmallFont-x.gly
systextures
L2Font-e.utx

i see it there http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar
http://www.lineage2.wnet.ua/cyr/L2RusFontsTahoma.rar
http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar

don't allow wrote on russian in body of msq in bbs

is this patch works with C2+98patch?

spoter
20.04.2005, 04:35
ruschat patch includes:
system
FontInfo.ini
NWindow.dll
SmallFont-x.gly
systextures
L2Font-e.utx

i see it there http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar
http://www.lineage2.wnet.ua/cyr/L2RusFontsTahoma.rar
http://www.lineage2.wnet.ua/cyr/L2RusFonts.rar

don't allow wrote on russian in body of msq in bbs
ftp://patch:patch@1xx.xx5.xx.xx8/3.0.exe
ftp://patch:patch@1xx.xx5.xx.xx8/3.1.exe
included : russian lang. (писать, читать, переведены скиллы, квесты, интерфейс), c3 textures, and other.. need russian %)

Michelle
20.04.2005, 10:03
Come on dude !!! We r on this topic to figure out how to create new font in l2, not to ask a patch :) reijii and spoter, do u guys know about that? Then help us plz.
Btw, the Nwindow.dll is not concern to the font:)

Livid
20.04.2005, 15:58
NWindow.dll as far as I know is changed to allow non-ascii character entry (maybe Im wrong).
So, we got only FontInfo.ini, SmallFont-x.gly, L2Font-e.utx. Well, I think it is possible to look thru, right? May be 'll try to do it sometime...

reijii
21.04.2005, 08:00
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...

Michelle
21.04.2005, 08:08
Uhm, maybe im wrong, but i heard that if u change NWindow.dll, then bot cant work....Maybe im wrong :) However, now we can look through the FontInfo.ini , L2Font-e.utx but cant do anything to the SmallFont-x.gly ( well, at least i cant :) ) Im trying to search a prog to crack it out...

Michelle
21.04.2005, 08:14
Thx reijii for the useful info. But i still dont know how to open the .gly, or create a new .gly ?Btw, thx for ur help.

reijii
22.04.2005, 06:54
open it with any hex-editor (i find hexworkshop)
in main window you can see many numerals
00040000800000000200000000000000FF000000FFFFFFFF0C 000000010000000D0000000B0000000C000000010000000D00 0000170000000C000000010000000D...
see first dword (4 bytes, 8 figures) 00 04 00 00 let's put them upside-down in pairs 00 00 04 00 and translate "400" from HEX to DEC with windows calc, result: first dword (texture width) = 1024
second dword 80 00 00 00 => 00 00 00 80 => 128
etc

Ayzen wrote scripts for this transformations...

Michelle
22.04.2005, 12:53
Wow, thx u reijii, u r the best. I will check it out now, and will post if i success or not :) . Thx u and ur friend ( Ayzen :) )

reijii
23.04.2005, 18:30
8)

Riane
23.04.2005, 19:24
a tool to select a font file and it creates the L2 files would be rockin heh ;P

Michelle
25.04.2005, 13:47
Ah one prob more reijii...In ur package i see NWindow.dll , does it play any role in font ?
Sorry for disturbing again ...

reijii
25.04.2005, 15:24
original NWindow.dll blocks all symbols above 0x81 ... use NWindow.dll from patch... (it for c1 client)

Michelle
26.04.2005, 12:05
Uhm , i still cant make it ( maybe im too stupid >.< )...reijii, in ur previous post i see u said that u translate the guide from the guide of ur friend Ayzen ( i guess that, sorry if im wrong ) , so can u give me the link to this guide ? Its ok if it written in Russian :) . Sorry for disturbing, but im so eager to create a my own font .

Pokky
26.04.2005, 12:13
0x39 , 0x0A , 0x3BA6B24E , etc... What does it mean Mr reijii ? Sorry for my n00bie

Osito2Dancer
26.04.2005, 16:10
Hexadecimal.

Oso

reijii
26.04.2005, 19:45
Uhm , i still cant make it ( maybe im too stupid >.< )...reijii, in ur previous post i see u said that u translate the guide from the guide of ur friend Ayzen ( i guess that, sorry if im wrong ) , so can u give me the link to this guide ? Its ok if it written in Russian :) . Sorry for disturbing, but im so eager to create a my own font .
All equally you will understand nothing, he wrote me it in icq...
a can ask him do langpack for u ;)

Michelle
27.04.2005, 04:45
Uhm, thx reijii :) I ll try again...Maybe i missed something...However, can u tell me how can contact u ( uhm, im not confident in my skill so it will be best if i can ask u :D ).However, thx for ur kindness...

Pokky
27.04.2005, 05:27
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 ) ?

reijii
27.04.2005, 17:30
ok, i'll post it little soon

Pokky
28.04.2005, 04:14
Oh thx,we r waiting for u...Hope it come soon...

reijii
02.05.2005, 17:33
to add more symbols we must add one "structure": increase numder of "structures" (3rd dword) for it, and describe new structure before end
0000000001000000040000004EB2A63B00000000

let's find unicode character what we need to describe in MS Word... or in other unicode char table
http://sun.uao.ru/temp/symbword.gif
if you want describe advanced hebrew chargroup write
first symbol = 05B0 (B0 05 00 00 in hexeditor)
number of symbols = 19 ( = 13 00 00 00 in hexeditor)
and after this one after one describe all 19 letters as i do it for "0" above.

sry for bad inglis )

Pokky
06.05.2005, 13:12
Thx for ur help Mr.reijji
Are u sure the 3rd dword is the quantity of symbols? I saw it in the smallfont-e.gly of English version is 02 (= 2 ? ). But if u r right, so we must create new quantity of new character group ( like a group of numeral , a group of alphabet, and a group for unicode :) ). In my side, i think the 3rd dword is the first character of a group, and the 4th dword is the quantity. Uhm, somehow maybe im wrong ( well, im not confident in my idea :D ). I think i must check ur Rus patch out to figure out it...And another thing is when we finish describe a character group , do i need add any code to end it ? 1

Pokky
06.05.2005, 14:10
Btw, ur Rus lang patch is no longer avalaible to download T_T . Plz check it out.

reijii
10.05.2005, 12:10
ok....(i think its work)

http://stuff.lineageii.ru/ruspatch3.zip

P.S.later i'll post program for creating "gly"

Michelle
12.05.2005, 05:22
Hope it come soon...Im tired with hex n hex , change n change TT_TT. U r my hero reijii :)

reijii
18.05.2005, 17:37
There is small program what can help you to build your "Gly"

flakka
19.05.2005, 02:17
reiji - can you resize your avatar? It's throwing the forum format off. Thanks. :)

Michelle
22.05.2005, 14:26
Thx u reijii. I ll check it out now! :)

MrCool
22.05.2005, 19:57
Can anybody post l2font.utx and smallfont.gly support unicode ?

Pokky
28.05.2005, 11:05
reijii, can u explain how to play with ur tool?

aseren
28.05.2005, 11:08
...

Michelle
28.05.2005, 12:45
...
What s up dude :) ?
And yes reijii, i still dont know how to use ur tool. So bad T_T . Can u explain how to create a smallfont.txt ?
Sorry for disturbing again ....
Waiting for ur reply ...

Riane
28.05.2005, 16:15
one question:
when you want to add a new font, you gotta change the texture right?
now did you change it all by hand?
the new pixel values ETC???

Pokky
29.05.2005, 07:43
one question:
when you want to add a new font, you gotta change the texture right?
now did you change it all by hand?
the new pixel values ETC???
Use Unreal Engine and it will make the texture of font for u. Then make a .gly to describe value of it ( i.e height, width, ...etc of the font u made )

reijii
29.05.2005, 15:43
when i convert last rus glyph in txt format for my soft i'll post TUTORIAL how to import any alphabet...


___________________

txt source created...

now inserting some greek letters....

___________________

can't connect with Ayzen to ask how he insert new dds in utx
l2tool works great withs loading image, but when try replace font texture it's write "Overflow"

Michelle
30.05.2005, 10:59
reijii, u dont need to insert new dds in old smallfont.utx, just create a new .utx with Unreal Engine and change the path in fontinfo.ini.

reijii
30.05.2005, 12:11
please sorry my bad inglis and not very detailed explanation (it was written upper).


*First of all Find an interval of numbers belonging your letters in unicode*

For creating you own font you must have:
Adobe Photoshop
NVidia tools for work with DDS in photoshop (http://developer.nvidia.com/object/nv_texture_tools.html)
UnrealED (http://stuff.lineageii.ru/utxeditguide/ue2runtime-22261903.exe)
Gly soft (http://stuff.lineageii.ru/rusfont/gly.rar)
russian smallfont-e.dds, smallfont-r.txt, fontinfo.ini (http://stuff.lineageii.ru/rusfont/rusfont.rar)




Step 1 : Adding new letters to "SmallFont-e" texture

Download my smallfont-e.dds. Open it with photoshop and add new letters like NCsoft and Ayzen (place it by increasing Unicode number, with 2 pixel space ect...).
Use photoshop type tool with Tahoma font size 11 pt without anti-aliasing for drawing letters.
Save it in dds format DXT3 without mipmaps as SmallFont-e.dds.

Step 2 : Adding description of new letters in glyph-file.

Translate Unicode number of first symbol of your letters language group from hex to dec.
For example cyrillyc group in ruspatch begin with "Capital Cyryllic Io" U+0401, using windows calc obtain number 1025.
Add new line in smallfont-r.txt like that:
1025 709 15 6 13
where
1025 - unicode number of first letter
709 - x coordinate of letter(from left border)
15 - y coordinate of letter (from top)
6 - weight
13 - height
next letters describe each on new string with "+" instead of 1026,1027,1028... while letters will not terminate. Don't forgot push space-key 3 times between values.

Look as cyrillic "A" and "B" letters are described, maybe this help you:
+ 64 29 7 13
+ 72 29 6 13
http://stuff.lineageii.ru/rusfont/param.gif


Step 3: Translate Txt to Gly

Open Gly-program.
Open changed SmallFont-r.txt in it, check SmallFont radiobutton , "click Convert2gly".
Created SmallFont-r.gly will be place in the folder with program.


Step 4: Adding changed texture in L2Font-e.utx

Open UnreadED texture browser, open L2Font-e.utx in it, find image "Texture SmallFont-e* [DXT3] ".
right button mouse click on it, choose "delete". After it click File -> Import, choose your texture with new letters.
In opened window type group = Skins and name = SmallFont-e, check out all checkboxes and choose DXT3 compression.
Find image "Texture SmallFont-e* [DXT3] " again, right button mouse click on it and choose Properties, set Surface -> bAlphaTexture = True in new window.
Save new utx file.


Finish.

Change original FontInfo.ini , add SmallFont-r.gly in system folder. Change L2Font-e.utx in systextures.


P.S. If you find mistake in my guide - say me.
P.P.S. I want in moders section :D

Michelle
01.06.2005, 15:25
Nice guide reijii!

Digital
01.06.2005, 16:42
awesome guide :)

lamnh
13.06.2005, 10:40
Is this guide work with character HEX over "1EA0". I'm tryin like the guide but dun work.

mastery
22.06.2005, 23:18
is there rus patch for c2?

reijii
23.06.2005, 11:19
lamnh maybe need patched nwindow.dll :oops:
what chronicle nwindow.dll u need?

Pokky
27.06.2005, 04:16
Can u upload the NWindow.dll for C2 and C3 ? The NWindow.dll in C1 is no longer available :)

reijii
27.06.2005, 17:44
u don't need it

newbie_8x
14.08.2005, 18:26
i open utx file but i have error. somebody help me

History: LoadObject <- (Texture l2font-e.Font.SmallFont-e 1006==1006/36212168 948 131151) <- ULinkerLoad::Preload <- PreLoadObjects <- UObject::EndLoad <- UObject::LoadPackage <-
UEditorEngine::SafeExec <- (LOAD FILE="C:\a\l2font-e.clear.utx") <- UEditorEngine::SafeExec <- (OBJ LOAD FILE="C:\a\l2font-e.clear.utx") <- UEditorEngine::Exec <- (OBJ LOAD FILE="C:\a\l2font-e.clear.utx") <- UUnrealEdEngine::Exec <- WBrowserTexture::OnCommand <- WWindow::WndProc <- WWindow::StaticProc <- MessagePump <- MainLoop

RedLizard
14.02.2006, 16:17
No Label

OS: Windows XP 5.1 (Build: 2600)
CPU: GenuineIntel Unknown processor @ 2816 MHz with 511MB RAM
Video: RADEON 9200 LE Family (Microsoft Corporation) (6462)

Assertion failed: GObjBeginLoadCount==0 [File:.\UnObj.cpp] [Line: 1550]

History: UObject::StaticTick <- UEditorEngine::Tick <- UpdateWorld <- MainLoop

this error occured during i was trying to open l2font-e.utx

ANRDaemon
29.03.2006, 13:47
Anyone know how to make a linebreak characters?
In some glyfs I have line wrapped at the each character, in some - at the space character only...

KOC2000
24.06.2006, 12:44
Hello... someone please posy .gly tool new link..
The old link is down...

KOC2000
24.06.2006, 14:30
And also I don't quite understand why should be the end of the file "0000000001000000040000004EB2A63B00000000"

What are "0, 1, 4, 0x3BA6B24E, 0 " mean please. can some one describe make a tutorial or describe in another way?

Saeroth
18.09.2006, 17:43
Someone can share gly.rar again, please?

dandu
20.09.2006, 16:01
Same as Saeroth looking for "Convert2gly"

ANRDaemon
21.10.2006, 02:53
Hmmm..
Glyph file structure really simple, but slightly different from Aysen's description.
I'll try to describe it in comparison.
First look here.
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)

Really... Look.. In a better tradition of MySQL documentation, here is an overview of file structure:
.gly file: HEADER CHARSET [, CHARSET [...] ]
CHARSET: FIRST_CHARACTER CHARACTERS_COUNT GLYPH [, GLYPH [...]]

12 bytes of glyph HEADER starts from beginning:
0x00: 4 bytes texture width (1024 = 0x00000400)
0x04: 4 bytes texture height (128 = 0x00000080)
0x08: 4 bytes charsets count (1 for LargeFont-e, 2 or more to describe national character sets: first set for ASCII characters, and 2..n for UNICODE symbols)

That's all for header. Next, we have only "count" of "character sets".
Each character set starts immediately after end of previous block.
Let's take a look in CHARSET structure. It also begins with 8 bytes header:
+0x00: 4 bytes FIRST_CHARACTER code (i.e. 0x0020 for Space character, 0x0410 for Cyrillic Capital Letter A, etc.)
+0x04: 4 bytes CHARACTERS_COUNT (96 for printable ASCII set (95 used in LargeFont-e), 64 (32*2) for restricted cyrillic set)
Charset header follows with array of GLYPH descriptions.

Each 16 bytes GLYPH descriptor contains:
+0x00: 4 bytes x coorginate (0xFFFFFFFF to indicate zeroes!)
+0x04: 4 bytes glyph width
+0x08: 4 bytes y coordinate (0xFFFFFFFF to indicate zeroes!)
+0x0C: 4 bytes glyph height

File ends with some "tail". His structure unknown, but dummy copy+paste from other glyph works well for me.

Anyone know how to make a linebreak characters?
In some glyfs I have line wrapped at the each character, in some - at the space character only...

It depends only from NWindow.dll version, I think now.

estoke
04.06.2007, 14:51
Can someone reshare the files that "reijii" post before? dead links :(

At least gly.rar.

AntiYou
09.06.2007, 18:43
yeah gly.rar would be awsome

LethaL
10.06.2007, 00:53
*Off-Topic*

It's Lineage, NOT LineAge. I'm pissed of about that shit.

Sdw
17.06.2007, 07:01
http://shadow23.free.fr/L2/gly.rar (This one will stay up forever, but the speed may be kinda slow for some of you, depend of your country.)

Say thanks to Truth.

supermamie
18.06.2007, 00:25
Yep, thanks :)
And here's the files for those who want to add some accents :
à ç è é ê ë î ï ù û ô and \

there is a .dds with a good texture into it (use l2tool to place it into your L2Font-e.utx) and SmallFont-e.gly.
There is also SmallFont-e.txt that is the file used with the gly soft

http://rapidshare.com/files/37840810/french_accents.rar.html

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
french_accents.rar — 3355 байт

optimus0
21.06.2007, 21:20
thanks

Can anybody share the gly soft please?

thanks

Sdw
21.06.2007, 21:39
Please check the end of this thread.

If you still can't find it, I can't do anything for you.

AntiYou
24.06.2007, 21:38
http://shadow23.free.fr/gly.rar (This one will stay up forever, but the speed may be kinda slow for some of you, depend of your country.)

Say thanks to Truth.
The link is dead. Forever... :)
Can anybody reshare gly.rar ?

Sdw
24.06.2007, 22:03
Hum sorry, the file was on the root of ftp, and I've moved it. Link updated.