KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > faceless > pdf > PDFSimpleFont


1 // $Id: PDFSimpleFont.java,v 1.1 2003/09/10 10:28:17 mike Exp $
2

3 package org.faceless.pdf;
4
5 import java.util.*;
6
7 /**
8  * <p>
9  * This class defines a subclass of fonts in a PDF document known as "simple"
10  * fonts. This covers TrueType, Type1 and the standard 14 fonts. Although
11  * there is nothing stopping the use of these fonts to render glyphs from
12  * Chinese, Japanese Kanji and Korean, this is more appropriately done with
13  * a {@link StandardCJKFont}.
14  * </p>
15  *
16  * <p>
17  * This subclass has the following restrictions:
18  * <ul>
19  * <li>Fonts must be horizontal.</li>
20  * <li>Kerning is based solely on the character to the immediate left</li>
21  * <li>Vertical kerning is not implemented</li>
22  * </ul>
23  * </p>
24  *
25  * <p>
26  * these terms are defined as follows:
27  * </p>
28  *
29  * <p>
30  * <i>Kerning</i> is the process of adjusting the relative position of two
31  * letters. For example, The letters "AV" when written next to each other
32  * can be moved closer together - the top of the "V" should overlap the
33  * bottom of the "A". Creating a kerning table is quite time-consuming, and
34  * some fonts do not have one at all.
35  * </p>
36  *
37  * <p>
38  * <i>Leading</i> is the distance between the baselines of two lines of text.
39  * In this library we use the term to denote a ratio of the point size of
40  * the font. So a 12pt font with a leading of "1.5" will have lines spaced
41  * 18 points apart
42  * </p>
43  *
44  * <p>
45  * A <i>Millipoint</i> is 1/1000th of a point, or 1/72000th of an inch.
46  * This ridiculously small unit becomes useful when you're measuring the
47  * dimensions of or distance between individual characters.
48  * </p>
49  * @version $Revision: 1.1 $
50  */

51 public abstract class PDFSimpleFont extends PDFFont implements Cloneable JavaDoc
52 {
53     PDFSimpleFont(org.faceless.pdf2.PDFFont font) { super(font); }
54 }
55
Popular Tags