Lines Matching refs:fontFile
606 private Font(File fontFile, int fontFormat,
614 this.font2DHandle = fm.createFont2D(fontFile, fontFormat, isCopy,
1015 * the implementation may continue to access <code>fontFile</code>
1023 * @param fontFile a <code>File</code> object representing the
1028 * @throws NullPointerException if <code>fontFile</code> is null.
1029 * @throws IOException if the <code>fontFile</code> cannot be read.
1030 * @throws FontFormatException if <code>fontFile</code> does
1037 public static Font createFont(int fontFormat, File fontFile)
1040 fontFile = new File(fontFile.getPath());
1049 new FilePermission(fontFile.getPath(), "read");
1052 if (!fontFile.canRead()) {
1053 throw new IOException("Can't read " + fontFile);
1055 return new Font(fontFile, fontFormat, false, null);