summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-10-03 19:04:34 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-10-03 19:04:34 +0000
commit9b359e9b7c20a134363f2383902519d73d130e68 (patch)
treebdf8e74a67b9d5783bf2b263662d518d557a7f21 /examples
parent6ed8c4f1d4f27507919db74990fa9bdd3681ad7e (diff)
downloadpango-9b359e9b7c20a134363f2383902519d73d130e68.tar.gz
pango/pango.def Add new entry points.
2000-10-03 Tor Lillqvist <tml@iki.fi> * pango/pango.def * pango/pangoft2.def: Add new entry points. * pango/pango-coverage.c (pango_coverage_set): Remove unnecessary loop calling memset() with same parameters 64 times ;-) * pango/makefile.mingw.in (PANGO_OBJS): Add pango-tabs.o. Some small changes that have been laying around on my disk. The Win32 and FT2 backends aren't "production quality" yet. For speedup, need to cache at least the coverage info. * pango/pangoft2.c (pango_ft2_get_coverage): New function. * modules/basic/basic-win32.c: Use "BasicScriptEngineLangWin32" to be unique. * modules/basic/basic-ft2.c: Add comments explaining what Unicode ranges the table entries covers. Use "BasicScriptEngineLangFT2" to be unique. (basic_engine_get_coverage): Test calling pango_ft2_get_coverage(). (basic_engine_ft2_new): Set corect engine type. Not that this apparently is used for anything, the X11 basic shaper module also sets its type as TYPE_LANG. * examples/viewer-ft2.c (split_paragraphs): Just end the string upon encountering an invalid character. Don't return.
Diffstat (limited to 'examples')
-rw-r--r--examples/viewer-ft2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/viewer-ft2.c b/examples/viewer-ft2.c
index e7e24bd1..ba820f3f 100644
--- a/examples/viewer-ft2.c
+++ b/examples/viewer-ft2.c
@@ -118,8 +118,7 @@ split_paragraphs (char *text)
if (wc == (gunichar)-1)
{
fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ());
- g_list_foreach (result, (GFunc)g_free, NULL);
- return NULL;
+ wc = 0;
}
if (!*p || !wc || wc == '\n')
{