/[libvob]/libvob/src/jni/Font.cxx
ViewVC logotype

Diff of /libvob/src/jni/Font.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Mon Mar 17 12:48:19 2003 UTC revision 1.2 by tjl, Tue Apr 8 11:37:31 2003 UTC
# Line 42  namespace JNI { Line 42  namespace JNI {
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);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26