/***************************************************************************
                            QFont.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QFont implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QFont(Class dummy){}

	private native void newQFont();
	public QFont() {
		newQFont();
	}
	private native void newQFont( String family, int pointSize, int weight, boolean italic);
	public QFont( String family, int pointSize, int weight, boolean italic) {
		newQFont( family, pointSize, weight, italic);
	}
	public QFont( String family, int pointSize, int weight) {
		this( family, pointSize, weight, false);
	}
	public QFont( String family, int pointSize) {
		this( family, pointSize, Normal, false);
	}
	private native void newQFont( String family);
	public QFont( String family) {
		newQFont( family);
	}
	private native void newQFont( QFont arg1);
	public QFont( QFont arg1) {
		newQFont( arg1);
	}
	protected native void finalize() throws InternalError;
	public native String family();
	public native void setFamily( String arg1);
	public native int pointSize();
	public native float pointSizeFloat();
	public native void setPointSize( int arg1);
	public native void setPointSizeFloat( float arg1);
	public native int pixelSize();
	public native void setPixelSize( int arg1);
	public native void setPixelSizeFloat( float arg1);
	public native int weight();
	public native void setWeight( int arg1);
	public native boolean bold();
	public native void setBold( boolean arg1);
	public native boolean italic();
	public native void setItalic( boolean arg1);
	public native boolean underline();
	public native void setUnderline( boolean arg1);
	public native boolean strikeOut();
	public native void setStrikeOut( boolean arg1);
	public native boolean fixedPitch();
	public native void setFixedPitch( boolean arg1);
	public native int styleHint();
	public native int styleStrategy();
	public native void setStyleHint( int arg1, int arg2);
	public native void setStyleHint( int arg1);
	public native void setStyleStrategy( int s);
	public native boolean rawMode();
	public native void setRawMode( boolean arg1);
	public native boolean exactMatch();
	public native boolean isCopyOf( QFont arg1);
//	public native int handle();
//	public native int handle();
	public native void setRawName( String arg1);
	public native String rawName();
	public native String key();
	public native String toString();
	public native boolean fromString( String arg1);
//	public native void qwsRenderToDisk( boolean all);
//	public native void qwsRenderToDisk();
	public native String defaultFamily();
	public native String lastResortFamily();
	public native String lastResortFont();
	public static native String substitute( String arg1);
	public static native ArrayList substitutes( String arg1);
	public static native ArrayList substitutions();
	public static native void insertSubstitution( String arg1, String arg2);
	public static native void insertSubstitutions( String arg1, String[] arg2);
	public static native void removeSubstitution( String arg1);
	public static native void initialize();
	public static native void cleanup();
	public static native void cacheStatistics();
	public static native QFont defaultFont();
	public static native void setDefaultFont( QFont arg1);
//	protected native boolean dirty();
	protected native int deciPointSize();
	public static final int Helvetica = 0;
	public static final int SansSerif = Helvetica;
	public static final int Times = 1;
	public static final int Serif = Times;
	public static final int Courier = 2;
	public static final int TypeWriter = Courier;
	public static final int OldEnglish = 3;
	public static final int Decorative = OldEnglish;
	public static final int System = 4;
	public static final int AnyStyle = 5;
	public static final int PreferDefault = 0x0001;
	public static final int PreferBitmap = 0x0002;
	public static final int PreferDevice = 0x0004;
	public static final int PreferOutline = 0x0008;
	public static final int ForceOutline = 0x0010;
	public static final int PreferMatch = 0x0020;
	public static final int PreferQuality = 0x0040;
	public static final int PreferAntialias = 0x0080;
	public static final int NoAntialias = 0x0100;
	public static final int Light = 25;
	public static final int Normal = 50;
	public static final int DemiBold = 63;
	public static final int Bold = 75;
	public static final int Black = 87;
	public static final int Latin = 0;
	public static final int Greek = 1;
	public static final int Cyrillic = 2;
	public static final int Armenian = 3;
	public static final int Georgian = 4;
	public static final int Runic = 5;
	public static final int Ogham = 6;
	public static final int SpacingModifiers = 7;
	public static final int CombiningMarks = 8;
	public static final int Hebrew = 9;
	public static final int Arabic = 10;
	public static final int Syriac = 11;
	public static final int Thaana = 12;
	public static final int Devanagari = 13;
	public static final int Bengali = 14;
	public static final int Gurmukhi = 15;
	public static final int Gujarati = 16;
	public static final int Oriya = 17;
	public static final int Tamil = 18;
	public static final int Telugu = 19;
	public static final int Kannada = 20;
	public static final int Malayalam = 21;
	public static final int Sinhala = 22;
	public static final int Thai = 23;
	public static final int Lao = 24;
	public static final int Tibetan = 25;
	public static final int Myanmar = 26;
	public static final int Khmer = 27;
	public static final int Han = 28;
	public static final int Hiragana = 29;
	public static final int Katakana = 30;
	public static final int Hangul = 31;
	public static final int Bopomofo = 32;
	public static final int Yi = 33;
	public static final int Ethiopic = 34;
	public static final int Cherokee = 35;
	public static final int CanadianAboriginal = 36;
	public static final int Mongolian = 37;
	public static final int CurrencySymbols = 38;
	public static final int LetterlikeSymbols = 39;
	public static final int NumberForms = 40;
	public static final int MathematicalOperators = 41;
	public static final int TechnicalSymbols = 42;
	public static final int GeometricSymbols = 43;
	public static final int MiscellaneousSymbols = 44;
	public static final int EnclosedAndSquare = 45;
	public static final int Braille = 46;
	public static final int Unicode = 47;
	public static final int NScripts = 48;
	public static final int UnknownScript = NScripts;
	public static final int NoScript = 49;
	public static final int HanX11 = 50;
	public static final int LatinBasic = Latin;
	public static final int LatinExtendedA_2 = HanX11+1;
	public static final int LatinExtendedA_3 = 51;
	public static final int LatinExtendedA_4 = 52;
	public static final int LatinExtendedA_14 = 53;
	public static final int LatinExtendedA_15 = 54;
	public static final int LastPrivateScript = 55;
}
