
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_font_OpenTypeFontPeer__
#define __gnu_java_awt_font_OpenTypeFontPeer__

#pragma interface

#include <gnu/java/awt/peer/ClasspathFontPeer.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace font
        {
            class FontDelegate;
            class OpenTypeFontPeer;
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Font;
        class FontMetrics;
      namespace font
      {
          class FontRenderContext;
          class GlyphVector;
          class LineMetrics;
      }
      namespace geom
      {
          class AffineTransform;
          class Rectangle2D;
      }
    }
    namespace text
    {
        class CharacterIterator;
    }
  }
}

class gnu::java::awt::font::OpenTypeFontPeer : public ::gnu::java::awt::peer::ClasspathFontPeer
{

public:
  OpenTypeFontPeer(::java::lang::String *, jint, jint);
  OpenTypeFontPeer(::java::lang::String *, ::java::util::Map *);
  virtual jboolean canDisplay(::java::awt::Font *, jint);
  virtual jint canDisplayUpTo(::java::awt::Font *, ::java::text::CharacterIterator *, jint, jint);
  virtual ::java::lang::String * getSubFamilyName(::java::awt::Font *, ::java::util::Locale *);
  virtual ::java::lang::String * getPostScriptName(::java::awt::Font *);
  virtual jint getNumGlyphs(::java::awt::Font *);
  virtual jint getMissingGlyphCode(::java::awt::Font *);
  virtual jbyte getBaselineFor(::java::awt::Font *, jchar);
  virtual ::java::lang::String * getGlyphName(::java::awt::Font *, jint);
  virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, ::java::text::CharacterIterator *);
  virtual ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, JArray< jint > *);
  virtual ::java::awt::font::GlyphVector * layoutGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, JArray< jchar > *, jint, jint, jint);
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual jboolean hasUniformLineMetrics(::java::awt::Font *);
  virtual ::java::awt::font::LineMetrics * getLineMetrics(::java::awt::Font *, ::java::text::CharacterIterator *, jint, jint, ::java::awt::font::FontRenderContext *);
  virtual ::java::awt::geom::Rectangle2D * getMaxCharBounds(::java::awt::Font *, ::java::awt::font::FontRenderContext *);
  static ::java::lang::String * encodeFont(::java::lang::String *, ::java::util::Map *);
public: // actually package-private
  static ::java::lang::String * encodeFont(::java::lang::String *, jint);
  static ::java::lang::String * validName(::java::lang::String *);
public:
  static JArray< ::java::lang::String * > * getAvailableFontFamilyNames(::java::util::Locale *);
private:
  static ::java::util::Set * getFontNames();
  ::java::lang::String * mapFontToFilename(::java::lang::String *);
public: // actually package-private
  static ::gnu::java::awt::font::FontDelegate * access$0(::gnu::java::awt::font::OpenTypeFontPeer *);
  static ::java::awt::geom::AffineTransform * access$1();
private:
  static ::java::util::Properties * fontProperties;
  static ::java::util::Set * availableFontNames;
  static ::java::util::Map * fontToFileMap;
  static ::java::awt::geom::AffineTransform * IDENDITY;
  ::gnu::java::awt::font::FontDelegate * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::ClasspathFontPeer)))) fontDelegate;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_font_OpenTypeFontPeer__
