]> git.mjollnir.org Git - moodle.git/commitdiff
OpenType Unicode font with Greek support (Arial) plus lang_decode.php so
authordefacer <defacer>
Tue, 27 Apr 2004 16:32:50 +0000 (16:32 +0000)
committerdefacer <defacer>
Tue, 27 Apr 2004 16:32:50 +0000 (16:32 +0000)
that we can have graphs with greek legends.

lang/el/fonts/default.ttf [new file with mode: 0644]
lang/el/fonts/lang_decode.php [new file with mode: 0644]

diff --git a/lang/el/fonts/default.ttf b/lang/el/fonts/default.ttf
new file mode 100644 (file)
index 0000000..ff0815c
Binary files /dev/null and b/lang/el/fonts/default.ttf differ
diff --git a/lang/el/fonts/lang_decode.php b/lang/el/fonts/lang_decode.php
new file mode 100644 (file)
index 0000000..d5f657c
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+function lang_decode($s) {
+    $len = strlen($s);
+    $out = '';
+    for($i=0; $i < $len; $i++) {
+        $ch = ord($s[$i]);
+        $out .= $ch > 128 && $ch < 256 ? '&#'.(720 + $ch).';' : chr($ch);
+    }
+    return $out;
+}
+
+?>