OpenType is used for video titling in MP4 video. Adobe adds the suffix pro to all its OpenType fonts. OpenType fonts have a 16-bit encoding vector allowing up to 64,535 glyphs. Some fonts even support 32-bit code points. OpenType fonts have hints for more precise rendering at small point sizes.
Some OpenType fonts include four optical size variations: caption, regular, subhead and display. Called Opticals, these shape variations have been optimised for use at specific point sizes. Although the exact intended sizes vary by family, the general size ranges include: caption (6-8 point), regular (9-13 point), subhead (14-24 point) and display (25-72 point).
One character may correspond to several glyphs; the lowercase a, a small cap a and an alternate swash lowercase a are all the same character, but they are three separate glyphs. To the best of my knowledge, Java does not support these variants because Unicode doesn’t.
There are multiple mappings from code point to glyph to handle a variety of encodings such as Symbol, Unicode, ShiftJIS, PRC, Big5, Wansung, Johab and UCS-4. The most important one for Java is Unicode.
Some OpenType fonts have ligatures and caret positioning for ligatures. The OpenType people call this glyph substitution. Java has no support for these.
Opentype fonts provide for both 16-bit Unicode and 32-bit UCS-4 glyph encoding tables. However, I don’t think I have yet seen a character above 0x0ffff rendered on screen on on print yet, other than in the Unicode consortium’s PDF file. We still have not even managed to support very much of the 16-bit part of Unicode yet.
| 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. | ||||
![]() |
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.61] | The information on this page is for non-military use only. | ||
| You are visitor number 8,013. | 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/opentype.html | J:\mindprod\jgloss\opentype.html | ||