blob: be03340ea4e4efa6a1c100cc030eb3bacf5a1d4a [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26package sun.font;
27
28import java.awt.FontFormatException;
29import java.awt.font.FontRenderContext;
30import java.awt.geom.GeneralPath;
31import java.awt.geom.Point2D;
32import 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
40public 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) {
65 return null;
66 }
67
68 public Rectangle2D getMaxCharBounds(FontRenderContext frc) {
69 return null;
70 }
71
72 StrikeMetrics getFontMetrics(long pScalerContext) {
73 return null;
74 }
75
76 public GeneralPath getGlyphOutline(long pScalerContext,
77 int glyphCode,
78 float x, float y) {
79 return null;
80 }
81
82 public GeneralPath getGlyphVectorOutline(long pScalerContext,
83 int[] glyphs, int numGlyphs,
84 float x, float y) {
85 return null;
86 }
87
88
89 long getGlyphImage(long pScalerContext, int glyphCode) {
90 return 0L;
91 }
92
93
94 void getGlyphMetrics(long pScalerContext, int glyphCode,
95 Point2D.Float metrics) {
96 }
97
98
99 float getGlyphAdvance(long pScalerContext, int glyphCode) {
100 return 0f;
101 }
102
103 Rectangle2D.Float getGlyphOutlineBounds(long pScalerContext,
104 int glyphCode) {
105 return new Rectangle2D.Float(0f, 0f, 0f, 0f);
106 }
107}