From 9b359e9b7c20a134363f2383902519d73d130e68 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 3 Oct 2000 19:04:34 +0000 Subject: pango/pango.def Add new entry points. 2000-10-03 Tor Lillqvist * 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. --- examples/viewer-ft2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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') { -- cgit v1.2.1