Class 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • size

        private int size
    • Constructor Detail

      • Font

        Font​(int style,
             int size)
        throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • ascent

        int ascent()
      • descent

        int descent()
      • toTwips

        private int toTwips​(int length)