Results 1 to 4 of 4

Thread: smartImage.drawText - see all fonts and colours

  1. #1
    Join Date
    Jul 2014
    Location
    Europe
    Posts
    182
    Mentioned
    7 Post(s)
    Quoted
    103 Post(s)

    Default smartImage.drawText - see all fonts and colours

    I wanted to choose a nice font and colour for something I was making but I really didn't know what to pick because there isn't really a preview on those. So I made this snippet so you could look at all the fonts and colours. I added a grey and white background so you could see them on those colours also. I hope this will be useful to someone.

    Simba Code:
    program new;

    {$DEFINE SMART}            
    {$I SRL-6/SRL.simba}    


    procedure textTest();
    begin
      smartImage.clear();
      smartImage.drawBox(intToBox(120, 50, 200, 410), true, clGray);
      smartImage.drawBox(intToBox(200, 50, 280, 410), true, clWhite);
      smartImage.drawText('123 This is a test for BigChars, clWhite.', point(50, 50), 'BigChars', true, clWhite);
      smartImage.drawText('123 This is a test for CharsNPC, clBlack.', point(50, 75), 'CharsNPC', true, clBlack);
      smartImage.drawText('123 This is a test for CharsNPC07, clRed.', point(50, 90), 'CharsNPC07', true, clRed);
      smartImage.drawText('123 This is a test for CharsTrade, clGreen.', point(50, 110), 'CharsTrade', true, clGreen); //somehow doesn't work well for me
      smartImage.drawText('123 This is a test for CharsTrade07, clBlue.', point(50, 130), 'CharsTrade07', true, clBlue); //somehow doesn't work well for me
      smartImage.drawText('123 This is a test for FriendChars, clGreen.', point(50, 150), 'FriendChars', true, clGreen);
      smartImage.drawText('123 This is a test for LoginChars, clBlue.', point(50, 167), 'LoginChars', true, clBlue);
      smartImage.drawText('123 This is a test for MouseoverChars, clYellow.', point(50, 190), 'MouseoverChars', true, clYellow);
      smartImage.drawText('123 This is a test for SmallChars, clAqua.', point(50, 210), 'SmallChars', true, clAqua);
      smartImage.drawText('123 This is a test for SmallChars07, clFuchsia.', point(50, 230), 'SmallChars07', true, clFuchsia);
      smartImage.drawText('123 This is a test for SmallCharsNS, clTeal.', point(50, 250), 'SmallCharsNS', true, clTeal);
      smartImage.drawText('123 This is a test for StatChars, clNavy.', point(50, 270), 'StatChars', true, clNavy);
      smartImage.drawText('123 This is a test for StatChars07, clGray.', point(50, 290), 'StatChars07', true, clGray);
      smartImage.drawText('123 This is a test for UpChars, clLime.', point(50, 310), 'UpChars', true, clLime);
      smartImage.drawText('123 This is a test for UpChars07, clMaroon.', point(50, 330), 'UpChars07', true, clMaroon);
      smartImage.drawText('123 This is a test for UpChars07_s, clSilver.', point(50, 350), 'UpChars07_s', true, clSilver);
      smartImage.drawText('123 This is a test for UpCharsEx, clPink.', point(50, 370), 'UpCharsEx', true, clPink);
      smartImage.drawText('123 This is a test for XPChars, clPink.', point(50, 390), 'XPChars', true, clPink);
      terminateScript;
    end;


    begin
      smartEnableDrawing := true;
      setupSRL();
      textTest();
    end.


  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    This is actually really useful. I've saved the image, I'll probably end up referencing a lot thanks, never thought of doing this.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    I've done the same, thanks Space!



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  4. #4
    Join Date
    Jul 2014
    Location
    Europe
    Posts
    182
    Mentioned
    7 Post(s)
    Quoted
    103 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    This is actually really useful. I've saved the image, I'll probably end up referencing a lot thanks, never thought of doing this.
    Quote Originally Posted by Incurable View Post
    I've done the same, thanks Space!
    You're welcome.

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
  •