summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-05-09 23:06:54 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-05-09 23:06:54 +0000
commit1fc9d8b76930a0aee71096440b89530b39922b5c (patch)
tree1dfb7d9ca066ec0672e60d1c6c11ecb0dead4fc7 /tools
parentf989fdd7934bc541ef071ab3815ae11328027bd0 (diff)
downloadpango-1fc9d8b76930a0aee71096440b89530b39922b5c.tar.gz
Update from latest fontconfig sources.
2007-05-09 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script-lang-table.h: Update from latest fontconfig sources. * tools/gen-script-for-lang.c (scripts_for_line): Make it handle PANGO_SCRIPT_UNKNOWN. svn path=/trunk/; revision=2271
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-script-for-lang.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index 00d847aa..6d866f64 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -136,6 +136,13 @@ scripts_for_line (const char *base_dir,
script != PANGO_SCRIPT_INHERITED)
{
int j;
+
+ if (script == PANGO_SCRIPT_UNKNOWN)
+ {
+ g_message ("Script unknown for U+%04X", ch);
+ continue;
+ }
+
for (j = 0; j < MAX_SCRIPTS; j++)
{
if (info->scripts[j] == script)