Small Basic Fonts (featured article)

This article explains fonts for the GraphicsWindow object in Microsoft Small Basic:

Small Basic: Font

 

This article was written by Nonki Takahashi.

 

What is a Font?

A Font is a designed character set.  In Windows, many programs have the ability to change fonts.  Many fonts are installed into C:\Windows\Fonts folder.  For example, this article uses "Segoe UI" font.

Font Properties

There are four font properties in GraphicsWindow.

FontBold

If GraphicsWindow.FontBold is "True", font characters become thick.  Default GraphicsWindow.FontBold value is "True".

FontItalic

If GraphicsWindow.FontItalic is "True", font characters become slant.  Default GraphicsWindow.FontItalic value is "False".

FontName

GraphicsWindow.FontName contains font face name.

"Tahoma" is the default font name in local (in Small Basic IDE).  "Segoe UI" is the default font name in remote (in smallbasic.com - Microsoft Small Basic Program Listing web site).

FontSize

GraphicsWindow.FontSize means the height [pixels] of characters.  In some fonts such like "Tahoma", FontSize means the height between the top line and baseline.  In some fonts such like "Courier New", FontSize means the height between the top line and the bottom line.  You can recognize this with a sample program Font Sample 0.1 described below.

Default font size is 12 [pixels].

 

Recommended Fonts

I recommend you to use following six fonts because both Windows and Mac OS system pre-install these fonts.

Font Name Serif Fixed Pitch
Arial    
Courier New  ✔   ✔ 
Georgia   ✔   
Times New Roman  ✔   
Trebuchet MS    
Verdana

 

Read the rest of the article here:

Small Basic: Font

 

Thank you to Nonki! To see a lot of great articles about Small Basic, visit the Small Basic Portal on TechNet Wiki.

   - Ninja Ed