aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/font/opentype/OpenTypeFont.h
blob: 3fec583d7d5362f3150c994d6582bc84f910d3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

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

#ifndef __gnu_java_awt_font_opentype_OpenTypeFont__
#define __gnu_java_awt_font_opentype_OpenTypeFont__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace font
        {
          namespace opentype
          {
              class CharGlyphMap;
              class GlyphNamer;
              class Hinter;
              class OpenTypeFont;
              class Scaler;
            namespace truetype
            {
                class Zone;
            }
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Font;
      namespace font
      {
          class FontRenderContext;
          class GlyphVector;
      }
      namespace geom
      {
          class AffineTransform;
          class GeneralPath;
          class Point2D;
      }
    }
    namespace nio
    {
        class ByteBuffer;
    }
    namespace text
    {
        class CharacterIterator;
    }
  }
}

class gnu::java::awt::font::opentype::OpenTypeFont : public ::java::lang::Object
{

public: // actually package-private
  OpenTypeFont(::java::nio::ByteBuffer *, jint);
private:
  jint getTableIndex(jint);
public:
  ::java::lang::String * getFamilyName(::java::util::Locale *);
  ::java::lang::String * getSubFamilyName(::java::util::Locale *);
  ::java::lang::String * getFullName(::java::util::Locale *);
  ::java::lang::String * getPostScriptName();
  jint getNumGlyphs();
  jint getMissingGlyphCode();
private:
  ::java::lang::String * getName(jint, ::java::util::Locale *);
public:
  jint getVersion();
  ::java::nio::ByteBuffer * getFontTable(jint);
  jint getFontTableSize(jint);
private:
  ::gnu::java::awt::font::opentype::CharGlyphMap * getCharGlyphMap();
public:
  jint getGlyph(jint);
  ::java::awt::font::GlyphVector * createGlyphVector(::java::awt::Font *, ::java::awt::font::FontRenderContext *, ::java::text::CharacterIterator *);
  jint getGlyphIndex(jint);
  void getAdvance(jint, jfloat, ::java::awt::geom::AffineTransform *, jboolean, jboolean, jboolean, ::java::awt::geom::Point2D *);
  ::java::awt::geom::GeneralPath * getGlyphOutline(jint, jfloat, ::java::awt::geom::AffineTransform *, jboolean, jboolean, jint);
  ::gnu::java::awt::font::opentype::truetype::Zone * getRawGlyphOutline(jint, ::java::awt::geom::AffineTransform *);
  ::java::lang::String * getGlyphName(jint);
  jfloat getAscent(jfloat, ::java::awt::geom::AffineTransform *, jboolean, jboolean, jboolean);
  jfloat getDescent(jfloat, ::java::awt::geom::AffineTransform *, jboolean, jboolean, jboolean);
public: // actually package-private
  static ::java::lang::String * tagToString(jint);
private:
  void checkHinter(jint);
public: // actually package-private
  static const jint TAG_OTTO = 1330926671;
  static const jint TAG_SFNT = 1936092788;
  static const jint TAG_TRUE = 1953658213;
  static const jint TAG_TTCF = 1953784678;
  static const jint TAG_ZAPF = 1516335206;
  ::java::nio::ByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buf;
  jint numGlyphs;
  JArray< jint > * tableTag;
  JArray< jint > * tableStart;
  JArray< jint > * tableLength;
private:
  jint version;
public:
  jint unitsPerEm;
private:
  jfloat emsPerUnit;
  ::gnu::java::awt::font::opentype::Scaler * scaler;
  ::gnu::java::awt::font::opentype::CharGlyphMap * cmap;
  ::gnu::java::awt::font::opentype::GlyphNamer * glyphNamer;
  ::gnu::java::awt::font::opentype::Hinter * hinter;
  ::java::nio::ByteBuffer * nameTable;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_font_opentype_OpenTypeFont__