< prev index next >

src/java.desktop/windows/classes/sun/font/NativeFont.java

Print this page




  24  */
  25 
  26 package sun.font;
  27 
  28 import java.awt.FontFormatException;
  29 import java.awt.font.FontRenderContext;
  30 import java.awt.geom.GeneralPath;
  31 import java.awt.geom.Point2D;
  32 import java.awt.geom.Rectangle2D;
  33 
  34 /*
  35  * This class should never be invoked on the windows implementation
  36  * So the constructor throws a FontFormatException, which is caught
  37  * and the font is ignored.
  38  */
  39 
  40 public class NativeFont extends PhysicalFont {
  41 
  42     /**
  43      * Verifies native font is accessible.
  44      * @throws FontFormatException - if the font can't be located.
  45      */
  46     public NativeFont(String platName, boolean isBitmapDelegate)
  47         throws FontFormatException {
  48 
  49         throw new FontFormatException("NativeFont not used on Windows");
  50     }
  51 
  52     static boolean hasExternalBitmaps(String platName) {
  53         return false;
  54     }
  55 
  56     public CharToGlyphMapper getMapper() {
  57         return null;
  58     }
  59 
  60     PhysicalFont getDelegateFont() {
  61         return null;
  62     }
  63 
  64     FontStrike createStrike(FontStrikeDesc desc) {




  24  */
  25 
  26 package sun.font;
  27 
  28 import java.awt.FontFormatException;
  29 import java.awt.font.FontRenderContext;
  30 import java.awt.geom.GeneralPath;
  31 import java.awt.geom.Point2D;
  32 import java.awt.geom.Rectangle2D;
  33 
  34 /*
  35  * This class should never be invoked on the windows implementation
  36  * So the constructor throws a FontFormatException, which is caught
  37  * and the font is ignored.
  38  */
  39 
  40 public class NativeFont extends PhysicalFont {
  41 
  42     /**
  43      * Verifies native font is accessible.
  44      * @throws FontFormatException if the font can't be located.
  45      */
  46     public NativeFont(String platName, boolean isBitmapDelegate)
  47         throws FontFormatException {
  48 
  49         throw new FontFormatException("NativeFont not used on Windows");
  50     }
  51 
  52     static boolean hasExternalBitmaps(String platName) {
  53         return false;
  54     }
  55 
  56     public CharToGlyphMapper getMapper() {
  57         return null;
  58     }
  59 
  60     PhysicalFont getDelegateFont() {
  61         return null;
  62     }
  63 
  64     FontStrike createStrike(FontStrikeDesc desc) {


< prev index next >