32 |
#include <vob/buildmipmaps.hxx> |
#include <vob/buildmipmaps.hxx> |
33 |
#include <vob/Debug.hxx> |
#include <vob/Debug.hxx> |
34 |
|
|
35 |
|
#include <vob/Font.hxx> |
36 |
|
|
37 |
#include "org_nongnu_libvob_gl_GL.h" |
#include "org_nongnu_libvob_gl_GL.h" |
38 |
#include "vobjnidef.hxx" |
#include "vobjnidef.hxx" |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
namespace Vob { |
namespace Vob { |
43 |
namespace JNI { |
namespace JNI { |
44 |
|
|
53 |
new GLMosaicText::FTFont(utf.c_str(), pt); |
new GLMosaicText::FTFont(utf.c_str(), pt); |
54 |
GLMosaicText::Font *gf = new GLMosaicText::Font_Bordered( |
GLMosaicText::Font *gf = new GLMosaicText::Font_Bordered( |
55 |
gf0, border); |
gf0, border); |
56 |
RealFont *f = new RealFont(gf); |
Font::RealFont *f = new Font::RealFont(gf); |
57 |
releaseWindow(); |
releaseWindow(); |
58 |
return textrenderers.add(f); |
return textrenderers.add(f); |
59 |
} |
} |
78 |
|
|
79 |
int arrayLength = env->GetArrayLength(widths); |
int arrayLength = env->GetArrayLength(widths); |
80 |
jfloat *w = env->GetFloatArrayElements(widths, 0); |
jfloat *w = env->GetFloatArrayElements(widths, 0); |
81 |
RealFont *font = textrenderers.get(fontId); |
Font::RealFont *font = textrenderers.get(fontId); |
82 |
|
|
83 |
for(int i=0; i<arrayLength; i++) { |
for(int i=0; i<arrayLength; i++) { |
84 |
w[i] = font->getGlyphWidth(i); |
w[i] = font->getGlyphWidth(i); |