FontShower FontShower
home Student Projects no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
This essay is about a suggested student project in Java programming. This essay gives a rough overview of how it might work. It does not describe an actual complete program. I have no source, object, specifications, file layouts or anything else useful to implementing this project. Everything I have to say to help you with this project is written below. I am not prepared to help you implement it; I have too many other projects of my own.

I do contract work for a living, which could include writing a program such as this. However, I don’t do people’s homework for them. That just robs them of an education.

You have my full permission to implement this project any way you please.

Here is a simple project for a newbie. If you do it, I will help you polish it, and I will post in on my site and give you the credit.

First you get a dynamically generate a list of all possible java fonts installed on the machine with code similar to this.

This program is very similar to the Conversion Amanuensis. You might start with that and modify it. Just leave out the ConverterGrid class.

Your program is an Applet that lets you choose: then it displays the following test pangrams in the selected font family, style and colour.

The quick brown fox jumped over the lazy dog’s back.
Pack my box with five dozen liquor jugs.
Jackdaws love my big sphinx of quartz.
Mr. Jock, TV quiz PhD, bags few lynx.
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
01234567890
€†™´¸¢©¤°÷ ½¼¾>¡¿«‘<¯µ ·¬ªº¶±£"»’® §­¹²³ß×™¨¥
ÀÁÂÃÄÅÆÇÈÉ ÊËÌÍÎÏÐÑÒÓÔ ÕÖØÙÚÛÜÝÞÿ
àáâãäåæçèé êëìíîïðñòóô õöøùúûüýþÿ
!"#$%&'()*+,-./:;<=>?@[\^_z{|}~
uvw wW gq9 2z 5s il17|!j oO08 `'" ;: ,. m nn rn {[()]}u

You can use a JColorChooser to select the foreground and background colour and a JComboBox to select the family, style, and size, and use a JTextArea for the test message, Or do it with AWT using ColorChooser, Choice and TextArea.

It will be a useful tool for all Java programmers.

For hints on why I selected that test message see Proofreader Font project.

You need to set up listeners so that if anything changes, you recompute the display.

If you want to get fancy, display the font family menu using a font sample, but be careful, some fonts don’t work that way, like dingbats.

Here is Fahd Sharrif’s implementation:

font finder project
Fonts
FontShower amanuensis
Proofreader Font project
Reuters Unicode Displayer

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] The information on this page is for non-military use only.
You are visitor number 4,194. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/project/fontshower.html J:\mindprod\project\fontshower.html