Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Programming

Tutorial: Using the documentation about Font

 

In these examples students are encouraged to search the documentation to find out how to use various features.

1. How to draw a String


Big

Write the String "Hello World" at position 10, 20.
Hint:

2. How to draw a String


Big

Change the font to "Serif" size 20 and draw the String "Hello World" at 10,35.
Hint:

3. Draw the name of the font


Big

Draw the logical name of the Font at 10,20 - do not change the font first.

4. Derive a font


Big

Change the font so that it has size 20 and style Font.ITALIC. Draw "Hello World" to 10,30.

Hint: