Results 1 to 12 of 12

Thread: Making your own Font

  1. #1
    Join Date
    Nov 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Making your own Font

    I play on RSC private servers and I wanted to create my own font for the servers (they don't use the same font as RSC). I've searched a mountain of forums/posts/etc. and noone covers the process of creating your own font. Any help would be greatly appreciated.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    I did this once, but it's late here. I'll post some information for you tomorrow!

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Target View Post
    I play on RSC private servers and I wanted to create my own font for the servers (they don't use the same font as RSC). I've searched a mountain of forums/posts/etc. and noone covers the process of creating your own font. Any help would be greatly appreciated.
    Try using Simba, worked for me, Simbas OCR is just awesome!
    There used to be something meaningful here.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Not sure if you understood him correctly, he wants to know how to make his own custom font for a Runescape Classic Private Server.

    I'll help you with some basic info, but like I said, I'll post more tomorrow.
    Start by making bitmap masks (look up tutorial if you don't know) of each character in the game.
    Then, open a current font already in your scar/simba folder and name the proper numbers/letters (the bitmap masks you made) with the correct number
    Ex: A is 65, a is 97, e is 101 etc
    (Seen any folder in here: *\SCAR 3.23\Fonts\*

    Do that to get you started, good luck.

  5. #5
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Yeah, I started by that also, but I was using SCAR at the time. When I swapped to Simba, its OCR worked almost 100%. So I suggested that he could try that first. The private server I was playing on was sabsabionline.
    There used to be something meaningful here.

  6. #6
    Join Date
    Nov 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'll start making the bitmap masks, ill also look into the simba OCR tool. Look forward to hearing more information from you YoHoJo. Thanks

  7. #7
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Target View Post
    I'll start making the bitmap masks, ill also look into the simba OCR tool. Look forward to hearing more information from you YoHoJo. Thanks
    Just use Simba and the GetTextAtEx or GetUpText or something.
    There used to be something meaningful here.

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Frement, those only work using REGULAR runescape's uptext font...?

  9. #9
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Frement, those only work using REGULAR runescape's uptext font...?
    Oh god sorry, yes, sabsabi is RS2 private server. My bad
    There used to be something meaningful here.

  10. #10
    Join Date
    Nov 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Alright, I've got the bitmaps made... now what? :P

  11. #11
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Shove them in a folder.
    Here is some example code that finds text using custom font:

    SCAR Code:
    Function MyAction(Text:string): Boolean;
    var
      tx, ty, S, MyChars: Integer;
    begin
      Result := False;
      MyChars:=LoadChars2('C:\Program Files\SCAR 3.21\Fonts\MyChars\')
      S := CreateBitmapMaskFromText(Text, MyChars);
      if FindBitmapMaskTolerance(S, tx, ty, 62, 19, 76, 34, 10, 30) then
      begin
        Result := True;
      end;
      FreeBitmap(S);
    end;

    I think you would now just need to change the font path, and the boundaries on where to search for it, and tweak it any other way you wish.

    You could now also look though some of the SRL text finding functions as examples for yourself.

    One common problem I ran into was having too much/too little 'black space' before/after the font letters/numbers I made, sometimes you need to tweak it by a pixel or two.

    :/ Very brief explanation, but hopefully someone else can help you from here onwards!

  12. #12
    Join Date
    Nov 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I've made a script that finds the coords from the numbers listed on the info tab in-game.... but its 600+ lines long rofl.... It's flawless though for the resolution. I'm going to mess around now with using the fonts. Thank you for all your help.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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