TrueType : Java Glossary

go to home page T words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 2008-01-15 by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (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 1.6 Windows Java 1.6 Linux Java 1.6 Fedora Old Java Windows Notes
OpenType
(TrueType internally)
otf High-end fonts for Windows.
OpenType
(PostScript Adobe CCF 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.
AWT 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.


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.62] The information on this page is for non-military use only.
You are visitor number 6,908. 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.com website mirror)
http://mindprod.com/jgloss/truetype.html J:\mindprod\jgloss\truetype.html