26 |
convert = { |
convert = { |
27 |
"String" : { |
"String" : { |
28 |
"JNI" : "jstring", |
"JNI" : "jstring", |
29 |
"CXX" : "unistring", |
"CXX" : "unicodecharvector", |
30 |
"pre" : (lambda v, p : "const jchar *jc_"+p\ |
"pre" : (lambda v, p : "const jchar *jc_"+p\ |
31 |
+" = env->GetStringChars("+p \ |
+" = env->GetStringChars("+p \ |
32 |
+", 0); unistring "+v+"(jc_"+p+"); \ |
+", 0); unicodecharvector "+v+"(jc_"+p+", jc_"+p+" + env->GetStringLength("+p+")); \ |
33 |
env->ReleaseStringChars("+p+", jc_"+p+");\n"), |
env->ReleaseStringChars("+p+", jc_"+p+");\n"), |
34 |
}, |
}, |
35 |
"Font" : { |
"Font" : { |
983 |
"Name": "HorizText", |
"Name": "HorizText", |
984 |
"Data": """ |
"Data": """ |
985 |
TextRenderer *r; |
TextRenderer *r; |
986 |
unistring txt; |
unicodecharvector txt; |
987 |
ZPt origin; |
ZPt origin; |
988 |
float heightmul; |
float heightmul; |
989 |
float widthmul; |
float widthmul; |
1014 |
"RenderCode" : """ |
"RenderCode" : """ |
1015 |
if (dbg) { |
if (dbg) { |
1016 |
cout << "HorizText:\\n"; |
cout << "HorizText:\\n"; |
1017 |
for (unistring::iterator it = txt.begin(); it != txt.end(); ++it) |
for (unicodecharvector::iterator it = txt.begin(); it != txt.end(); ++it) |
1018 |
cout << "'" << (char)*it << "' (" << (int)*it << ")\\n"; |
cout << "'" << (char)*it << "' (" << (int)*it << ")\\n"; |
1019 |
} |
} |
1020 |
|
|
1038 |
"Name": "HorizText2", |
"Name": "HorizText2", |
1039 |
"Data": """ |
"Data": """ |
1040 |
TextRenderer *r; |
TextRenderer *r; |
1041 |
unistring txt; |
unicodecharvector txt; |
1042 |
float height, ascent, scale; |
float height, ascent, scale; |
1043 |
int magic; |
int magic; |
1044 |
""", |
""", |
1107 |
"Name": "HorizText_Squished", |
"Name": "HorizText_Squished", |
1108 |
"Data": """ |
"Data": """ |
1109 |
TextRenderer *r; |
TextRenderer *r; |
1110 |
unistring txt; |
unicodecharvector txt; |
1111 |
ZPt origin; |
ZPt origin; |
1112 |
float heightmul; |
float heightmul; |
1113 |
float widthmul; |
float widthmul; |