1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_awt_font_opentype_truetype_GlyphLoader__
|
5 |
|
|
#define __gnu_java_awt_font_opentype_truetype_GlyphLoader__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace awt
|
19 |
|
|
{
|
20 |
|
|
namespace font
|
21 |
|
|
{
|
22 |
|
|
namespace opentype
|
23 |
|
|
{
|
24 |
|
|
class Hinter;
|
25 |
|
|
namespace truetype
|
26 |
|
|
{
|
27 |
|
|
class GlyphLoader;
|
28 |
|
|
class GlyphLocator;
|
29 |
|
|
class GlyphMeasurer;
|
30 |
|
|
class VirtualMachine;
|
31 |
|
|
class Zone;
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
namespace java
|
39 |
|
|
{
|
40 |
|
|
namespace awt
|
41 |
|
|
{
|
42 |
|
|
namespace geom
|
43 |
|
|
{
|
44 |
|
|
class AffineTransform;
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
namespace nio
|
48 |
|
|
{
|
49 |
|
|
class ByteBuffer;
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
class gnu::java::awt::font::opentype::truetype::GlyphLoader : public ::java::lang::Object
|
55 |
|
|
{
|
56 |
|
|
|
57 |
|
|
public: // actually package-private
|
58 |
|
|
GlyphLoader(::gnu::java::awt::font::opentype::truetype::GlyphLocator *, ::gnu::java::awt::font::opentype::truetype::VirtualMachine *, jint, jint, jint, ::gnu::java::awt::font::opentype::truetype::GlyphMeasurer *);
|
59 |
|
|
public:
|
60 |
|
|
void loadGlyph(jint, jdouble, ::java::awt::geom::AffineTransform *, jboolean, ::gnu::java::awt::font::opentype::truetype::Zone *, ::gnu::java::awt::font::opentype::Hinter *);
|
61 |
|
|
void loadGlyph(jint, ::java::awt::geom::AffineTransform *, ::gnu::java::awt::font::opentype::truetype::Zone *, ::gnu::java::awt::font::opentype::Hinter *);
|
62 |
|
|
private:
|
63 |
|
|
void loadSubGlyph(jint, jdouble, ::java::awt::geom::AffineTransform *, jboolean, ::gnu::java::awt::font::opentype::truetype::Zone *, jint, jint, ::gnu::java::awt::font::opentype::Hinter *);
|
64 |
|
|
void loadSimpleGlyph(jint, jdouble, ::java::awt::geom::AffineTransform *, jboolean, jint, ::java::nio::ByteBuffer *, ::gnu::java::awt::font::opentype::truetype::Zone *, jint, jint, ::gnu::java::awt::font::opentype::Hinter *);
|
65 |
|
|
void loadCompoundGlyph(jint, jdouble, ::java::awt::geom::AffineTransform *, jboolean, ::java::nio::ByteBuffer *, ::gnu::java::awt::font::opentype::truetype::Zone *, jint, jint, ::gnu::java::awt::font::opentype::Hinter *);
|
66 |
|
|
jdouble getDouble214(::java::nio::ByteBuffer *);
|
67 |
|
|
void loadFlags(jint, ::java::nio::ByteBuffer *);
|
68 |
|
|
void loadCoordinates(jint, ::java::nio::ByteBuffer *, ::gnu::java::awt::font::opentype::truetype::Zone *);
|
69 |
|
|
void setPhantomPoints(jint, jint, ::gnu::java::awt::font::opentype::truetype::Zone *);
|
70 |
|
|
::gnu::java::awt::font::opentype::truetype::GlyphLocator * __attribute__((aligned(__alignof__( ::java::lang::Object)))) glyphLocator;
|
71 |
|
|
::gnu::java::awt::font::opentype::truetype::GlyphMeasurer * glyphMeasurer;
|
72 |
|
|
::gnu::java::awt::font::opentype::truetype::VirtualMachine * vm;
|
73 |
|
|
jint unitsPerEm;
|
74 |
|
|
JArray< jint > * contourEndPoints;
|
75 |
|
|
JArray< jbyte > * pointFlags;
|
76 |
|
|
static const jshort ARGS_ARE_WORDS = 1;
|
77 |
|
|
static const jshort ARGS_ARE_XY_VALUES = 2;
|
78 |
|
|
static const jshort ROUND_XY_TO_GRID = 4;
|
79 |
|
|
static const jshort WE_HAVE_A_SCALE = 8;
|
80 |
|
|
static const jshort MORE_COMPONENTS = 32;
|
81 |
|
|
static const jshort WE_HAVE_AN_X_AND_Y_SCALE = 64;
|
82 |
|
|
static const jshort WE_HAVE_A_TWO_BY_TWO = 128;
|
83 |
|
|
static const jshort WE_HAVE_INSTRUCTIONS = 256;
|
84 |
|
|
static const jshort USE_MY_METRICS = 512;
|
85 |
|
|
static const jshort OVERLAP_COMPOUND = 1024;
|
86 |
|
|
static const jshort SCALED_COMPONENT_OFFSET = 2048;
|
87 |
|
|
static const jshort UNSCALED_COMPONENT_OFFSET = 4096;
|
88 |
|
|
public:
|
89 |
|
|
static ::java::lang::Class class$;
|
90 |
|
|
};
|
91 |
|
|
|
92 |
|
|
#endif // __gnu_java_awt_font_opentype_truetype_GlyphLoader__
|