Class Font
- java.lang.Object
-
- org.apache.maven.doxia.module.rtf.Font
-
class Font extends java.lang.Object
A basic font descriptor using standard PostScript font metrics to compute text extents. All dimensions returned are in twips.- Version:
- $Id$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Font.TextExtents
-
Field Summary
Fields Modifier and Type Field Description private FontMetrics
metrics
private int
size
-
Constructor Summary
Constructors Constructor Description Font(int style, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
ascent()
(package private) int
descent()
(package private) Font.TextExtents
textExtents(java.lang.String text)
private int
toTwips(int length)
-
-
-
Field Detail
-
size
private int size
-
metrics
private FontMetrics metrics
-
-
Method Detail
-
ascent
int ascent()
-
descent
int descent()
-
textExtents
Font.TextExtents textExtents(java.lang.String text)
-
toTwips
private int toTwips(int length)
-
-