Results 1 to 3 of 3

Thread: Loading Font help please

  1. #1
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Loading Font help please

    Hello, and thanks for visiting my topic

    What would I type if I wanted to load the font:SmallChars from the SCAR root file using any text loading procedure? All help appreciated
    Current Project: Catching up. XD. Potentially back for the summer, depending on how things go.

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    Loaded all chars. (NPCChars, TradeChars, SmallChars, StatChars, UpChars)
      29.04.2007

    Scar Divi SHOULD load the fonts itself.

  3. #3
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is what I found:

    Code:
    function LoadChars2(path: string): Integer; 
    Load font from folder in memory.
    Example: 
    UpChars:= LoadChars2(AppPath + 'CharsRS22\');
    (If you are planning on creating your own character set, make sure bitmap images are named according to their ASCII codes.)
    
    function LoadCharsFromFont2(fontname: string; fontsize: Integer; fontbold, fontitalic, fontunderline, fontstrike: Boolean): Integer;
    Load characters from Windows font in memory.
    Example: 
    c := LoadCharsFromFont2('Courier New', 10, False, False, False, False);
    
    procedure FreeChars2(i: Integer);
    Unload font from memory.
    Fearlesssss

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New Font
    By mormonman in forum NOTA
    Replies: 1
    Last Post: 03-11-2009, 07:47 PM
  2. The New Font...
    By Drakan in forum OSR Help
    Replies: 4
    Last Post: 09-09-2008, 06:20 PM

Posting Permissions

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