001: /*
002: * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025:
026: package sun.font;
027:
028: import java.awt.FontFormatException;
029: import java.awt.font.FontRenderContext;
030: import java.awt.geom.GeneralPath;
031: import java.awt.geom.Point2D;
032: import java.awt.geom.Rectangle2D;
033:
034: /*
035: * This class should never be invoked on the windows implementation
036: * So the constructor throws a FontFormatException, which is caught
037: * and the font is ignored.
038: */
039:
040: public class NativeFont extends PhysicalFont {
041:
042: /**
043: * Verifies native font is accessible.
044: * @throws FontFormatException - if the font can't be located.
045: */
046: public NativeFont(String platName, boolean isBitmapDelegate)
047: throws FontFormatException {
048:
049: throw new FontFormatException("NativeFont not used on Windows");
050: }
051:
052: static boolean hasExternalBitmaps(String platName) {
053: return false;
054: }
055:
056: public CharToGlyphMapper getMapper() {
057: return null;
058: }
059:
060: PhysicalFont getDelegateFont() {
061: return null;
062: }
063:
064: FontStrike createStrike(FontStrikeDesc desc) {
065: return null;
066: }
067:
068: public Rectangle2D getMaxCharBounds(FontRenderContext frc) {
069: return null;
070: }
071:
072: StrikeMetrics getFontMetrics(long pScalerContext) {
073: return null;
074: }
075:
076: public GeneralPath getGlyphOutline(long pScalerContext,
077: int glyphCode, float x, float y) {
078: return null;
079: }
080:
081: public GeneralPath getGlyphVectorOutline(long pScalerContext,
082: int[] glyphs, int numGlyphs, float x, float y) {
083: return null;
084: }
085:
086: long getGlyphImage(long pScalerContext, int glyphCode) {
087: return 0L;
088: }
089:
090: void getGlyphMetrics(long pScalerContext, int glyphCode,
091: Point2D.Float metrics) {
092: }
093:
094: float getGlyphAdvance(long pScalerContext, int glyphCode) {
095: return 0f;
096: }
097:
098: Rectangle2D.Float getGlyphOutlineBounds(long pScalerContext,
099: int glyphCode) {
100: return new Rectangle2D.Float(0f, 0f, 0f, 0f);
101: }
102: }
|