Iris2.de

Iris2-Forum
It is currently Thu Mar 28, 2024 10:26 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Iris2 fonts
PostPosted: Tue Aug 31, 2010 10:48 am 
Offline

Joined: Mon Aug 30, 2010 2:01 pm
Posts: 10
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).


Top
 Profile  
 
 Post subject: Re: Iris2 fonts
PostPosted: Thu Sep 02, 2010 4:52 am 
Offline

Joined: Mon Aug 30, 2010 2:01 pm
Posts: 10
I am not sure that it works. :cry:

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.


Attachments:
unifonts.zip [48.94 KiB]
Downloaded 712 times
p20100902083843_003.jpg
p20100902083843_003.jpg [ 43.27 KiB | Viewed 16088 times ]
Top
 Profile  
 
 Post subject: Re: Iris2 fonts
PostPosted: Thu Sep 02, 2010 1:03 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
probably due to internal unicode handling errors (network, gui or some conversion happening in between),
unicode support isn't well tested so far, sorry =)


Top
 Profile  
 
 Post subject: Re: Iris2 fonts
PostPosted: Thu Sep 02, 2010 2:02 pm 
Offline

Joined: Mon Aug 30, 2010 2:01 pm
Posts: 10
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 :D ).


Top
 Profile  
 
 Post subject: Re: Iris2 fonts
PostPosted: Wed Sep 22, 2010 7:48 am 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Do we need to patch Iris2 to support Russian/and all other fonts?

_________________
http://crankgaming.blogspot.com/ | https://twitter.com/#!/crank_gaming


Top
 Profile  
 
 Post subject: Re: Iris2 fonts
PostPosted: Tue Oct 11, 2011 8:29 pm 
Offline

Joined: Mon Aug 30, 2010 2:01 pm
Posts: 10
SiENcE wrote:
Do we need to patch Iris2 to support Russian/and all other fonts?


Yes. :-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group