X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libjava%2Fgnu%2Fgcj%2Fxlib%2FFont.java;fp=libjava%2Fgnu%2Fgcj%2Fxlib%2FFont.java;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=cd2fff9630d86511f971a1d1871a319a7a702e28;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/gnu/gcj/xlib/Font.java b/libjava/gnu/gcj/xlib/Font.java deleted file mode 100644 index cd2fff96..00000000 --- a/libjava/gnu/gcj/xlib/Font.java +++ /dev/null @@ -1,51 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package gnu.gcj.xlib; - -import gnu.gcj.RawData; - -/** - * An X11 Font, implemented as a wrapper around an X11 Font XID and - * the associated Xlib XFontStruct structure. - * - * @author Rolf W. Rasmussen - */ -public final class Font extends XID -{ - - /** - * @param lfdNamePattern a font name pattern following the - * X Logical Font Description Conventions. - */ - public Font(Display display, String lfdNamePattern) - { - this(display, loadFont(display, lfdNamePattern)); - } - - Font(Display display, RawData struct) - { - super(display, getXIDFromStruct(struct)); - structure = struct; - } - - static native RawData loadFont(Display display, String lfdNamePattern); - - static native int getXIDFromStruct(RawData structure); - - public native int getAscent(); - public native int getDescent(); - public native int getMaxAscent(); - public native int getMaxDescent(); - - public native int getStringWidth(String str); - - protected native void finalize(); - - RawData structure; -}