Iris2.de http://iris2.de/forum/ |
|
Iris2 fonts http://iris2.de/forum/viewtopic.php?f=19&t=1661 |
Page 1 of 1 |
Author: | STAKANOV [ Tue Aug 31, 2010 10:48 am ] |
Post subject: | Iris2 fonts |
Hi! I tryed to change Iris2 fonts. I placed font (file aricyr.ttf, old russian cyrillic, cp1251) to directory data/base/font and created file Arial.fondef. Arial.fontdef Code: Arial { type truetype source aricyr.ttf size 16 resolution 96 } I edited config.lua. config.lua Code: -- this is your local config file, here you can override the default options -- gUOPath = "C:\\stuff\\iris\\uo\\" -- enter the path to your uo data dir here gServerSeed = 0xC0A80266 gFontDefs = {} gFontDefs["Default"] = { name = "Arial", size = 15, col = {1.0,1.0,1.0,1.0}, } gFontDefs["Journal"] = { name = "Arial", size = 14, col = {0.0,0.0,0.0,1.0}, } gFontDefs["Chat"] = { name = "Arial", size = 18, col = {1.0,1.0,1.0,1.0}, brigth = 0.6, -- value between 0 and 1, the higher the brighter } gFontDefs["PopUp"] = { name = "Arial", size = 15, col = {1.0,1.0,1.0,1.0}, -- white colhi = {1.0,1.0,1.0,1.0}, -- green } gFontDefs["HudNames"] = { name = "Arial", size = 15, col = {1.0,1.0,1.0,1.0}, } gFontDefs["Gump"] = { name = "Arial", size = 15, col = {1.0,1.0,1.0,1.0}, } It works (fonts were changed), but I can't see national letters. Thanks. PS. I use iris2 v.3304 for linux (ubuntu). |
Author: | STAKANOV [ Thu Sep 02, 2010 4:52 am ] | |||
Post subject: | Re: Iris2 fonts | |||
I am not sure that it works. Font in Journal was changed, but gumps use some unifont.mul, I think. I placed 3 hacked font-files (unifont.mul, unifont1.mul and unifont2.mul) in UO directory. I wrote font testing script for POL server. It is simple. test.src Code: use uo; program test(char) var gflayout := { "page 0", "ResizePic 100 100 3600 400 100", "text 130 130 50 0", "text 130 150 50 1" }; var gfdata := { "АБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЬЪЫЭЮЯ", "абвгдежзиклмнопрстуфхцчшщьъыэюя" }; SendSysMessage(char,"АБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЬЪЫЭЮЯ"); SendSysMessage(char,"абвгдежзиклмнопрстуфхцчшщьъыэюя"); SendDialogGump(char, gflayout, gfdata); return 1; endprogram It sends russian alphabet (cp1251) like message and like gump. All letters on gump are OK. But in message some letters are wrong. Look at part of screenshot (I underline wrong letters). PS. I attach my unifont files.
|
Author: | ghoulsblade [ Thu Sep 02, 2010 1:03 pm ] |
Post subject: | Re: Iris2 fonts |
probably due to internal unicode handling errors (network, gui or some conversion happening in between), unicode support isn't well tested so far, sorry =) |
Author: | STAKANOV [ Thu Sep 02, 2010 2:02 pm ] |
Post subject: | Re: Iris2 fonts |
ghoulsblade wrote: probably due to internal unicode handling errors (network, gui or some conversion happening in between), unicode support isn't well tested so far, sorry =) Maybe Iris2 uses different ways for messages and gumps? Gump works OK. And I don't have the same problem in UO-client, so mul-files are OK too (it's ancient stuff ). |
Author: | SiENcE [ Wed Sep 22, 2010 7:48 am ] |
Post subject: | Re: Iris2 fonts |
Do we need to patch Iris2 to support Russian/and all other fonts? |
Author: | STAKANOV [ Tue Oct 11, 2011 8:29 pm ] |
Post subject: | Re: Iris2 fonts |
SiENcE wrote: Do we need to patch Iris2 to support Russian/and all other fonts? Yes. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |