[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob org/nongnu/libvob/gl/GL.java src/jni/Fon...
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob org/nongnu/libvob/gl/GL.java src/jni/Fon... |
Date: |
Tue, 08 Apr 2003 07:37:31 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Tuomas J. Lukka <address@hidden> 03/04/08 07:37:31
Modified files:
org/nongnu/libvob/gl: GL.java
src/jni : Font.cxx
Log message:
Fix text border
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/gl/GL.java.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/src/jni/Font.cxx.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/gl/GL.java
diff -u libvob/org/nongnu/libvob/gl/GL.java:1.6
libvob/org/nongnu/libvob/gl/GL.java:1.7
--- libvob/org/nongnu/libvob/gl/GL.java:1.6 Fri Mar 21 04:42:51 2003
+++ libvob/org/nongnu/libvob/gl/GL.java Tue Apr 8 07:37:30 2003
@@ -514,13 +514,17 @@
* @param loadPt The pixel size to load the font at.
*/
static public Font createFont(String name, int loadPt) {
+ return createFont(name, loadPt, 15);
+ }
+
+ static public Font createFont(String name, int loadPt, int border) {
return new Font(createFontImpl(
name == null ? defaultFontFile : name,
loadPt));
}
- static private native int createFontImpl(String filename, int loadPt);
+ static private native int createFontImpl(String filename, int loadPt, int
border);
static private native float getFontHeight(int id);
static private native float getFontYOffs(int id);
static private native void deleteFont(int id);
Index: libvob/src/jni/Font.cxx
diff -u libvob/src/jni/Font.cxx:1.1 libvob/src/jni/Font.cxx:1.2
--- libvob/src/jni/Font.cxx:1.1 Mon Mar 17 07:48:19 2003
+++ libvob/src/jni/Font.cxx Tue Apr 8 07:37:31 2003
@@ -42,14 +42,14 @@
extern "C" {
jf( jint , createFontImpl)
- (JNIEnv *env, jclass, jstring file, jint pt) {
+ (JNIEnv *env, jclass, jstring file, jint pt, jint border) {
DBG(dbg) << "creatFontImpl\n";
setWindow();
std::string utf = jstr2stdstr(env, file);
GLMosaicText::Font *gf0 =
new GLMosaicText::FTFont(utf.c_str(), pt);
GLMosaicText::Font *gf = new GLMosaicText::Font_Bordered(
- gf0, 10);
+ gf0, border);
RealFont *f = new RealFont(gf);
releaseWindow();
return textrenderers.add(f);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] libvob org/nongnu/libvob/gl/GL.java src/jni/Fon...,
Tuomas J. Lukka <=