summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Change Unicode copyright sign to ASCII. Reported by Werner LEMBERG.Behdad Esfahbod2006-02-081-1/+1
|
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-251-1/+0
| | | | | | | | | 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Make tests/examples do use generated pango.modules. (bug #328291)Behdad Esfahbod2006-01-238-31/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-23 Behdad Esfahbod <behdad@gnome.org> Make tests/examples do use generated pango.modules. (bug #328291) * examples/pangorc, tests/pangorc: Removed. Moved to modules/. * examples/pangox.aliases: Removed. Moved to pango/. * examples/Makefile.am, tests/Makefile.am: Remove pango.modules creation stuff, copy pangorc from $(srcdir)/../modules/pangorc insteadd. * examples/renderdemo.c: Add --pangorc option, default to ./pangorc. Setenv PANGO_RC_FILE to whatever pangorc file decided. * tests/*.c: Setenv PANGO_RC_FILE to ./pangorc. * pango/pangox.aliases: Added. * pango/Makefile.am: Install pangox.aliases. * modules/pangorc: Added. * modules/Makefile.am: Create pango.modules. Added pangorc. * modules/.cvsignore, examples/.cvsignore, tests/.cvsignore: Updated.
* Adjust the order of *_CFLAGS to the same order known to work. (Fixes bugBehdad Esfahbod2006-01-161-4/+4
| | | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> * docs/Makefile.am, examples/Makefile.am, pango/Makefile.am, tests/Makefile.am: Adjust the order of *_CFLAGS to the same order known to work. (Fixes bug #325588)
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-045-38/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.
* Set cairo font resolution.Behdad Esfahbod2005-08-291-6/+0
| | | | | | | | 2005-08-29 Behdad Esfahbod <pango@behdad.org> * examples/cairoview.c: Set cairo font resolution. * tests/testboundaries.c: Remove unused Hangul Jamo macros.
* Fix up places where there is missing or incomplete Copyright and LicenseOwen Taylor2005-07-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-21 Owen Taylor <otaylor@redhat.com> Fix up places where there is missing or incomplete Copyright and License information (Reported by William N. Ray) * pango/opentype/fterrcompat.h: Mark as FreeType/GPL licensed. * pango/opentype/FT-license.txt: Make this the dual-licensing description that covers the FreeType code (FreeType's LICENSE.TXT) rather than the FTL. * pango/opentype/FTL.TXT: Move the FTL (referenced from FT-license.txt) to here. * modules/basic/basic-common.h modules/hebrew/hebrew-shaper.h modules/thai/thai-charprop.c modules/thai/thai-shaper.h tools/gen-script-for-lang.c tests/testcolor.c: Add LGPL header and copyright information. * modules/indic/indic-ot.[ch] modules/indic/indic-ot-class-tables.c modules/thai/thai-ot.[ch]: Add LGPL header. * modules/thai/thai-shaper.c modules/thai/thai-charprop.h: Minor fixes to copyright information. * modules/arabic/arabic-ot.c: Add Freetype license boilerplate.
* Shut up CVSManish Singh2005-06-221-0/+1
|
* Fix up the operation of PangoLayoutIter, especially for Bidi (#89541,Owen Taylor2005-06-212-1/+251
| | | | | | | | | | | | | | | | | | | | | 2005-06-21 Owen Taylor <otaylor@redhat.com> Fix up the operation of PangoLayoutIter, especially for Bidi (#89541, based on a patch from Amit Aronovitch) * pango/pango-layout.c: Many changes to make iteration consistently in visual order. * pango/pango-layout.c (pango_layout_iter_next_char): Iterate through each character in the layout exactly once. (Including a hack to get two iterator positions for \r\n) * pango/pango-layout.c (pango_layout_iter_next_cluster): Only iterate through real clusters: that is, positions in the layout that have glyphs. * tests/testiter.c tests/Makefile.am: Add a (somewhat reworked) test from Amit for the operation of PangoLayoutIter.
* Include pangowin32.h first to avoind namespace collision. (#163584)Tor Lillqvist2005-03-011-4/+4
| | | | | | | 2005-03-01 Tor Lillqvist <tml@novell.com> * tests/cxx-test.C: Include pangowin32.h first to avoind namespace collision. (#163584)
* Don't generate all-unicode.txt when cross-compiling. (#135503, J. AliOwen Taylor2004-06-231-1/+1
| | | | | | | | Wed Jun 23 17:26:50 2004 Owen Taylor <otaylor@redhat.com> * tests/Makefile.am (pango.modules): Don't generate all-unicode.txt when cross-compiling. (#135503, J. Ali Harlow)
* Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, JeroenOwen Taylor2004-06-221-2/+3
| | | | | | | | | | | | | | | | | Tue Jun 22 14:10:41 2004 Owen Taylor <otaylor@redhat.com> * pango/break.c: Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, Jeroen Zwartepoorte) * pango/break.c (pango_default_break): Handle space followed by a combining character as called for by TR 14. * tests/testboundaries.c (check_line_char): Fix up for space+combining mark * pango/break.c (pango_default_break): Change fixme for G_UNICODE_BREAK_SURROGATE to g_assert_not_reached().
* === Released 1.3.0 ===PANGO_1_3_0Owen Taylor2003-10-241-0/+1
| | | | | | | | | | | | | | | | | | Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === * pango/module-defs-fc.c.win32 pango/module-defs-fc.c.win32: Add the -fc version, remove the -ft2 version. Not sure this file is actually needed any more. * pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-impl-utils.h, pango-script-lang-table.h. * docs/Makefile.am (dist-hook-local): Distribute generated manpage. * tests/Makefile.am (CLEANFILES): Add pango.modules
* Fix tests so that can be run before "make install" has been. (#119831)Noah Levitt2003-09-023-2/+27
| | | | | | | | | 2003-09-02 Noah Levitt <nlevitt@columbia.edu> * tests/.cvsignore: * tests/Makefile.am: * tests/pangorc: Fix tests so that can be run before "make install" has been. (#119831)
* Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-basedOwen Taylor2003-08-033-1/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 2 23:19:16 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-engine.[ch] modules/*/*-{fc,win32,x}.c pango/modules.c pango/break.c pango/pango-context.c pango/pango-layout.c pango/pango-modules.h pango/querymodules.c pango/shape.c: Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-based module-loading system closely based on the one used for GtkIMContext and GtkThemeEngine. * pango/pango-impl-utils.h: OK, I'm tired of typing in get_type() functions. * pango/pango-script.[ch] pango/pango-script-table.h tests/testscript.c tools/gen-script-table.pl: Add port of script-range code from ICU in preparation for future use. (#91542) * tools/gen-script-for-lang.c: Utility program to determine the script for each fontconfig .orth file. * docs/tmpl/{scripts.sgml,pango-engine-lang.sgml, pango-engine-shape.sgml} docs/pango-sections.txt docs/pango-docs.sgml: Redo to go along with the above changes. * configure.in: chmod +x tests/runtests.sh
* Basic docs for the new stuff.Owen Taylor2003-08-031-0/+1
| | | | | | * docs/pango-sections.txt docs/pango-docs.sgml docs/tmpl/pangofc-font{,map}.sgml: Basic docs for the new stuff.
* Generate runtest.sh so we can use ECHO_C, ECHO_N, SHELL (#114944)Owen Taylor2003-07-242-54/+5
| | | | | | | | Thu Jul 24 16:40:12 2003 Owen Taylor <otaylor@redhat.com> * configure.in tests/runtests.sh.in: Generate runtest.sh so we can use ECHO_C, ECHO_N, SHELL (#114944)
* Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, NoahOwen Taylor2003-04-291-1/+0
| | | | | | | | | | Tue Apr 29 18:02:31 2003 Owen Taylor <otaylor@redhat.com> * configure.in: Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, Noah Levitt) * {pango,tests,examples}/Makefile.am: Remove now unnecessary references to FONTCONFIG_CFLAGS/LIBS.
* make similar changes to the ones on glib head (call gtk-docize, etc).James Henstridge2003-03-111-33/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-11 James Henstridge <james@daa.com.au> * autogen.sh: make similar changes to the ones on glib head (call gtk-docize, etc). * configure.in: move some calculations into M4 macros, rather than calculating them when configure runs. Use AC_HELP_STRING where appropriate. Replace gtk-doc checks with a call to GTK_DOC_CHECK. Replace AC_OUTPUT_COMMANDS() call with a number of calls to AC_CONFIG_COMMANDS (once per created file). Get rid of the "chmod +x pango-config" bit, because there is no pango-config anymore. * Makefile.am: get rid of custom distcheck rule, and set DISTCHECK_CONFIGURE_FLAGS, which is equivalent. Use += to select which .pc files to install. * pango/Makefile.am: Add rules to rebuild module-defs* files, and remove them on clean. Reorder so that rules related to each individual library are next to each other. Use BUILT_SOURCES for built sources. * pango/opentype/Makefile.am: don't use STRIP_BEGIN/STRIP_END. * modules/*/Makefile.am: simplify module makefiles through use of +=, and regularise them a bit (fixed a few bugs in the process). * docs/Makefile.am: remove common rules, and instead include gtk-doc.make. * examples/Makefile.am: add pango.modules to CLEANFILES. * tests/Makefile.am: remove temporary files on clean.
* Add an --enable-debug configure argument defaulting to 'yes' for unstableOwen Taylor2003-02-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Feb 17 13:06:39 2003 Owen Taylor <otaylor@redhat.com> * configure.in **/Makefile.am: Add an --enable-debug configure argument defaulting to 'yes' for unstable releases and 'minimum' for stable releases. For minimum, -DG_DISABLE_CAST_CHECKS. * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c: Add caching of fontsets (#104495, initial patch and review by Soeren Sandmann) * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c pango/pangoft2-private.h pango/pangoxft-private.h: Remove cache of recently freed fonts; not necessary now that we cache fontsets. * pango/pangofc-fontmap.cI (pango_fc_pattern_set_free): Rename from pango_fc_font_set_free to reflect what it actually does. * pango/pangofc-fontmap.cI pango/pangoft-fontmap.c pango/pangoxft-fontmap.c: Combine clear-the-cache functions; we didn't need separate clear-the-font-cache and clear-the-pattern-cache functions.
* shut up cvsManish Singh2002-09-291-0/+1
|
* Make color parsing more robust and correct. (#93804)Matthias Clasen2002-09-224-3/+84
| | | | | | | | | | | * pango/pango-color.c (pango_color_parse): Make color parsing more robust and correct. (#93804) * tests/testcolor.c: Tests for pango_color_parse. * tests/Makefile.am: Build testcolor. * tests/runtests.sh: Run testcolor.
* Use unsigned char for bitfield array. (#83257, David L. Cooper II)Owen Taylor2002-06-121-1/+1
| | | | | | | | | | | Wed Jun 12 11:19:08 2002 Owen Taylor <otaylor@redhat.com> * modules/tamil/tamil-x.c: Use unsigned char for bitfield array. (#83257, David L. Cooper II) * tests/gen-all-unicode.c (main): Used char, not guchar for array of characters. (#83258, David L. Cooper II.)
* Add @FREETYPE_CFLAGS@Owen Taylor2002-06-061-1/+3
| | | | | | | | | Thu Jun 6 15:01:48 2002 Owen Taylor <otaylor@redhat.com> * pangoft2.pc.in (Cflags): Add @FREETYPE_CFLAGS@ * tests/Makefile.am (INCLUDES): Add XFT_CFLAGS. gtk/Makefile.am (INCLUDES): Add back FREETYPE_CFLAGS.
* more $(PANGO_API_VERSION) fixingjacob berkman2002-03-051-2/+2
| | | | | | | 2002-03-05 jacob berkman <jacob@ximian.com> * tests/Makefile.am (*boundaries_LDADD): more $(PANGO_API_VERSION) fixing
* Fix doc comment. Move include outside G_BEGIN_DECLS. Add const to avoidDarin Adler2001-12-171-1/+0
| | | | | | | * pango/pangoft2.c: Fix doc comment. * pango/pangoft2.h: Move include outside G_BEGIN_DECLS. * pango/querymodules.c: (main): Add const to avoid warning. * tests/dump-boundaries.c: (fail): Remove unused local.
* Resuming aborted commitSebastian Wilhelmi2001-12-131-1/+2
| | | | Resuming aborted commit
* pango/modules.c g_module_symbol takes a gpointer *, not just a gpointer.Manish Singh2001-12-051-0/+1
| | | | | | | | 2001-12-04 Manish Singh <yosh@gimp.org> * pango/modules.c * pango/querymodules.c: g_module_symbol takes a gpointer *, not just a gpointer.
* shut up CVSSven Neumann2001-12-031-0/+2
|
* Add a test program that includes all headers in a C++ program. (#52606)Owen Taylor2001-11-272-2/+70
| | | | | | | Mon Nov 26 19:24:21 2001 Owen Taylor <otaylor@redhat.com> * configure.in tests/Makefile.am tests/cxx-test.C: Add a test program that includes all headers in a C++ program. (#52606)
* Instead of including all-unicode.txt in the distribution, include a smallOwen Taylor2001-11-263-4920/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 26 18:17:00 2001 Owen Taylor <otaylor@redhat.com> * tests/Makefile.am tests/gen-all-unicode.c: Instead of including all-unicode.txt in the distribution, include a small program to generate it. * modules/hangul/hangul-x.c (render_syllable_with_ksc5601): When falling back to uncomposed Jamos, if we can't render a Jamo in any way, use the unknown glyph rather than nothing. * modules/hangul/hangul-x.c (hangul_engine_shape): Prevent overflows for invalid sequences which can be of arbitrary length. (#50086) * modules/arabic/arconv.c: New versions from Roozbeh Pournader. - Replacing the tables with automatically-generated ones - Using binary search instead of linear search for table lookup - Updating all the names with Unicode names (eg Nun -> Noon) - Fixed the Hamza mixup, using the Unicode rules - Updating missed cases (eg Superscript Alef was missing from arabic_isvowel) - Removing too-intelligent cases which made the code non-compliant (eg Alef with Hamza above+Kasra was changing to Alef with Hamza below) - Removing 'connecttoleft' from 'charstruct' (replacing it with a macro) - Indenting in the GNU style
* don't link against pangox at all.Sven Neumann2001-10-301-8/+3
| | | | | | | | | 2001-10-30 Sven Neumann <sven@gimp.org> * tests/Makefile.am: don't link against pangox at all. Please keep in mind that building on UNIX does not necessarily mean that X11 is available.
* New file, used to build distribution package for Windows.Tor Lillqvist2001-10-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | 2001-10-29 Tor Lillqvist <tml@iki.fi> * pango-zip.sh.in: New file, used to build distribution package for Windows. * Makefile.am (EXTRA_DIST): Add pango-zip.sh. * configure.in: Check for lib.exe, set MS_LIB_AVAILABLE. Generate pango-zip.sh. * README.win32: Mention the ways to build Pango on Windows. * modules/Makefile.am * examples/Makefile.am: Se SOSUFFIX to so on Unix, dll on Windows. * pango/Makefile.am: Add rules to create MSVC import library if MS_LIB_AVAILABLE. Add rules to install and uninstall mingw and MSVC import libraries. * tests/Makefile.am: Link with libpangox.la only on Unix.
* shut up CVSSven Neumann2001-10-041-0/+1
|
* new program to dump logical attrs to stdoutHavoc Pennington2001-10-033-3/+140
| | | | | | | | | 2001-10-03 Havoc Pennington <hp@redhat.com> * tests/dump-boundaries.c: new program to dump logical attrs to stdout * tests/testboundaries.c (check_invariants): oops, fix for pango_get_log_attrs() change
* Release 0.15PANGO_0_15Owen Taylor2001-04-174-7/+13
| | | | | | | | | | | | | | Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com> * Release 0.15 * tests/testboundaries.c: Look for files in $srcdir. * Makefile.am (SUBDIRS): Add tests, remove fonts * tests/Makefile.am (EXTRA_DIST): added missing stuff * fonts/: Remove. Nothing in here is needed any more.
* .cvsignore updatesOwen Taylor2001-01-251-0/+4
|
* s/is_break/is_line_break/g;Havoc Pennington2001-01-221-8/+8
| | | | | | | | | | | | | | | 2001-01-22 Havoc Pennington <hp@redhat.com> * tests/testboundaries.c (check_line_char): s/is_break/is_line_break/g; * pango/pango-layout.c, pango/pango-layout.h: Add PangoWrapMode for PangoLayout * pango/break.c (pango_default_break): implement char break log attr * pango/pango-break.h (struct _PangoLogAttr): rename is_break is_line_break, add is_char_break field
* Use a fallback shaper if no engine is found for a range, the fallbackHavoc Pennington2000-12-151-0/+4919
| | | | | | | | | | | | | | | | | 2000-12-14 Havoc Pennington <hp@redhat.com> * pango/pango-context.c (add_engines): Use a fallback shaper if no engine is found for a range, the fallback shaper shapes to glyphs of 0. This is just to let other code depend on the invariant that there's a shape engine for all characters. * tests/all-unicode.txt: Huge file containing all Unicode characters, for robustness testing. Not in EXTRA_DIST for now, not sure we should torture people that way... * pango/fonts.c (pango_font_find_shaper): remove the assert that we found a shaper, and instead let things fall back to the fallback shaper
* Add some jamo and viramas and unicode para separators and \r\n and so on,Havoc Pennington2000-12-121-0/+696
| | | | | | | 2000-12-11 Havoc Pennington <hp@redhat.com> * tests/boundaries.utf8: Add some jamo and viramas and unicode para separators and \r\n and so on, crashes the text widget nicely
* #include <string.h>Elliot Lee2000-12-111-0/+2
| | | | #include <string.h>
* delete lang engineHavoc Pennington2000-12-025-0/+549
2000-11-30 Havoc Pennington <hp@pobox.com> * modules/thai/thai.c: delete lang engine * modules/tamil/tamil.c: delete lang engine (tamil_engine_x_new): fix type tag for shape engine * modules/indic/myanmar.c: delete lang engine (pango_engine_x_new): fix type tag for shape engine * modules/indic/gurmukhi.c: delete lang engine (pango_indic_engine_x_new): fix type tag for shape engine * modules/indic/gujarati.c: delete lang engine (pango_indic_engine_x_new): fix type tag for shape engine * modules/indic/devanagari.c: delete lang engine (pango_indic_engine_x_new): fix type tag for shape engine * modules/indic/pango-indic-script.h (SCRIPT_ENGINE_DEFINITION): delete lang engine * modules/indic/bengali.c: delete the lang engine (pango_indic_engine_x_new): fix type tag for shape engine * modules/hangul/hangul.c: delete the lang engine (hangul_engine_x_new): fix type tag for shape engine * modules/basic/basic.c: delete the lang engine (basic_engine_x_new): fix type tag for shape engine * modules/basic/basic-win32.c: delete the lang engine (basic_engine_win32_new): this was a shape engine, use correct type tag * modules/basic/basic-ft2.c: delete the lang engine * modules/arabic/arabic.c: Delete the lang engine (arabic_engine_x_new): this is a shape engine, not a lang engine, fix type tag * pango/pango-layout.c (pango_layout_index_to_line_x): handle the fact that paragraph delimiters aren't in the layout lines (pango_layout_index_to_pos): update to handle paragraph delimiters * pango/break.c (pango_find_paragraph_boundary): New function to find paragraph boundaries * pango/pango-layout.c (get_items_log_attrs): don't separate calls to pango_break() when directional level changes * pango/pango-layout.h (struct _PangoLayoutLine): put start index of the line into the struct * pango/pango-layout.c (pango_layout_get_cursor_pos): Fixups to reflect the fact that paragraph separators are removed from the input text. * pango/pango-layout.c (can_break_at): don't special-case start of line and whitespace-following-alphabetic here, because pango_break() already handles that properly * tests/testboundaries.c, tests/Makefile.am, tests/runtests.sh: Add directory for test programs, and a script to run them all * configure.in: Create Makefile in tests * pango/break.c (pango_break): Try for a real implementation of the Unicode text boundary algorithms (pango_get_log_attrs): Allow length to be -1 * pango/pango-context.c (pango_itemize): use pango_item_new(), assert that items added to the list are sane. * pango/pango-layout.c (pango_layout_check_lines): Reimplement to honor the paragraph boundaries from pango_break() * pango/pango-layout.c (process_item): use pango_item_split() here * pango/pango-item.c (pango_item_split): New function to split an item into two items