org.apache.maven.doxia.module.rtf
Class Font

java.lang.Object
  extended by org.apache.maven.doxia.module.rtf.Font

public class Font
extends Object

A basic font descriptor using standard PostScript font metrics to compute text extents. All dimensions returned are in twips.


Constructor Summary
Font(int style, int size)
           
 
Method Summary
 int ascent()
           
 int descent()
           
 org.apache.maven.doxia.module.rtf.Font.TextExtents textExtents(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Font

public Font(int style,
            int size)
     throws Exception
Throws:
Exception
Method Detail

ascent

public int ascent()

descent

public int descent()

textExtents

public org.apache.maven.doxia.module.rtf.Font.TextExtents textExtents(String text)


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.