Click any ball to view the corresponding colour palette.
gamut. Use the FontShower for Swing Applet to see what you can do in Swing. Use the Unicode Applet if you want to view the entire Unicode character set.
Unfortunately, in AWT, only the basic logical fonts: Dialog, DialogInput, Monospaced, SansSerif, and Serif are available for use in Labels, TextFields and TextAreas. To get other fonts shown here, you must write a custom component based on Canvas and drawString.
The Canvas displays were done with a custom AWT Canvas-based component. This lets you use all the fonts and all the characters in the fonts. The source code is available.
The alternate vanilla AWT TextArea display is based on a native OS peer (as are as Label and TextField). It can only display the 5 basic logical fonts and then only some of the characters in those fonts. You have no control in Java over whether TextAreas are anti-aliased. They are rendered by the OS, not Java, and hence are controlled by whether font smoothing is turned on in the Control Panel.
You may not notice any difference with font-smoothing anti-aliasing. Look for the anti-alias smoothing especially in very large font sizes in capital W in the fonts with thin spidery diagonals, e.g. Bodoni, Book Antiqua, Garamond, Serif and Zapf Calligraphic.
Some of the fonts may just show empty squares. These are older 8-bit fonts that don’t support 16-bit Unicode used by Java. Don’t necessarily delete them ( by clicking Control Panel ⇒ fonts ⇒ delete) since word processing documents, or the DOS box, may still be using them. on the other hand, pruning out ugly fonts you never use will speed up your machine.
| details about the current version. | download source and executable to run this Applet on your own machine as a stand-alone application. |
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.18] | ![]() | ||
| You are visitor number 7,164. | |||
| 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/jgloss/fontshowerawt.html | J:\mindprod\jgloss\fontshowerawt.html | ||