summaryrefslogtreecommitdiff
path: root/pango/pango-script.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-08-20 03:07:28 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-08-20 03:07:28 +0000
commit6a788868a78636e6f1760b18e0b732288aecc6f3 (patch)
treef95ea1f0bf957d742f622650e440a37301c30fb9 /pango/pango-script.c
parent938ae8d796f402c5538f6a911d1b698e53a134bf (diff)
downloadpango-6a788868a78636e6f1760b18e0b732288aecc6f3.tar.gz
Bug 473805 – Add API enumerating scripts for a language
2008-08-18 Behdad Esfahbod <behdad@gnome.org> Bug 473805 – Add API enumerating scripts for a language * docs/Makefile.am: * docs/pango-sections.txt: * docs/tmpl/scripts.sgml: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: * pango/pango-language.c (pango_language_get_scripts), (pango_language_includes_script), (pango_script_get_sample_language): * pango/pango-language.h: * pango/pango-script.c: * pango/pango.def: Add a minor new public API: pango_language_get_scripts() This is what pango_language_includes_script() has been using internally. Previously one had to call that function over all possible script values to determine which scripts a language uses. The new API makes that much easier. svn path=/trunk/; revision=2693
Diffstat (limited to 'pango/pango-script.c')
-rw-r--r--pango/pango-script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c
index d147f1f1..862c8475 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -228,6 +228,7 @@ get_pair_index (gunichar ch)
return -1;
}
+/* duplicated in pango-language.c */
#define REAL_SCRIPT(script) \
((script) > PANGO_SCRIPT_INHERITED && (script) != PANGO_SCRIPT_UNKNOWN)