TrueType : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

TrueType
Microsoft’s proprietary scaleable type format. TrueType fonts use the *.ttf extension. It has been replaced with OpenType which combines features of TrueType and Adobe PostScript fonts. However the bulk of fonts sold for Windows are still old-style TrueType.
Font Support Under Java
Font Type Extension Java version 1.6Windows Java version 1.6Linux Java version 1.6Fedora Old Java Windows Notes
OpenType
(TrueType internally)
otf High-end fonts for Windows.
OpenType
(PostScript Adobe CCF (Composite Container Format) internally)
otf High end PostScript fonts. You can detect these by the file signature { 0x4F, 0x54, 0x54, 0x4F } — the string "OTTO", at the head of the file.
TrueType ttf Most common font for Windows.
PostScript pfm/pfb Older style PS fonts. Supported by PostScript printer hardware. Windows itself supports PS fonts, at least with Adobe Type Manager, but Java ignores them.
Bitmap fon Used primarily for small font sizes. Come only a small set of point sizes.
Vector outline fon These are obsolete. Used by Windows without Java.
8-bit fonts any Java needs 16-bit fonts. It won’t use 8-bit fonts directly. Old or specialty 8-bit fonts can be used by stitching them together with a Unicode mapping, a daunting task.
SVG (Scalable Vector Graphics)fonts svg Vector fonts used in Linux. They tend to be free. Java does not out-the-box support them. Opera 10 beta supports them, and allows them to be downloaded with a web page so you can use fonts the viewer does not necessarily already have installed.

AWT (Advanced Windowing Toolkit) will only support the five basic logical fonts, unless you paint on a Canvas, however oddly under Fedora and AWT you can use up to 82 of your installed fonts. If you try to use more, you get an ArrayIndexOutOfBoundsException. The above information may be incorrect or may become incorrect at any time. Feel free to try any fonts with Java on any platform. The worst that could happen is they won’t work.


This page is posted
on the web at:

http://mindprod.com/jgloss/truetype.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\truetype.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
IP:[65.110.21.43]
Your face IP:[184.73.72.163]
You are visitor number