summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Modules now declare a list of scripts that they cover instead of a list ofOwen Taylor2003-09-2340-898/+1925
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 23 18:03:57 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-engines.[ch] pango/pango-engines-private.h: Modules now declare a list of scripts that they cover instead of a list of code point ranges. Also, there is now a ->covers() virtual function that allows a module to decide live whether the font covers a particular codepoint; remove old get_coverage() method. * pango/pango-fontset.[ch]: Add a foreach() function to iterate over all the fonts in a fontset (with a true return stopping iteration). * pango/pango-context.c: Complete rewrite using script-run information to improve language tags. Switch to an approach where we handle one run at a time rather than computing information for each character individually then later breaking the result into runs. * pango/pango-fontset.[ch]: Switch over to using pango-impl-utils.h. * modules/basic/basic-x.c pango/pangox-fontmap.c: Adapt to the change from get_coverage => covers. * pango/pango-modules.h pango/modules.c: Switch PangoMap over to being based on script rather than being based on codepoint. Remove the no longer needed pango_map_get_entry(). * pango/modules.c: Handle new script-based modules. * pango/pango-fc-fontmap.c pango/pango-win32-fontmap.c pango/pang-fontmap.[ch]: Add a shape_engine_type field to PangoFontmapClass, pango_font_map_get_shape_engine_type(); this allows generic code to find a shaper for a particular fontmap. * pango/pango-script.[ch]: Add pango_script_get_sample_language(), pango_language_includes_script(); functions for determining the relationship between scripts and language. * tools/gen-script-for-lang.c: Modify to spit out a useful table. * pango/pango-script-lang-table.h: Version of table generated from current fontconfig data. * pango/pangox.c: Remove complicated code to compute coverages; no longer useful now that we just have the basic shaper as a legacy thing. * modules/*/*.c: Adapt to identifying shape engines by language range. * modules/thai/thai-fc.c modules/thai/thai-shaper.[ch]: Remove now unused "has_glyph" function and XTIS support. * modules/thai/thai-fc.c: Handle non-Thai characters as well, since the Thai module now gets spaces, punctuation, and so forth.
* Add property dependencies on mini-fribidi and opentype convenienceOwen Taylor2003-09-151-1/+2
| | | | | | | Mon Sep 15 17:07:58 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am: Add property dependencies on mini-fribidi and opentype convenience libraries.
* Fix gcc-3.3 versions of macros to have the right return value.Owen Taylor2003-09-156-18/+76
| | | | | | | Mon Sep 15 17:16:59 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/fterrcompat.h: Fix gcc-3.3 versions of macros to have the right return value.
* Fix a g_assert() with a side-effect. (Maybe #121742?)Owen Taylor2003-09-156-1/+28
| | | | | | | Tue Sep 9 12:21:02 2003 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c (pango_fc_font_description_from_pattern): Fix a g_assert() with a side-effect. (Maybe #121742?)
* Borrow argument parsing code from GDK.Owen Taylor2003-09-1511-237/+765
| | | | | | | | | | | | | Mon Sep 15 15:48:25 2003 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am examples/argcontext.c examples/argcontext.h: Borrow argument parsing code from GDK. * examples/pangoft2topgm.c: Use argcontext.[ch]. Add options --header to display options in a header in the image, --text to pass the text on the command line, --width to set a wrap width. Add autoconversion to non-PGM output formats via 'convert' for --output="foo.png" etc.
* Document these funcions as backends-only, and explain how to obtainMatthias Clasen2003-09-116-0/+44
| | | | | | | | 2003-09-12 Matthias Clasen <maclas@gmx.de> * pango/pango-context.c (pango_context_set_font_map) (pango_context_new): Document these funcions as backends-only, and explain how to obtain initialized contexts. (#121881, Martin Pool)
* Remove reference to now-gone make-table.sh (#121393, Josh Beam)Owen Taylor2003-09-096-1/+25
| | | | | | | Tue Sep 9 12:17:07 2003 Owen Taylor <otaylor@redhat.com> * tools/Makefile.am (EXTRA_DIST): Remove reference to now-gone make-table.sh (#121393, Josh Beam)
* Fix tests so that can be run before "make install" has been. (#119831)Noah Levitt2003-09-028-2/+62
| | | | | | | | | 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)
* pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3) Fix problems whereOwen Taylor2003-08-257-8/+41
| | | | | | | | | Mon Aug 25 10:17:21 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3) * pango/opentype/ftxgpos.c (Lookup_ChainContextPos3): Fix problems where the coverage wasn't being checked for the first input glyph. (#118639, Kailash C. Chowksey)
* add testfonts.c to EXTRA_DIST until bug #104151 is sorted out.Owen Taylor2003-08-256-1/+27
| | | | | | | Mon Aug 25 10:11:59 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am (EXTRA_DIST): add testfonts.c to EXTRA_DIST until bug #104151 is sorted out.
* Add a dependency on pango-querymodules... Really needs to depend on theOwen Taylor2003-08-251-2/+2
| | | | | | | | | Fri Aug 22 17:29:42 2003 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (pango.modules): Add a dependency on pango-querymodules... Really needs to depend on the modules too, but this at least will reduce the chances of it not getting rebuild when necessary.
* Remove a stray ; (#120528, Mehran Mehr)Owen Taylor2003-08-246-1/+26
| | | | | | | Sun Aug 24 12:35:25 2003 Owen Taylor <otaylor@redhat.com> * pango/querymodules.c: Remove a stray ; (#120528, Mehran Mehr)
* Add some macro definitions for gcc-3.3 that suppress the bogusOwen Taylor2003-08-2213-28/+210
| | | | | | | | | | | | | | | | | | | | | | Fri Aug 22 18:09:52 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/fterrcompat.h: Add some macro definitions for gcc-3.3 that suppress the bogus strict-aliasing warnings. * pango/pango-utils.c (read_config_file): Use g_hash_table_new_full() to simplify code and fix gcc-3.3 warnings. * pango/pangox-fontmap.c (pango_x_real_get_coverage_win) * pango/querymodules.c (query_module): Suppress gcc-3.3 warnings. * pango/modules.c (pango_find_map): Fix warning from missing declaration of pango_module_get_type(). * pango/pango-context.c/pango-engine.c: Fix name confusion for pango_get_fallback_shaper().
* Remove ABSTRACT from g_type_register_static() callSoeren Sandmann2003-08-206-2/+26
| | | | | | | Thu Aug 21 00:29:46 2003 Soeren Sandmann <sandmann@daimi.au.dk> * pango/pangofc-fontmap.c (pango_fc_face_get_type): Remove ABSTRACT from g_type_register_static() call
* Bump version to 1.3.0.Noah Levitt2003-08-206-2/+22
| | | | | | 2003-08-20 Noah Levitt <nlevitt@columbia.edu> * configure.in: Bump version to 1.3.0.
* get the cflags for gmodule-2.0 as well as gthread-2.0. (#119953, BenediktOwen Taylor2003-08-156-1/+26
| | | | | | | Fri Aug 15 16:34:14 2003 Owen Taylor <otaylor@redhat.com> * configure.in: get the cflags for gmodule-2.0 as well as gthread-2.0. (#119953, Benedikt Spranger)
* Add backspace_deletes_character to PangoLogAttr. (#114483)Noah Levitt2003-08-148-0/+72
| | | | | | | | | 2003-08-14 Noah Levitt <nlevitt@columbia.edu> * docs/tmpl/main.sgml: * pango/break.c: * pango/pango-break.h: Add backspace_deletes_character to PangoLogAttr. (#114483)
* Call g_type_init() (#119830, Noah Levitt)Owen Taylor2003-08-146-0/+28
| | | | | | | Thu Aug 14 10:41:21 2003 Owen Taylor <otaylor@redhat.com> * pango/modules.c (init_modules): Call g_type_init() (#119830, Noah Levitt)
* Reformat my entries to 80 columns.Matthias Clasen2003-08-115-10/+15
|
* Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG fromMatthias Clasen2003-08-106-6/+42
| | | | | * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from gtk-doc to enable configuring without xmlcatalog in PATH. (#119115)
* Move DPI substitution before FcDefaultSubstitute so it actually works.Owen Taylor2003-08-086-1/+31
| | | | | | | | Fri Aug 8 12:59:42 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c (pango_ft2_font_map_default_substitute): Move DPI substitution before FcDefaultSubstitute so it actually works.
* Replace --family/--scale options with a single --fontOwen Taylor2003-08-087-46/+81
| | | | | | | Fri Aug 8 11:45:15 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Replace --family/--scale options with a single --font
* Add option to run 'display' on the output as well as/instead of specifyingOwen Taylor2003-08-087-26/+162
| | | | | | | | Fri Aug 8 11:33:24 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Add option to run 'display' on the output as well as/instead of specifying output file name.
* Deprecate pango_ft2_get_context(), pango_ft2_font_map_for_display(),Owen Taylor2003-08-0810-60/+223
| | | | | | | | | | | | | | | | Fri Aug 8 10:33:31 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoft2.h: Deprecate pango_ft2_get_context(), pango_ft2_font_map_for_display(), pango_ft2_shutdown_display(); the explicit * pango/pangoft2-fontmap.c (pango_ft2_shutdown_display): Add docs about deprecations. * examples/Makefile.am (INCLUDES): Add -DPANGO_DISABLE_DEPRECATED * examples/pangoft2topgm.c: Fix deprecated usages; add --dpi and --markup options. Improve error handling.
* Get rid of a bunch of leftovers from the conversion from viewer; addOwen Taylor2003-08-087-322/+343
| | | | | | | | | Fri Aug 8 10:03:03 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Get rid of a bunch of leftovers from the conversion from viewer; add --waterfall to create a waterfall output at different sizes, and --margin to set the margin.
* New function. Uses the Uniscribe ScriptIsSimple() function to check ifTor Lillqvist2003-08-076-7/+115
| | | | | | | | | | | | | | | 2003-08-05 Tor Lillqvist <tml@iki.fi> * modules/basic/basic-win32.c (text_is_simple): New function. Uses the Uniscribe ScriptIsSimple() function to check if Uniscribe shaping is needed for a piece of text. (basic_engine_shape): Use it, to avoid calling Uniscribe to shape non-complex text. Produces dramatic speedup according to tests by Hans Breuer. (init_uniscribe): No need for the PANGO_WIN32_NO_UNISCRIBE environment variable any longer.
* Fix C99 variable declaration.Soeren Sandmann2003-08-036-1/+27
| | | | | | | Mon Aug 4 01:12:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * tools/gen-script-for-lang.c (get_script_name): Fix C99 variable declaration.
* Fix sign of metrics->descent.Owen Taylor2003-08-037-3/+38
| | | | | | | | | Sun Aug 3 18:37:46 2003 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (get_face_metrics): Fix sign of metrics->descent. * pango/pango-engine-private.h: fix include (Noah Levitt)
* Missed new file from last commit:Owen Taylor2003-08-031-0/+45
| | | | | | | | | | | | 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.
* Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-basedOwen Taylor2003-08-0348-540/+2886
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Really make pangoxft depend on pangoft2. (#119024)Noah Levitt2003-08-036-1/+26
| | | | | | | 2003-08-03 Noah Levitt <nlevitt@columbia.edu> * pango/Makefile.am (libpangoxft_1_0_la_DEPENDENCIES): Really make pangoxft depend on pangoft2. (#119024)
* Basic docs for the new stuff.Owen Taylor2003-08-035-2/+208
| | | | | | * docs/pango-sections.txt docs/pango-docs.sgml docs/tmpl/pangofc-font{,map}.sgml: Basic docs for the new stuff.
* Make pangoxft depend on pangoft2.Owen Taylor2003-08-0342-2370/+1347
| | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 2 14:33:28 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am (libpangoxft_1_0_la_LIBADD): Make pangoxft depend on pangoft2. * pango/pangofc-fontmap.[ch]: Make pangofc-fontmap.cI into a real base class. * pango/pangofc-font.[ch]: Move some of the pangoxft/ pangoft2 implementation here. * pango/pangoft2.c pango/pangoft2-fontmap.c pango/pangoft2-private.h pango/pangoxft-font.c pango/pangoxft2-fontmap.c pango/pangoxft-private.h: Adapt to the new scheme * modules/*/Makefile.am Modules/*/*/*-fc.c: Don't build separate FT2 and Xft shapers, just build one Fc shaper. * docs/pango-sections.txt docs/pango-docs.sgml docs/tmpl/pangofc-font{,map}.sgml: Basic docs for the new stuff. * configure.in: Up pango_module_version to 1.4.0.
* Remove some leftovers.Owen Taylor2003-08-026-2/+25
| | | | | | | Sat Aug 2 14:18:20 2003 Owen Taylor <otaylor@redhat.com> * modules/hangul/Makefile.am (EXTRA_DIST): Remove some leftovers.
* Remove.Owen Taylor2003-08-0217-958/+78
| | | | | | | | | | | | Sat Aug 2 14:10:31 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am pango/pango-intset.[ch] pango/pango-indic.[ch]: Remove. * pango/pangox.c (pango_x_apply_ligatures): Make a noop, remove associated code. * pango/pangox-fontmap.c pango/pangox.[ch]: Deprecate everything.
* Remove old X font shapers.Owen Taylor2003-08-0235-7502/+65
| | | | | | | | | | | | | | | Sat Aug 2 13:17:45 2003 Owen Taylor <otaylor@redhat.com> * configure.in modules/arabic/{Makefile.am arconv.[ch],langboxfont.[ch], mulefont.[ch],naqshfont.[ch],arabic-x.c} modules/hangul/{Makefile.am,hangul-x.c,tables-johabfont.i, tables-ksc5601.i} modules/hebrew/{Makefile.am,hebrew-x.c} modules/indic/{Makefile.am,*-x.c} modules/tamil modules/thai/{Makefile.am,thai-x.c}: Remove old X font shapers.
* Add API to kern a complete glyph string. Remove API to kern individualSoeren Sandmann2003-08-0210-107/+224
| | | | | | | | | | | | | | | | | | | | | | Sat Aug 2 16:40:19 2003 Soeren Sandmann <sandmann@daimi.au.dk> Add API to kern a complete glyph string. Remove API to kern individual glyph pairs. * modules/basic/basic-fc.c (basic_engine_shape): use pango_fc_font_kern_glyphs() instead of pango_fc_font_get_kerning(). * pango/pangoft2.c (pango_ft2_font_real_kern_glyphs): add this function, remove pango_ft2_font_real_get_kerning(). * pango/pangoxft-font.c (pango_xft_font_real_kern_glyphs): add this function, remove pango_xft_font_real_get_kerning(). * pango/pangofc-font.c (pango_fc_font_kern_glyphs): new function. Remove pango_fc_font_get_kerning(). * pango/pangofc-font.h: remove pango_fc_font_get_kerning(), add pango_fc_font_kern_glyphs().
* Rewrite handling of IGNORE_SPECIAL_MARKS to be properly "ignore marks ofOwen Taylor2003-07-296-9/+63
| | | | | | | | | Tue Jul 29 09:58:13 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgdef.c (Check_Property): Rewrite handling of IGNORE_SPECIAL_MARKS to be properly "ignore marks of attachment type different than specified. (#118456, Kailash C. Chowksey)
* Revert back out the FreeType patch preventing ligatures of not-originallyOwen Taylor2003-07-286-33/+48
| | | | | | | | | | Sat Jul 26 09:41:22 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_LigatureSubst): Revert back out the FreeType patch preventing ligatures of not-originally adjacent glyphs; it doesn't work for all scripts. (#118472, Kailash C. Chowksey)
* Check for lookahead glyphs in the right place. (Patch from #116860)Owen Taylor2003-07-277-6/+51
| | | | | | | | | | | Sat Jul 26 22:30:59 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst{1,2,3}): Check for lookahead glyphs in the right place. (Patch from #116860) * pango/opentype/ftxgpos.c (Lookup_ChainContextPos{1,2,3}): Same fix here.
* Fix return value to only contain TTO_Err_Not_Covered if *no* lookupsOwen Taylor2003-07-276-45/+110
| | | | | | | | | Sat Jul 26 22:12:46 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Do_String_Lookup, TT_GSUB_Apply_String): Fix return value to only contain TTO_Err_Not_Covered if *no* lookups matched. Fix memory leaks on error in Apply_String().
* Fix problem where NULL mpreFixups wasn't getting returned properly.Owen Taylor2003-07-276-1/+31
| | | | | | | | Sat Jul 26 22:09:44 2003 Owen Taylor <otaylor@redhat.com> * modules/indic/indic-ot.c (indic_ot_reorder): Fix problem where NULL mpreFixups wasn't getting returned properly.
* Fix confusion between boolean and FT_Error return. (GSUB equivalent of fixOwen Taylor2003-07-276-2/+33
| | | | | | | | Sat Jul 26 21:06:26 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Load_EmptyOrClassDefinition): Fix confusion between boolean and FT_Error return. (GSUB equivalent of fix for #108358)
* Move allocation afer initial checks, fixing memory leak.Owen Taylor2003-07-267-10/+60
| | | | | | | | | | | | Sat Jul 26 10:52:20 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c (Lookup_ContextPos2): * pango/opentype/ftxgsub.c (Lookup_ContextSubst2): Move allocation afer initial checks, fixing memory leak. * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst2): Fix some more error return memory leaks that weren't fixed in the Qt changes.
* Fix various memory leaks from error returns that should have been jumps toOwen Taylor2003-07-267-6/+36
| | | | | | | | Sat Jul 26 10:43:20 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c: Fix various memory leaks from error returns that should have been jumps to cleanup blocks. (From Qt, Lars Knoll)
* Fix additional places where TTO_Err_Not_Covered wasn't considered aOwen Taylor2003-07-266-4/+34
| | | | | | | | Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where TTO_Err_Not_Covered wasn't considered a successful return from Get_Class. (From Qt, Lars Knoll)
* If applying a ligature lookup makes adjacent two glyphs that were notOwen Taylor2003-07-266-8/+73
| | | | | | | | | | Sat Jul 26 09:41:22 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_LigatureSubst): If applying a ligature lookup makes adjacent two glyphs that were not originally adjacent, avoid making subsequent ligatures between those glyphs. (From FreeType, Werner Lemberg, 2001-08-22, 2001-08-23)
* Fix some FreeType1 variable declarations that snuck in from the lastOwen Taylor2003-07-267-4/+39
| | | | | | | | | Sat Jul 26 09:16:57 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c pango/opentype/ftxopen.c: Fix some FreeType1 variable declarations that snuck in from the last commits (Christophe Fergeau, 118363)
* OpenType-1.4 update: backtrack information is stored with the item closestOwen Taylor2003-07-267-15/+70
| | | | | | | | | Fri Jul 25 23:38:07 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c pango/opentype/ftxgsub.c: OpenType-1.4 update: backtrack information is stored with the item closest to the input first (From FreeType, Werner Lemberg, 2002-09-26)
* Update of GPOS and GSUB support to OpenType 1.3 (From FreeType, WernerOwen Taylor2003-07-267-3/+100
| | | | | | | | | | | | | | | | Fri Jul 25 23:07:06 2003 Owen Taylor <otaylor@redhat.com> Update of GPOS and GSUB support to OpenType 1.3 (From FreeType, Werner Lemberg, 2001-08-08) * pango/opentype/ftxopen.h: Add RIGHT_TO_LEFT LookupFlag * pango/opentype/ftxgpos.c (GPOS_Instance): Add 'first' member to mark the beginning of a chain of cursive connections. * pango/opentype/ftxgpos.c (Do_String_Lookup): If the RIGHT_TO_FLAG flag is set, shift cursive chain up so last glyph is on the baseline.