42 |
|
|
43 |
extern "C" { |
extern "C" { |
44 |
jf( jint , createFontImpl) |
jf( jint , createFontImpl) |
45 |
(JNIEnv *env, jclass, jstring file, jint pt) { |
(JNIEnv *env, jclass, jstring file, jint pt, jint border) { |
46 |
DBG(dbg) << "creatFontImpl\n"; |
DBG(dbg) << "creatFontImpl\n"; |
47 |
setWindow(); |
setWindow(); |
48 |
std::string utf = jstr2stdstr(env, file); |
std::string utf = jstr2stdstr(env, file); |
49 |
GLMosaicText::Font *gf0 = |
GLMosaicText::Font *gf0 = |
50 |
new GLMosaicText::FTFont(utf.c_str(), pt); |
new GLMosaicText::FTFont(utf.c_str(), pt); |
51 |
GLMosaicText::Font *gf = new GLMosaicText::Font_Bordered( |
GLMosaicText::Font *gf = new GLMosaicText::Font_Bordered( |
52 |
gf0, 10); |
gf0, border); |
53 |
RealFont *f = new RealFont(gf); |
RealFont *f = new RealFont(gf); |
54 |
releaseWindow(); |
releaseWindow(); |
55 |
return textrenderers.add(f); |
return textrenderers.add(f); |