Форум · Полнота восстановления · Каталог вариантов

Font in LineAge — reijii — #6205

Сообщение в форуме

Снимок 2008-04-06 09:43 UTC

Имя в снимке: reijii · Источник Wayback

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