Thread: [Refactored] Adding custom font's/Text's to a 317 client - Including font packer

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1 [Refactored] Adding custom font's/Text's to a 317 client - Including font packer 
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Well basically, if you saw my thread in show-off i had loaded new font's for the client and now ive decided to release a working version.

    There may be a few problems, for example height offsets. This may include some characters to be higher than others, on standard font's such as Time new roman and arial which i tried it worked perfect but i havn't tested script or anything.

    PLEASE POST/PM ME WITH ANY PROBLEMS, FOR EXAMPLE SPECIAL CHARACTERS NOT BEING AT THE RIGHT HEIGHT, then i can fix in the next versions.

    I have removed italics from this version because the whole character wouldn't draw, it would be missing a few pixels and i kept trying but it didn't load.

    Here are a few examples:

    ARIAL SIZE 12: (Ingame)


    ARIAL SIZE 12: (Login screen)


    ARIAL SIZE 24: (Ingame)


    __

    __

    __

    Right, now for the tutorial.

    In your textDrawingArea class replace the variables at the bottom of the class with these;

    Code:
        public byte[][] aByteArrayArray1491;
        public int[] anIntArray1492;
        public int[] anIntArray1493;
        public int[] anIntArray1494;
        public int[] anIntArray1495;
        public int[] anIntArray1496;
        public int anInt1497;
        public Random aRandom1498;
        public boolean aBoolean1499;
    Now.

    Scroll up and add this;

    Code:
        public TextDrawingArea(String s)
        {
    	ZeeFont zee = new ZeeFont(this, s);
    	zee.loadFont();
        }
    Now we need to actually implement the loading of the font's.

    So go into your client and find this;

    Code:
    chatTextDrawingArea = new TextDrawingArea
    Now, if you want to replace one of your already existing textDrawingArea's then you can do this.

    Remove your old one of these and add this;

    Code:
    chatTextDrawingArea = new TextDrawingArea("./font_name.dat");
    If not, then declare a new instance to the TextDrawingArea class and do this;

    Code:
    public TextDrawingArea myFont;
    Then;

    Code:
    myFont = new TextDrawingArea("./font_name.dat");
    That would create the new font, you can set that to interfaces or use it for anything else, but you have to work that out yourself.

    Now, add this class into your client folder.

    [Only registered and activated users can see links. ].

    Now you need to create your font's, so download the font creator.

    [Only registered and activated users can see links. ]

    Now, unrar this and follow the README text document.

    When you have done this and you are left with a dat file called for example;

    "B12_Arial" this means Bold, size 12, arial.

    Now, go back to your;

    Code:
    chatTextDrawingArea = new TextDrawingArea("./font_name.dat");
    And replace the "./font_name.dat" with your font's name, for example;

    Code:
    chatTextDrawingArea = new TextDrawingArea("./B12_Arial.dat");
    And there you go, have fun.

    Remember, if you find any faults or have any problems just contact me.


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    5,487
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    Wow thanks alot ill use it right away when i get online tomorrow

    Mind posting an open version of ZeeBest.class? because that is for renamed only
    Reply With Quote  
     

  3. #3  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    Wow this looks awsome =P
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Quote Originally Posted by SWAT View Post
    Wow thanks alot ill use it right away when i get online tomorrow

    Mind posting an open version of ZeeBest.class? because that is for renamed only
    No sorry, feel free to decompile and fix it, only 1 error apparently according to scu11.


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    AMG A Bear's Avatar
    Join Date
    Jun 2008
    Posts
    1,157
    Thanks given
    27
    Thanks received
    87
    Rep Power
    945
    OMFG this is sexy!
    Quote Originally Posted by The Night Life View Post
    Errm. I had a similar idea a very long time ago, about instead of current rs's gameframe, (622) making a rsps with about a 1645 or something. Make it look like you walked outside. I even gathered proffesional computer programmers to help, but bailed on the idea after i realized if we all worked on it non-stop for months at a time, we'd barely get any progress. (unless you wanted to half ass it)
    Reply With Quote  
     

  6. #6  
    Registered Member
    Riedell's Avatar
    Join Date
    Feb 2008
    Age
    28
    Posts
    403
    Thanks given
    4
    Thanks received
    2
    Rep Power
    152
    This is another cool release. Nice work Zee Best.
    ~Riedell
    Reply With Quote  
     

  7. #7  
    Registered Member
    doobie's Avatar
    Join Date
    Oct 2008
    Age
    26
    Posts
    637
    Thanks given
    12
    Thanks received
    14
    Rep Power
    200
    I don't know but this text I think is just better haha


    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,338
    Thanks given
    243
    Thanks received
    85
    Rep Power
    250
    Zee best, great job again you are my idol ,
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Apower's Avatar
    Join Date
    Sep 2008
    Age
    27
    Posts
    824
    Thanks given
    7
    Thanks received
    15
    Rep Power
    94
    Nice work
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Jan 2007
    Age
    27
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    Nice zee best.
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •