summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-11-05 20:42:37 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-11-05 20:42:37 +0000
commit5039bdecec48240ef4e56d095451adc2769d8931 (patch)
treed640ab9769dd359037d47092e2bb1fe0bb0dc5ee /tools
parentd686e1d4ae80b64390149e7336329c0254479161 (diff)
downloadpango-5039bdecec48240ef4e56d095451adc2769d8931.tar.gz
Update to new propsed language enumeration API for fontconfig.
2007-11-05 Behdad Esfahbod <behdad@gnome.org> * tools/gen-script-for-lang-new.c (scripts_for_lang), (main): Update to new propsed language enumeration API for fontconfig. svn path=/trunk/; revision=2492
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-script-for-lang-new.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gen-script-for-lang-new.c b/tools/gen-script-for-lang-new.c
index 2ef49859..ba38ae69 100644
--- a/tools/gen-script-for-lang-new.c
+++ b/tools/gen-script-for-lang-new.c
@@ -111,7 +111,7 @@ scripts_for_lang (LangInfo *info)
FcChar32 map[FC_CHARSET_MAP_SIZE];
int i;
- charset = FcCharSetForLang ((const FcChar8 *) info->lang);
+ charset = FcLangGetCharSet ((const FcChar8 *) info->lang);
if (!charset)
return;
@@ -208,6 +208,7 @@ int main (void)
int max_lang_len = 0;
int max_script_len = 0;
+ FcStrSet *langs_set;
FcStrList *langs;
FcChar8* lang;
@@ -222,7 +223,9 @@ int main (void)
script_array = g_array_new (FALSE, FALSE, sizeof (LangInfo));
- langs = FcGetLangs ();
+ langs_set = FcGetLangs ();
+ langs = FcStrListCreate (langs_set);
+ FcStrSetDestroy (langs_set);
while ((lang = FcStrListNext (langs)))
do_lang (script_array, lang);