summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Modules now declare a list of scripts that they cover instead of a list ofOwen Taylor2003-09-2317-567/+1355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-18/+26
| | | | | | | 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-151-1/+3
| | | | | | | 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?)
* Document these funcions as backends-only, and explain how to obtainMatthias Clasen2003-09-111-0/+14
| | | | | | | | 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)
* pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3) Fix problems whereOwen Taylor2003-08-252-8/+6
| | | | | | | | | 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-251-1/+2
| | | | | | | 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.
* Remove a stray ; (#120528, Mehran Mehr)Owen Taylor2003-08-241-1/+1
| | | | | | | 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-228-28/+75
| | | | | | | | | | | | | | | | | | | | | | 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-201-2/+1
| | | | | | | 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
* Add backspace_deletes_character to PangoLogAttr. (#114483)Noah Levitt2003-08-142-0/+25
| | | | | | | | | 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-141-0/+3
| | | | | | | Thu Aug 14 10:41:21 2003 Owen Taylor <otaylor@redhat.com> * pango/modules.c (init_modules): Call g_type_init() (#119830, Noah Levitt)
* Move DPI substitution before FcDefaultSubstitute so it actually works.Owen Taylor2003-08-081-1/+1
| | | | | | | | 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.
* Deprecate pango_ft2_get_context(), pango_ft2_font_map_for_display(),Owen Taylor2003-08-082-6/+10
| | | | | | | | | | | | | | | | 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.
* Fix sign of metrics->descent.Owen Taylor2003-08-032-3/+3
| | | | | | | | | 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-0316-193/+1605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-031-1/+1
| | | | | | | 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-031-2/+1
| | | | | | * 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-0316-1934/+1050
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.Owen Taylor2003-08-028-942/+22
| | | | | | | | | | | | 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.
* Add API to kern a complete glyph string. Remove API to kern individualSoeren Sandmann2003-08-024-100/+121
| | | | | | | | | | | | | | | | | | | | | | 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-291-9/+28
| | | | | | | | | 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-281-28/+3
| | | | | | | | | | 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-272-6/+6
| | | | | | | | | | | 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-271-45/+75
| | | | | | | | | 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 confusion between boolean and FT_Error return. (GSUB equivalent of fixOwen Taylor2003-07-271-2/+3
| | | | | | | | 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-262-10/+10
| | | | | | | | | | | | 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-262-6/+6
| | | | | | | | 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-261-4/+4
| | | | | | | | 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-261-3/+28
| | | | | | | | | | 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-262-4/+4
| | | | | | | | | 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-262-15/+35
| | | | | | | | | 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-262-3/+30
| | | | | | | | | | | | | | | | 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.
* Add GPOS_LOOKUP_EXTENSION, GSUB_LOOKUP_EXTENSION, which allow lookupOwen Taylor2003-07-263-8/+29
| | | | | | | | | | Fri Jul 25 22:59:13 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftx{gpos,gsub}.h pango/opentype/ftxgdef.c: Add GPOS_LOOKUP_EXTENSION, GSUB_LOOKUP_EXTENSION, which allow lookup information to be stored at 32-bit offets via a double indirection. (From FreeType, Werner Lemberg, 2001-08-08)
* Fix a couple of places where TTO_Err_Not_Covered wasn't considered aOwen Taylor2003-07-261-2/+2
| | | | | | | | | | | Fri Jul 25 22:25:48 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_ContextSubst2, Lookup_ChainContextSubst2): Fix a couple of places where TTO_Err_Not_Covered wasn't considered a successful return from Get_Class -- it means use class index 0. (From FreeType, Werner Lemberg, 2001-08-06)
* Improvements to OpenType-dumping code, based on changes in Qt by LarsOwen Taylor2003-07-262-13/+241
| | | | | | | | | | | | | | Fri Jul 25 20:12:00 2003 Owen Taylor <otaylor@redhat.com> Improvements to OpenType-dumping code, based on changes in Qt by Lars Knoll. * pango/opentype/ottest.c: Tweak the debugging output, suppress some warnings. * pango/opentype/disasm.c: Add support for GSUB Context/Chain GPOS MarkBase lookups, improve output in various ways.
* removed redundant call to pango_layout_line_get_extents() (#116822).Sven Neumann2003-07-241-56/+74
| | | | | | | | | | 2003-07-25 Sven Neumann <sven@gimp.org> * pango/pangoft2.c (pango_ft2_render_layout_line): removed redundant call to pango_layout_line_get_extents() (#116822). * pango/pangoft2.c (pango_ft2_render): fixed source bitmap offset for the monochrome case; some code cleanup (#116837).
* Fix trivial bug in last commitOwen Taylor2003-07-241-1/+1
|
* Handle NULL item->analysis.font. (#14576, Morten Welinder)Owen Taylor2003-07-241-2/+4
| | | | | | | Thu Jul 24 17:06:38 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-item.c (pango_item_copy/free): Handle NULL item->analysis.font. (#14576, Morten Welinder)
* Fix uses of g_assert() around statements with side effects. (#115498,Owen Taylor2003-07-241-5/+9
| | | | | | | | Thu Jul 24 17:04:21 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_shape): Fix uses of g_assert() around statements with side effects. (#115498, patch from David Cuthbert)
* Remove vestiges of support for external fribidi library.Owen Taylor2003-07-241-10/+2
| | | | | | | Thu Jul 24 15:37:16 2003 Owen Taylor <otaylor@redhat.com> * configure.in pango/Makefile.am pango.pc.in: Remove vestiges of support for external fribidi library.
* Fix up right-to-left case. (Based on patch from Damon Chaplin, #117325)Owen Taylor2003-07-241-4/+7
| | | | | | | | Thu Jul 24 15:02:56 2003 Owen Taylor <otaylor@redhat.com> * pango/glyphstring.c (pango_glyph_string_get_logical_widths): Fix up right-to-left case. (Based on patch from Damon Chaplin, #117325)
* Increment past the ';' for a list with multiple elements. (#117180, JohnOwen Taylor2003-07-241-1/+2
| | | | | | | | Thu Jul 24 14:35:48 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c (pango_language_matches): Increment past the ';' for a list with multiple elements. (#117180, John Finlay)
* updated to generate libtool compatible dll names, define the rightHans Breuer2003-07-202-12/+21
| | | | | | | | | | | | | 2003-07-20 Hans Breuer <hans@breuer.org> * pango/makefile.msc : updated to generate libtool compatible dll names, define the right PANGO_MODULE_PREFIX, pangoft2 still not build with msvc * module/basic-win32.c : some #ifdef's for missing LANG_* constants to make it compile with msvc50 * pango/pango.def : updated externals
* Doc markup and typo fixes.Matthias Clasen2003-06-253-49/+49
| | | | | | | | | | 2003-06-25 Matthias Clasen <maclas@gmx.de> * pango/pango-layout.c: * pango/pango-tabs.c: * pango/pango-attributes.c: * docs/tmpl/layout.sgml: * docs/tmpl/text-attributes.sgml: Doc markup and typo fixes.
* Fix bug in determining when we cross line boundaries. (#103421, MatthiasOwen Taylor2003-06-051-29/+34
| | | | | | | | Thu Jun 5 14:53:40 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_move_cursor_visually): Fix bug in determining when we cross line boundaries. (#103421, Matthias Clasen)
* Improve handling of empty ink rectangles; rework for simplicity. (#103662)Owen Taylor2003-06-041-49/+55
| | | | | | | | Wed Jun 4 14:32:47 2003 Owen Taylor <otaylor@redhat.com> * pango/glyphstring.c (pango_glyph_string_extents_range): Improve handling of empty ink rectangles; rework for simplicity. (#103662)
* Make sure the face is unlocked before returning from ↵Keith Packard2003-06-021-2/+8
| | | | pango_xft_font_real_get_kerning
* Don't put statements with side-effects inside g_assert()! (#114137, JeffOwen Taylor2003-06-021-3/+3
| | | | | | | | Mon Jun 2 12:10:11 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c (pango_glyph_item_apply_attrs): Don't put statements with side-effects inside g_assert()! (#114137, Jeff Waugh)