/[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.3 by tjl, Tue Apr 8 20:25:03 2003 UTC revision 1.4 by tjl, Fri Aug 15 18:53:38 2003 UTC
# Line 32  Font.cxx Line 32  Font.cxx
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    
# Line 50  jf( jint , createFontImpl) Line 53  jf( jint , createFontImpl)
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    }    }
# Line 75  jf( void , putFontWidths) Line 78  jf( void , putFontWidths)
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);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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