platform/upstream/pango.git
17 years ago=== Released 1.15.4 === PANGO_1_15_4
Behdad Esfahbod [Thu, 18 Jan 2007 04:58:36 +0000 (04:58 +0000)]
=== Released 1.15.4 ===

2007-01-17  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.15.4 ===

        * configure.in: Version 1.15.4

        * NEWS: Updated.

svn path=/trunk/; revision=2172

17 years agoBug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY
Behdad Esfahbod [Wed, 17 Jan 2007 22:51:31 +0000 (22:51 +0000)]
Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY

2007-01-17  Behdad Esfahbod  <behdad@gnome.org>

        Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY

        * modules/basic/basic-atsui.c (set_glyph): Handle
        kATSDeletedGlyphcode.

svn path=/trunk/; revision=2170

17 years agoFix typo when rounding to points.
Behdad Esfahbod [Tue, 16 Jan 2007 21:38:26 +0000 (21:38 +0000)]
Fix typo when rounding to points.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/viewer-render.c (make_layout): Fix typo when rounding
        to points.

svn path=/trunk/; revision=2169

17 years agoBug 397337 – Use is_ellipsized and is_wrapped to optimize property
Behdad Esfahbod [Tue, 16 Jan 2007 20:44:05 +0000 (20:44 +0000)]
Bug 397337 – Use is_ellipsized and is_wrapped to optimize property

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 397337 – Use is_ellipsized and is_wrapped to optimize property
        changes

        * pango/pango-layout.c (pango_layout_set_wrap),
        (pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped,
        only clear lines if wrap/ellipsize change has any effect on the lines.

svn path=/trunk/; revision=2168

17 years ago*.c, *.h: Removed spaces followed b tabs.
Behdad Esfahbod [Tue, 16 Jan 2007 20:26:43 +0000 (20:26 +0000)]
*.c, *.h: Removed spaces followed b tabs.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        *.c, *.h: Removed spaces followed b tabs.

svn path=/trunk/; revision=2166

17 years ago*.c, *.h: Replace preceding sequences of 8 spaces with tabs.
Behdad Esfahbod [Tue, 16 Jan 2007 20:20:35 +0000 (20:20 +0000)]
*.c, *.h: Replace preceding sequences of 8 spaces with tabs.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        *.c, *.h: Replace preceding sequences of 8 spaces with tabs.

svn path=/trunk/; revision=2165

17 years agoReplace C++-style // comments with C-style /* */ ones.
Behdad Esfahbod [Tue, 16 Jan 2007 20:14:20 +0000 (20:14 +0000)]
Replace C++-style // comments with C-style /* */ ones.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * examples/pangowin32tobmp.c (SaveBitmap):
        * modules/tibetan/tibetan-fc.c:
        Replace C++-style // comments with C-style /* */ ones.

svn path=/trunk/; revision=2164

17 years ago*.c, *.h: Drop trailing whitespace.
Behdad Esfahbod [Tue, 16 Jan 2007 20:07:35 +0000 (20:07 +0000)]
*.c, *.h: Drop trailing whitespace.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        *.c, *.h: Drop trailing whitespace.

svn path=/trunk/; revision=2163

17 years agoBug 328585 – Need to know if a layout has unknown glyphs Patch from
Behdad Esfahbod [Tue, 16 Jan 2007 20:03:40 +0000 (20:03 +0000)]
Bug 328585 – Need to know if a layout has unknown glyphs Patch from

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 328585 – Need to know if a layout has unknown glyphs
        Patch from LingNing Zhang

        * pango/pango-layout-private.h:
        * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
        (pango_layout_get_unknown_glyphs_count),
        (pango_layout_clear_lines):
        * pango/pango-layout.h:
        New public function:

                pango_layout_get_unknown_glyphs_count()

        * pango/pango.def:
        * docs/tmpl/layout.sgml:
        * docs/pango-sections.txt:
        Update.

svn path=/trunk/; revision=2162

17 years agoAlign spaces.
Behdad Esfahbod [Tue, 16 Jan 2007 19:46:07 +0000 (19:46 +0000)]
Align spaces.

svn path=/trunk/; revision=2161

17 years agoPart of Bug 326693 – PangoLayouts should be query-able about their
Behdad Esfahbod [Tue, 16 Jan 2007 19:42:59 +0000 (19:42 +0000)]
Part of Bug 326693 – PangoLayouts should be query-able about their

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        Part of Bug 326693 – PangoLayouts should be query-able about their
        effective properties (width / wrapped / ellipsized / etc)

        * pango/pango-layout-private.h:
        * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
        (pango_layout_is_wrapped), (pango_layout_clear_lines),
        (process_line):
        * pango/pango-layout.h:
        New public function:

                pango_layout_is_wrapped()

        * pango/pango.def:
        * docs/tmpl/layout.sgml:
        * docs/pango-sections.txt:
        Update.

svn path=/trunk/; revision=2160

17 years agoBug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return a
Behdad Esfahbod [Tue, 16 Jan 2007 18:09:35 +0000 (18:09 +0000)]
Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return a

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return
        a value

        * pango/pango-layout.c (pango_layout_is_ellipsized): Use
        g_return_val_if_fail() instead of g_return_if_fail().

svn path=/trunk/; revision=2159

17 years agoFix width calculation. Was causing ellipsization to stop at a zero-width
Behdad Esfahbod [Tue, 16 Jan 2007 13:16:32 +0000 (13:16 +0000)]
Fix width calculation. Was causing ellipsization to stop at a zero-width

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango/ellipsize.c (get_cluster_width): Fix width calculation.
        Was causing ellipsization to stop at a zero-width glyph that was
        part of a bigger cluster.

        * pango/ellipsize.c (remove_one_span): Skip over zero-width clusters,
        otherwise ellipsization will stop at a zero-width cluster.

        * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
        (_pango_glyph_item_iter_prev_cluster): Fix yet another bug with
        in prev_cluster that was making it not work for any interesting
        cluster.

svn path=/trunk/; revision=2158

17 years agoImprove text-on-path example.
Behdad Esfahbod [Tue, 16 Jan 2007 12:05:09 +0000 (12:05 +0000)]
Improve text-on-path example.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * examples/cairotwisted.c (point_on_path), (draw_text),
        (draw_twisted), (draw_dream), (draw_wow), (main):
        Improve text-on-path example.

svn path=/trunk/; revision=2156

17 years agoGenerate .bz2 tarball instead of .gz.
Behdad Esfahbod [Tue, 16 Jan 2007 11:13:16 +0000 (11:13 +0000)]
Generate .bz2 tarball instead of .gz.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Generate .bz2 tarball instead of .gz.

svn path=/trunk/; revision=2154

17 years agoRename renderdemo.[ch] to viewer-render.[ch].
Behdad Esfahbod [Tue, 16 Jan 2007 11:12:39 +0000 (11:12 +0000)]
Rename renderdemo.[ch] to viewer-render.[ch].

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/Makefile.am:
        * pango-view/renderdemo.c:
        * pango-view/renderdemo.h:
        * pango-view/viewer-main.c:
        * pango-view/viewer-pangocairo.c:
        * pango-view/viewer-pangoft2.c:
        * pango-view/viewer-pangox.c:
        * pango-view/viewer-pangoxft.c:
        * pango-view/viewer-render.c:
        * pango-view/viewer-render.h:
        * pango-view/viewer-x.c:
        Rename renderdemo.[ch] to viewer-render.[ch].

svn path=/trunk/; revision=2153

17 years agoMove into pango-view/
Behdad Esfahbod [Tue, 16 Jan 2007 11:06:33 +0000 (11:06 +0000)]
Move into pango-view/

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * examples/pango-view.c:
        * examples/pangocairo-view.c:
        * examples/pangoft2-view.c:
        * examples/pangox-view.c:
        * examples/pangoxft-view.c:
        * examples/renderdemo.c:
        * examples/renderdemo.h:
        * examples/test-arabic.txt:
        * examples/test-chinese.txt:
        * examples/test-devanagari.txt:
        * examples/test-gurmukhi.txt:
        * examples/test-hebrew.txt:
        * examples/test-ipa.txt:
        * examples/test-lao.txt:
        * examples/test-latin.txt:
        * examples/test-mixed.txt:
        * examples/test-syriac.txt:
        * examples/test-tamil.txt:
        * examples/test-thai.txt:
        * examples/test-tibetan.txt:
        * examples/viewer-cairo.c:
        * examples/viewer-cairo.h:
        * examples/viewer-main.c:
        * examples/viewer-pangocairo.c:
        * examples/viewer-pangoft2.c:
        * examples/viewer-pangox.c:
        * examples/viewer-pangoxft.c:
        * examples/viewer-win32.c:
        * examples/viewer-x.c:
        * examples/viewer-x.h:
        * examples/viewer.h:
        Move into pango-view/

        * Makefile.am:
        * configure.in:
        * examples/Makefile.am:
        * pango-view/Makefile.am:
        Update.

svn path=/trunk/; revision=2152

17 years agoOops. Replace GType* with GType.
Behdad Esfahbod [Tue, 16 Jan 2007 10:39:02 +0000 (10:39 +0000)]
Oops. Replace GType* with GType.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType.

svn path=/trunk/; revision=2151

17 years agoBug 363510 – Ability to query whether a PangoLayout is effectively
Behdad Esfahbod [Tue, 16 Jan 2007 10:36:42 +0000 (10:36 +0000)]
Bug 363510 – Ability to query whether a PangoLayout is effectively

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 363510 – Ability to query whether a PangoLayout is effectively
        ellipsized (as opposed to the set_ellpisize()/get_ellipsize() methods
        which only set a request, or return the set request respectively)
        Patch from Milosz Derezynski

        * pango/pango-layout.h:
        * pango/ellipsize.c (_pango_layout_line_ellipsize):
        * pango/pango-layout-private.h:
        * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
        (pango_layout_is_ellipsized), (pango_layout_clear_lines),
        (pango_layout_line_postprocess):
        New public function:

                pango_layout_is_ellipsized()

        * pango/pango.def:
        * docs/tmpl/layout.sgml:
        * docs/pango-sections.txt:
        Update.

svn path=/trunk/; revision=2150

17 years agoFix background rendering being off in presence of rise attributes.
Behdad Esfahbod [Tue, 16 Jan 2007 10:14:32 +0000 (10:14 +0000)]
Fix background rendering being off in presence of rise attributes.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix
        background rendering being off in presence of rise attributes.

svn path=/trunk/; revision=2148

17 years agoUpdate centered_baseline in presence of gravity attributes.
Behdad Esfahbod [Tue, 16 Jan 2007 10:11:24 +0000 (10:11 +0000)]
Update centered_baseline in presence of gravity attributes.

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-context.c (itemize_state_init),
        (itemize_state_update_for_new_run): Update  centered_baseline in
        presence of gravity attributes.

svn path=/trunk/; revision=2147

17 years agoUse pango_layout(_iter)?_get_line_readonly() instead of
Behdad Esfahbod [Tue, 16 Jan 2007 09:57:30 +0000 (09:57 +0000)]
Use pango_layout(_iter)?_get_line_readonly() instead of

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * examples/cairotwisted.c (draw_text):
        * pango/pangocairo-win32font.c (max_glyph_width):
        * pango/pangofc-font.c (max_glyph_width):
        * pango/pangowin32.c (max_glyph_width),
        (pango_win32_render_layout):
        * pango/pangox.c (pango_x_render_layout):
        Use pango_layout(_iter)?_get_line_readonly() instead of
        pango_layout(_iter)?_get_line().

svn path=/trunk/; revision=2146

17 years agoNew attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New
Behdad Esfahbod [Tue, 16 Jan 2007 09:52:02 +0000 (09:52 +0000)]
New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New

2007-01-16  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-attributes.h:
        * pango/pango-attributes.c:
        New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT.
        New public functions:

                pango_attr_gravity_new()
                pango_attr_gravity_hint_new()

        * pango/pango-context.c (update_attr_iterator),
        (itemize_state_init), (itemize_state_add_character),
        (get_shaper_and_font), (itemize_state_update_for_new_run):
        Handle gravity and gravity_hint attributes.

        * pango/pango-utils.h:
        * pango/pango-utils.c:
        New public function:

                pango_parse_enum()

        * pango/pango-markup.c (span_parse_func): Parse gravity and
        gravity_hint attributes for <span>.  Optimize a bit.

        * pango/pango-markup.c (parse_absolute_size), (attr_strcmp),
        (span_parse_int), (span_parse_boolean), (span_parse_color),
        (span_parse_enum), (span_parse_func): Use pango_scan_int(),
        pango_color_parse(), and pango_parse_enum().  Also, ignore '-' and
        '_' differences when matching attribute names for <span>.

        * examples/renderdemo.c (parse_enum), (parse_ellipsis),
        (parse_gravity), (parse_gravity_hint), (parse_hinting),
        (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum().

        * modules/basic/basic-fc.c (basic_engine_shape):
        * pango/pangofc-fontmap.c (pango_fc_make_pattern):
        Use PANGO_GRAVITY_IS_VERTICAL().

        * pango/pango.def:
        * docs/pango-sections.txt:
        * docs/tmpl/text-attributes.sgml:
        * docs/tmpl/utils.sgml:
        Update.

svn path=/trunk/; revision=2145

17 years agoBug 323173 – Add layout of mixed direction text for vertical layout
Behdad Esfahbod [Tue, 16 Jan 2007 00:23:59 +0000 (00:23 +0000)]
Bug 323173 – Add layout of mixed direction text for vertical layout

2007-01-15  Behdad Esfahbod  <behdad@gnome.org>

        Bug 323173 – Add layout of mixed direction text for vertical layout

        * pango/pango-gravity.h:
        * pango/pango-gravity.c:
        Moved gravity stuff here.  New public API:

                PangoGravityHint
                pango_gravity_get_for_matrix()
                pango_gravity_get_for_script()

        * pango/pango-context.h:
        * pango/pango-context.c (pango_context_init),
        (update_resolved_gravity), (itemize_state_update_for_new_run):
        Support gravity hint.  New public API:

                pango_context_set_gravity_hint()
                pango_context_get_gravity_hint()

        * pango/pango-utils.c:
        * pango/pango-matrix.c:
        * pango/pango-matrix.h:
        * pango/pango-types.h:
        Moved gravity and matrix stuff into its own header.  pango-types.h
        includes both pango-matrix.h and pango-gravity.h

        * pango/pango.h:
        Include new headers.

        * pango/pango.def:
        * pango/Makefile.am:
        Update.

        * docs/pango-docs.sgml:
        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        * docs/tmpl/main.sgml:
        * docs/tmpl/vertical.sgml:
        Add a section for Vertical Text.

        * examples/renderdemo.c (do_output), (parse_gravity_hint),
        (parse_options):
        Support gravity hint.

        * examples/test-mixed.txt:
        New test, mixed Latin, Arabic, Chinese text.

svn path=/trunk/; revision=2144

17 years agoDon't check for X and don't warn about missing fontconfig on Win32.
Tor Lillqvist [Mon, 15 Jan 2007 01:57:49 +0000 (01:57 +0000)]
Don't check for X and don't warn about missing fontconfig on Win32.

2007-01-15  Tor Lillqvist  <tml@novell.com>

* configure.in: Don't check for X and don't warn about missing
fontconfig on Win32. (#392628, Yevgen Muntyan)

svn path=/trunk/; revision=2142

17 years agoAutomatically use -mms-bitfields on Windows when building with gcc.
Tor Lillqvist [Mon, 15 Jan 2007 01:36:18 +0000 (01:36 +0000)]
Automatically use -mms-bitfields on Windows when building with gcc.

2007-01-15  Tor Lillqvist  <tml@novell.com>

* configure.in: Automatically use -mms-bitfields on Windows when
building with gcc. (#394453)

svn path=/trunk/; revision=2140

17 years agoupdated
Hans Breuer [Sat, 13 Jan 2007 21:31:41 +0000 (21:31 +0000)]
updated

2007-01-13  Hans Breuer  <hans@breuer.org>

* pango/makefile.msc pango/opentype/makefile.msc : updated

svn path=/trunk/; revision=2139

17 years agoRemove .cvsignore files (moved to svn:ignore prop)
Behdad Esfahbod [Tue, 9 Jan 2007 03:32:12 +0000 (03:32 +0000)]
Remove .cvsignore files (moved to svn:ignore prop)

svn path=/trunk/; revision=2137

17 years ago=== Released 1.15.3 === PANGO_1_15_3
Behdad Esfahbod [Mon, 8 Jan 2007 23:12:14 +0000 (23:12 +0000)]
=== Released 1.15.3 ===

2007-01-08  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.15.3 ===

        * configure.in: Version 1.15.3

        * NEWS: Updated.

svn path=/trunk/; revision=2135

17 years agoDon't introduce bitfields in public struct and rename PangoAnalysis.
Behdad Esfahbod [Mon, 8 Jan 2007 22:45:51 +0000 (22:45 +0000)]
Don't introduce bitfields in public struct and rename PangoAnalysis.

2007-01-08  Behdad Esfahbod  <behdad@gnome.org>

        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        * docs/tmpl/main.sgml:
        * pango/pango-context.c (itemize_state_add_character):
        * pango/pango-item.h:
        * pango/pango-layout.c (pango_layout_run_get_extents):
        * pango/pango-renderer.c (pango_renderer_draw_layout_line):
        Don't introduce bitfields in public struct and rename PangoAnalysis.
        centered_baseline to PangoAnalysis.flags and introduce
        PANGO_ANALYSIS_FLAGS_CENTERED_BASELINE.

svn path=/trunk/; revision=2134

17 years agoFix typo in docs.
Behdad Esfahbod [Mon, 8 Jan 2007 22:34:54 +0000 (22:34 +0000)]
Fix typo in docs.

svn path=/trunk/; revision=2133

17 years agoSpell-check the docs.
Behdad Esfahbod [Sun, 7 Jan 2007 05:49:53 +0000 (05:49 +0000)]
Spell-check the docs.

svn path=/trunk/; revision=2130

17 years agoFix build on Win32 outside srcdir. (#392789, J. Ali Harlow)
Tor Lillqvist [Sun, 7 Jan 2007 03:29:05 +0000 (03:29 +0000)]
Fix build on Win32 outside srcdir. (#392789, J. Ali Harlow)

2007-01-07  Tor Lillqvist  <tml@novell.com>

* modules/basic/Makefile.am: Fix build on Win32 outside
srcdir. (#392789, J. Ali Harlow)

svn path=/trunk/; revision=2128

17 years agoImprove docs, and mention g_unichar_iszerowidth().
Behdad Esfahbod [Thu, 4 Jan 2007 21:49:08 +0000 (21:49 +0000)]
Improve docs, and mention g_unichar_iszerowidth().

2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-utils.c: Improve docs, and mention
        g_unichar_iszerowidth().

svn path=/trunk/; revision=2127

17 years agoPart of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21
Behdad Esfahbod [Thu, 4 Jan 2007 19:35:56 +0000 (19:35 +0000)]
Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21

2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21

        * pango/pango-types.h:
        * pango/pango-matrix.c: New public API:
                pango_matrix_transform_distance()
                pango_matrix_transform_point()
                pango_matrix_transform_rectangle()
                pango_matrix_transform_pixel_rectangle()

        * pango/pango-utils.h:
        * pango/pango-utils.c: New public API:
                pango_units_from_double()
                pango_units_to_double()
                pango_extents_to_pixels()

        * pango/pango-layout.c (pango_layout_get_pixel_extents),
        (pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels().

        * pango/pangocairo-fcfont.c:
        (pango_cairo_fc_font_glyph_extents_cache_init),
        (compute_glyph_extents): Use pango_units_from_double().

        * examples/renderdemo.c (do_output): Use
        pango_matrix_transform_pixel_rectangle();

        * pango/pango.def:
        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml: Update.

svn path=/trunk/; revision=2126

17 years agoBug 388702 - Crash when there's no Hangul glyph in the font.
Changwoo Ryu [Wed, 3 Jan 2007 18:56:01 +0000 (18:56 +0000)]
Bug 388702 - Crash when there's no Hangul glyph in the font.

2007-01-03  Changwoo Ryu  <cwryu@debian.org>

        Bug 388702 - Crash when there's no Hangul glyph in the font.

        * modules/hangul/hangul-fc.c (render_syllable): Do not try to
        render unknown syllable glyphs as jamos.

        * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
        remaining string is a syllable.

        Bug 388581 - Every last Hangul syllable is decomposed to jamos.

        * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
        remaining string is a syllable.

svn path=/trunk/; revision=2125

17 years agoBug 390877 – Don't feed pango-features.h to glib-mkenums Patch from
Behdad Esfahbod [Wed, 3 Jan 2007 18:46:01 +0000 (18:46 +0000)]
Bug 390877 – Don't feed pango-features.h to glib-mkenums Patch from

2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        Bug 390877 – Don't feed pango-features.h to glib-mkenums
        Patch from Yevgen Muntyan

        * pango/Makefile.am: Move pango-features.h to pangoinclude_HEADERS.

svn path=/trunk/; revision=2124

17 years agoImprove option help for --gravity
Behdad Esfahbod [Mon, 25 Dec 2006 09:43:51 +0000 (09:43 +0000)]
Improve option help for --gravity

17 years agoBug 384543 – FcFontMatch misuse
Behdad Esfahbod [Sun, 24 Dec 2006 04:43:17 +0000 (04:43 +0000)]
Bug 384543 – FcFontMatch misuse

2006-12-23  Behdad Esfahbod  <behdad@gnome.org>

        Bug 384543 – FcFontMatch misuse

        * pango/pangofc-fontmap.c (pango_fc_face_describe):
        Call FcConfigSubstitute and FcDefaultSubstitute before calling
        FcFontMatch.

        * pango/pangoft2.c (load_fallback_face):
        Call _pango_ft2_font_map_default_substitute().

        * pango/pangocairo-fcfontmap.c
        (pango_cairo_fc_font_map_context_substitute):
        Handle the case of context == NULL.

17 years agoImprove docs.
Behdad Esfahbod [Sun, 24 Dec 2006 04:15:40 +0000 (04:15 +0000)]
Improve docs.

2006-12-23  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-utils.c (pango_language_get_default): Improve docs.

17 years ago=== Released 1.15.2 === PANGO_1_15_2
Behdad Esfahbod [Thu, 21 Dec 2006 00:34:19 +0000 (00:34 +0000)]
=== Released 1.15.2 ===

2006-12-20  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.15.2 ===

        * configure.in: Version 1.15.2

        * NEWS: Updated.

17 years agoBug 326099 – Setting width, indentation and ellipsizing doesn't work as
Behdad Esfahbod [Tue, 19 Dec 2006 21:37:39 +0000 (21:37 +0000)]
Bug 326099 – Setting width, indentation and ellipsizing doesn't work as

2006-12-19  Behdad Esfahbod  <behdad@gnome.org>

        Bug 326099 – Setting width, indentation and ellipsizing doesn't work
        as I would expect

        * pango/ellipsize.c (_pango_layout_line_ellipsize): Account for
        indentation when deciding what width to ellipsize for.

        * pango/pango-layout.c (get_alignment): Don't bother about
        conditioning on the line direction for center alignment.

17 years agoOptimizing for non-old Hangul users; no more waste of decompose and
Changwoo Ryu [Tue, 19 Dec 2006 18:05:05 +0000 (18:05 +0000)]
Optimizing for non-old Hangul users; no more waste of decompose and

2006-12-20  Changwoo Ryu  <cwryu@debian.org>

* modules/hangul/hangul-defs.h:
* modules/hangul/hangul-fc.c
(hangul_engine_shape): Optimizing for non-old Hangul users; no
more waste of decompose and compose.
(render_syllable): The string argument is now in UTF-8. Normalization
is now done only when the entire sequence is equivalent to a
precomposed syllable.
(render_isolated_tone): Conditioned out tone mark's dummy base
character drawing.

17 years agoAvoid some floating-point operations by caching the y value for the
Behdad Esfahbod [Mon, 18 Dec 2006 02:34:53 +0000 (02:34 +0000)]
Avoid some floating-point operations by caching the y value for the

2006-12-17  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
        Avoid some floating-point operations by caching the y value for the
        baseline, using it for glyphs having y_offset of 0.

17 years agoBug 385478 – Fix tests on OPD platform
Frederic Crozat [Sat, 16 Dec 2006 18:42:59 +0000 (18:42 +0000)]
Bug 385478 – Fix tests on OPD platform

2006-12-15  Frederic Crozat  <fcrozat@mandriva.com>

        Bug 385478 – Fix tests on OPD platform

        * pango/check.defs: Fix tests on OPD platform to report correct
        symbols name.

17 years agoBug 319808 – Patch to let pango support artifical italic, bold and bold
Behdad Esfahbod [Wed, 13 Dec 2006 21:02:00 +0000 (21:02 +0000)]
Bug 319808 – Patch to let pango support artifical italic, bold and bold

2006-12-13  Behdad Esfahbod  <behdad@gnome.org>

        Bug 319808 – Patch to let pango support artifical italic, bold and
        bold italic styles for the fonts which don't have these styles.
        Patch from James Su

        * pango/pangofc-fontmap.c (pango_fc_face_describe), (create_face),
        (pango_fc_family_list_faces): Create fake Bold, Italic, and Bold
        Italic faces for fonts that do not have one.

17 years agoBug 385478 – Fix tests on OPD platform
Gwenole Beauchesne [Wed, 13 Dec 2006 20:35:03 +0000 (20:35 +0000)]
Bug 385478 – Fix tests on OPD platform

2006-12-13  Gwenole Beauchesne  <gbeauchesne@mandriva.com>

        Bug 385478 – Fix tests on OPD platform

        * pango/check.defs: Improve symbols extraction for OPD-based
        platforms (e.g. ppc64, ia64).

17 years agoBug 385321 – Worst case expansion for Sinhala Patch from Harshula
Behdad Esfahbod [Wed, 13 Dec 2006 05:52:38 +0000 (05:52 +0000)]
Bug 385321 – Worst case expansion for Sinhala Patch from Harshula

2006-12-13  Behdad Esfahbod  <behdad@gnome.org>

        Bug 385321 – Worst case expansion for Sinhala
        Patch from Harshula

        * modules/indic/indic-ot-class-tables.c: Change worst case expansion
        for Sinhala from 3 to 4.  This is only superficial because Pango
        doesn't appear to ever use the worst case expansion value.

17 years agoRed Hat Bug 211574: [hi/ml/si_LK] cursor naviation is wrong when using ZWJ
Behdad Esfahbod [Fri, 8 Dec 2006 21:28:41 +0000 (21:28 +0000)]
Red Hat Bug 211574: [hi/ml/si_LK] cursor naviation is wrong when using ZWJ

2006-12-08  Behdad Esfahbod  <behdad@gnome.org>

        Red Hat Bug 211574: [hi/ml/si_LK] cursor naviation is wrong when
        using ZWJ (200d)
        Patch from LingNing Zhang

        * modules/indic/indic-lang.c (indic_engine_break): Handle cursor
        movement around ZWJ and ZWNJ.

17 years agoRed Hat Bug 216424: [te_IN] pango - consonant + dependent vowel (ai)
Behdad Esfahbod [Thu, 7 Dec 2006 21:14:52 +0000 (21:14 +0000)]
Red Hat Bug 216424: [te_IN] pango - consonant + dependent vowel (ai)

2006-12-07  Behdad Esfahbod  <behdad@gnome.org>

        Red Hat Bug 216424: [te_IN] pango - consonant + dependent vowel (ai)
        Composed char is not rendering properly
        Patch from LingNing Zhang

        * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!

17 years agoCache layout ink and logical extents.
Behdad Esfahbod [Thu, 7 Dec 2006 06:30:17 +0000 (06:30 +0000)]
Cache layout ink and logical extents.

2006-12-07  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-layout-private.h:
        * pango/pango-layout.c (pango_layout_get_extents_internal),
        (pango_layout_get_extents), (pango_layout_clear_lines),
        (pango_layout_line_leaked), (pango_layout_line_get_extents),
        (pango_layout_iter_copy), (pango_layout_get_iter),
        (pango_layout_iter_get_layout_extents):
        Cache layout ink and logical extents.

17 years agoNew generated public header file pango-features.h. Currently contains the
Behdad Esfahbod [Thu, 7 Dec 2006 03:40:54 +0000 (03:40 +0000)]
New generated public header file pango-features.h. Currently contains the

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in:
        * pango/Makefile.am:
        New generated public header file pango-features.h.  Currently contains
        the version information.  In the future, can be expanded to define
        which backends have been enabled, etc.

        * pango/pango.def:
        * pango/pango-utils.h:
        * pango/pango-utils.c:
        New public macros and functions: PANGO_VERSION_ENCODE(),
        PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR, PANGO_VERSION_MICRO,
        PANGO_VERSION, PANGO_VERSION_STRING, PANGO_VERSION_CHECK(),
        pango_version(), pango_version_string(), pango_version_check().

        * docs/pango-docs.sgml:
        * docs/pango-sections.txt:
        * docs/tmpl/pango-version.sgml:
        Docs for new symbols, in a new section.

        * examples/renderdemo.c (show_version):
        If run-time Pango lib version is different than the compile-time one,
        show that one too.

        * pango/pango.h:
        #include <pango-utils.h> as well as almost all other public pango-*.h
        headers (though, the other ones were already included indirectly).
        The only public pango-*.h header pango.h shouldn't include are
        pango-ot.h (which is really misnamed) and pango-modules.h (that should
        not be needed by 99.99% users anyway).

        * docs/Makefile.am:
        * docs/check.docs: Test to check that all symbols are documented and
        properly hooked into documentation tree.

        * pango/pango.rc.in:
        * pango/pangoft2.rc.in:
        * pango/pangowin32.rc.in:
        Update, reflecting some internal symbol changes.

        * pango/check.defs: Improve.

17 years agoSet context language to pango_language_get_default() instead of hardcoding
Behdad Esfahbod [Wed, 6 Dec 2006 23:18:04 +0000 (23:18 +0000)]
Set context language to pango_language_get_default() instead of hardcoding

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        * examples/renderdemo.c (do_output): Set context language to
        pango_language_get_default() instead of hardcoding "en-US".

        * pango/pango-utils.c (pango_language_get_default): Improve docs.

17 years agoBug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used Patch
Behdad Esfahbod [Wed, 6 Dec 2006 23:00:31 +0000 (23:00 +0000)]
Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used Patch

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used
        Patch from LingNing Zhang

        * docs/pango-sections.txt:
        * docs/tmpl/utils.sgml:
        * pango/pango-context.c:
        * pango/pango-types.h:
        * pango/pango-utils.c (_pango_get_lc_ctype),
        (pango_language_get_default):
        * pango/pango.def:
        New public function pango_language_get_default().  Note that, this
        does not make Pango fallback to the default language automatically,
        but the user can use this function to set the default language of the
        locale on a context:

          pango_context_set_language (context, pango_language_get_default());

17 years agoBug 373856 – Wish: Function to convert a GdkColor to a string Patch from
Behdad Esfahbod [Wed, 6 Dec 2006 22:46:47 +0000 (22:46 +0000)]
Bug 373856 – Wish: Function to convert a GdkColor to a string Patch from

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 373856 – Wish: Function to convert a GdkColor to a string
        Patch from Matthew Barnes

        * docs/pango-sections.txt:
        * docs/tmpl/text-attributes.sgml:
        * pango/pango-attributes.h:
        * pango/pango.def:
        * pango/pango-color.c (pango_color_to_string):
        New public function pango_color_to_string().

17 years agoRed Hat Bug 216850: Issue in combination with vowels (ml_IN) Patch from
Behdad Esfahbod [Wed, 6 Dec 2006 22:07:11 +0000 (22:07 +0000)]
Red Hat Bug 216850: Issue in combination with vowels (ml_IN) Patch from

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        Red Hat Bug 216850: Issue in combination with vowels (ml_IN)
        Patch from LingNing Zhang

        * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!

17 years agoBug 382437 – tests/testboundaries fails
Behdad Esfahbod [Wed, 6 Dec 2006 20:08:44 +0000 (20:08 +0000)]
Bug 382437 – tests/testboundaries fails

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 382437 – tests/testboundaries fails

        * configure.in: Require libthai >= 0.1.7

17 years agoGurmukhi test text from supreet sethi.
Behdad Esfahbod [Wed, 6 Dec 2006 20:05:33 +0000 (20:05 +0000)]
Gurmukhi test text from supreet sethi.

2006-12-06  Behdad Esfahbod  <behdad@gnome.org>

        * examples/Makefile.am:
        * examples/test-gurmukhi.txt:
        Gurmukhi test text from supreet sethi.

17 years agoAdd new functions: pango_layout_iter_get_line_readonly()
Behdad Esfahbod [Tue, 5 Dec 2006 23:57:09 +0000 (23:57 +0000)]
Add new functions: pango_layout_iter_get_line_readonly()

2006-12-05  Behdad Esfahbod  <behdad@gnome.org>

        * docs/pango-sections.txt:
        * docs/tmpl/layout.sgml:
        * pango/pango-layout.c (pango_layout_get_lines_readonly),
        (pango_layout_get_line_readonly),
        (pango_layout_iter_get_run_readonly),
        (_pango_layout_iter_get_line), (pango_layout_iter_get_line),
        (pango_layout_iter_get_line_readonly):
        * pango/pango-layout.h:
        * pango/pango-renderer.c (pango_renderer_draw_layout):
        * pango/pango.def:
        Add new functions:
                pango_layout_iter_get_line_readonly()
                pango_layout_get_lines_readonly()
                pango_layout_iter_get_line_readonly()
                pango_layout_iter_get_run_readonly()
        These should be used when you do not intend to modify the run/line,
        which is more than most of the time.  So, update your app, benefit
        from more optimizations (in this case, line extents caching)!

17 years ago=== Released 1.15.1 === PANGO_1_15_1
Behdad Esfahbod [Tue, 5 Dec 2006 00:23:25 +0000 (00:23 +0000)]
=== Released 1.15.1 ===

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.15.1 ===

        * configure.in: Version 1.15.1

        * NEWS: Updated.

17 years agoImprove changelog entry for previous commit.
Behdad Esfahbod [Tue, 5 Dec 2006 00:02:21 +0000 (00:02 +0000)]
Improve changelog entry for previous commit.

17 years agoBug 135683 – Cache glyphstring extents
Behdad Esfahbod [Mon, 4 Dec 2006 23:47:27 +0000 (23:47 +0000)]
Bug 135683 – Cache glyphstring extents

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        Bug 135683 – Cache glyphstring extents

        * pango/pango-layout.c (pango_layout_get_lines),
        (pango_layout_get_line), (pango_layout_line_leaked),
        (pango_layout_line_get_extents), (pango_layout_line_new),
        (pango_layout_iter_get_run), (pango_layout_iter_get_line):
        Cache line extents.  Line extents are cached only if the user doesn't
        have a pointer to the line or any of its runs.  Functions that give
        away such pointers mark the line as "leak"ed.

        * pango/pango-layout.c (pango_layout_index_to_line_and_extents),
        (pango_layout_xy_to_index), (pango_layout_index_to_pos):
        Use _pango_layout_iter_get_line() which is like
        pango_layout_iter_get_line() but doesn't leak the line.

        * pango/pango-layout-private.h: Add pango_layout_iter_get_line()
        duplicate _pango_layout_iter_get_line_readonly() that doesn't leak
        the line.

        * pango/pango-renderer.c (pango_renderer_draw_layout): Use
        _pango_layout_iter_get_line_readonly().

17 years agoImprove upon last change. Suggested by Carl Worth: use cairo_rectangle(x +
Behdad Esfahbod [Mon, 4 Dec 2006 20:23:35 +0000 (20:23 +0000)]
Improve upon last change. Suggested by Carl Worth: use cairo_rectangle(x +

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame):
        Improve upon last change.  Suggested by Carl Worth: use
        cairo_rectangle(x + width, y, -width, height) to do a rectangle with
        the other orientation.

17 years agoFix handling of boxes drawn in do_path mode. Previously we were doing one
Behdad Esfahbod [Mon, 4 Dec 2006 20:07:41 +0000 (20:07 +0000)]
Fix handling of boxes drawn in do_path mode. Previously we were doing one

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame),
        (_pango_cairo_renderer_draw_box_glyph),
        (_pango_cairo_renderer_draw_unknown_glyph):
        Fix handling of boxes drawn in do_path mode.  Previously we were
        doing one rectangle and stroke it if in show mode, and leave it alone
        if in path mode.  That doesn't really work.  Now we do two rectangles,
        for the outer and inner rects of the box border, but with different
        orientations, such that pango_cairo_layout_path(); cairo_fill(); works
        for hexboxes now.

17 years agoRed Hat Bug 211964: [ta] Rendering issue with Tamil Patch from LingNing
Behdad Esfahbod [Mon, 4 Dec 2006 18:28:31 +0000 (18:28 +0000)]
Red Hat Bug 211964: [ta] Rendering issue with Tamil Patch from LingNing

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        Red Hat Bug 211964: [ta] Rendering issue with Tamil
        Patch from LingNing Zhang

        * modules/indic/indic-ot-class-tables.c (indic_ot_find_syllable):
        Handle 2 split matra.

17 years agoReplace PANGO_IS_RENDERER with PANGO_IS_RENDERER_FAST that is just a
Behdad Esfahbod [Mon, 4 Dec 2006 17:33:54 +0000 (17:33 +0000)]
Replace PANGO_IS_RENDERER with PANGO_IS_RENDERER_FAST that is just a

2006-12-04  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-renderer.c (pango_renderer_draw_layout_line),
        (pango_renderer_draw_glyphs), (pango_renderer_draw_rectangle),
        (pango_renderer_draw_error_underline),
        (pango_renderer_draw_trapezoid), (pango_renderer_draw_glyph),
        (pango_renderer_activate), (pango_renderer_deactivate),
        (pango_renderer_set_color), (pango_renderer_get_color),
        (pango_renderer_part_changed), (pango_renderer_prepare_run),
        (pango_renderer_set_matrix): Replace PANGO_IS_RENDERER with
        PANGO_IS_RENDERER_FAST that is just a NULL-check.

17 years agoRed Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output Patch
Behdad Esfahbod [Fri, 1 Dec 2006 21:22:19 +0000 (21:22 +0000)]
Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output Patch

2006-12-01  Behdad Esfahbod  <behdad@gnome.org>

        Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output
        Patch from LingNing Zhang

        * modules/indic/indic-ot.c (indic_ot_reorder): Handle ZWNJ.

17 years agoDon't cache run_logical_rect in PangoLayoutIter. Just cache run_width that
Behdad Esfahbod [Fri, 1 Dec 2006 08:34:07 +0000 (08:34 +0000)]
Don't cache run_logical_rect in PangoLayoutIter. Just cache run_width that

2006-12-01  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-layout.c (pango_layout_run_get_width), (update_run),
        (pango_layout_iter_copy), (pango_layout_iter_get_run_extents):
        Don't cache run_logical_rect in PangoLayoutIter.  Just cache run_width
        that can be fastly computed using pango_glyph_string_get_width().
        Avoids one pango_font_get_glyph_extents() call per glyph per layout
        rendering.  We are down to 1 now.

17 years agoRework the way we compute the real_width to avoid calling
Behdad Esfahbod [Thu, 30 Nov 2006 19:34:04 +0000 (19:34 +0000)]
Rework the way we compute the real_width to avoid calling

2006-11-30  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-layout.c (pango_layout_get_extents_internal):  Rework
        the way we compute the real_width to avoid calling
        pango_layout_get_extents(), and so, avoid one
        pango_font_get_glyph_extents() call per glyph per layout rendering.
        We now make 2 such calls.

17 years agoDon't call into pango_glyph_string_extents() if we don't need anything out
Behdad Esfahbod [Thu, 30 Nov 2006 19:29:37 +0000 (19:29 +0000)]
Don't call into pango_glyph_string_extents() if we don't need anything out

2006-11-30  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-renderer.c (pango_renderer_draw_layout_line):
        Don't call into pango_glyph_string_extents() if we don't need anything
        out of it!  (Ok, that function returns immediately in that case, but
        still, avoiding the call overhead.)

17 years agoUse G_LOCK_* wrappers for GStaticMutex.
Behdad Esfahbod [Thu, 30 Nov 2006 18:57:29 +0000 (18:57 +0000)]
Use G_LOCK_* wrappers for GStaticMutex.

2006-11-30  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-render.c (acquire_renderer), (release_renderer):
        Use G_LOCK_* wrappers for GStaticMutex.

17 years agoRevert two of the cast changes from last commit, to make sure the
Behdad Esfahbod [Tue, 28 Nov 2006 21:47:51 +0000 (21:47 +0000)]
Revert two of the cast changes from last commit, to make sure the

2006-11-28  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-font.c (_pango_cairo_font_install),
        (_pango_cairo_font_get_font_face),
        (_pango_cairo_font_get_scaled_font):
        * pango/pangocairo-private.h:
        * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
        Revert two of the cast changes from last commit, to make sure the
        test-pangocairo-fontmap-mismatch test doesn't crash.

17 years agoUse simple, fast, casts instead of PANGO_CAIRO_*() macros where the object
Behdad Esfahbod [Tue, 28 Nov 2006 21:17:39 +0000 (21:17 +0000)]
Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the object

2006-11-28  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_font_face),
        (pango_cairo_fc_font_install), (pango_cairo_fc_font_finalize),
        (pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_shutdown),
        (_pango_cairo_fc_font_new):
        * pango/pangocairo-fcfontmap.c
        (pango_cairo_fc_font_map_set_resolution),
        (pango_cairo_fc_font_map_get_resolution_cairo),
        (pango_cairo_fc_font_map_get_renderer),
        (pango_cairo_fc_font_map_finalize),
        (pango_cairo_fc_font_map_get_resolution_fc),
        (pango_cairo_fc_font_map_create_font):
        * pango/pangocairo-font.c (_pango_cairo_font_install),
        (_pango_cairo_font_get_font_face),
        (_pango_cairo_font_get_scaled_font),
        (_pango_cairo_font_get_hex_box_info):
        * pango/pangocairo-fontmap.c (pango_cairo_create_layout):
        * pango/pangocairo-render.c (set_color),
        (_pango_cairo_renderer_draw_unknown_glyph),
        (pango_cairo_renderer_draw_glyphs),
        (pango_cairo_renderer_draw_rectangle),
        (pango_cairo_renderer_draw_error_underline):
        Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the
        object cannot have reached us if it wasn't of the right type.

17 years agoBug 371388 – Add Thai langauage engine Patch from Theppitak
Behdad Esfahbod [Mon, 27 Nov 2006 22:01:53 +0000 (22:01 +0000)]
Bug 371388 – Add Thai langauage engine Patch from Theppitak

2006-11-27  Behdad Esfahbod  <behdad@gnome.org>

        Bug 371388 – Add Thai langauage engine
        Patch from Theppitak Karoonboonyanan

        * configure.in: Look for libthai and enable thai-lang module.
        * modules/thai/Makefile.am: Hook thai-lang module.

        * modules/thai/thai-lang.c: New Thai language engine that uses libthai
        to do dictionary-based Thai line-breaking.

        * examples/test-thai.txt: Improved.

17 years agoMake renderer-cache really thread-safe this time. Last try was not quite
Behdad Esfahbod [Sat, 25 Nov 2006 05:10:11 +0000 (05:10 +0000)]
Make renderer-cache really thread-safe this time. Last try was not quite

2006-11-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-render.c (acquire_renderer), (release_renderer),
        (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
        (_pango_cairo_do_layout):  Make renderer-cache really thread-safe this
        time.  Last try was not quite thread-safe theoretically, because
        pointer assignments are not necessarily atomic on some archs.  Anyway,
        this one should do it.

17 years agoAdd Lao text samples from Anousak Souphavanh.
Behdad Esfahbod [Wed, 22 Nov 2006 23:05:26 +0000 (23:05 +0000)]
Add Lao text samples from Anousak Souphavanh.

2006-11-22  Behdad Esfahbod  <behdad@gnome.org>

        * examples/HELLO.utf8:
        * examples/Makefile.am:
        * examples/test-lao.txt:
        Add Lao text samples from Anousak Souphavanh.

17 years agoBug 377975 – bug in _pango_glyph_item_iter_next_cluster
Behdad Esfahbod [Wed, 22 Nov 2006 20:36:54 +0000 (20:36 +0000)]
Bug 377975 – bug in _pango_glyph_item_iter_next_cluster

2006-11-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 377975 – bug in _pango_glyph_item_iter_next_cluster

        * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
        (_pango_glyph_item_iter_prev_cluster): Fix condition for ending a
        cluster.

17 years agoFix typo in private docs.
Behdad Esfahbod [Tue, 21 Nov 2006 23:24:41 +0000 (23:24 +0000)]
Fix typo in private docs.

2006-11-21  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-glyph-item.c: Fix typo in private docs.

17 years agoBug 356666 – pango is not thread-safe, nautilus does not honour that
Behdad Esfahbod [Mon, 20 Nov 2006 19:05:42 +0000 (19:05 +0000)]
Bug 356666 – pango is not thread-safe, nautilus does not honour that

2006-11-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 356666 – pango is not thread-safe, nautilus does not honour that

        * pango/pangocairo-render.c (acquire_renderer), (release_renderer),
        (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
        (_pango_cairo_do_layout): Instead of using a per-fontmap renderer, use
        a locally cached one, but make sure only one thread uses the cached
        renderer.  Fixes the raciest point in pangocairo.

18 years agoBug 352795 – configure.in: Bug in "checking Whether to write
Behdad Esfahbod [Tue, 14 Nov 2006 20:03:33 +0000 (20:03 +0000)]
Bug 352795 – configure.in: Bug in "checking Whether to write

2006-11-14  Behdad Esfahbod  <behdad@gnome.org>

        Bug 352795 – configure.in: Bug in "checking Whether to write
        dependencies into .pc files"

        * configure.in: Make libtool magic robust.

18 years agoChoose shaper/font for unassigned Unicode codepoints too. This is needed
Behdad Esfahbod [Tue, 14 Nov 2006 17:09:18 +0000 (17:09 +0000)]
Choose shaper/font for unassigned Unicode codepoints too. This is needed

2006-11-14  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-context.c (itemize_state_process_run): Choose
        shaper/font for unassigned Unicode codepoints too.  This is needed to
        be able to render scripts being encoded before next version of Unicode
        is out.

18 years agoBug 350132 – backspacing doesn't work properly for Arabic
Roozbeh Pournader [Wed, 8 Nov 2006 12:00:44 +0000 (12:00 +0000)]
Bug 350132 – backspacing doesn't work properly for Arabic

2006-11-08  Roozbeh Pournader  <roozbeh@farsiweb.info>

Bug 350132 – backspacing doesn't work properly for Arabic

* modules/arabic/arabic-lang.c: Add more backspace_deletes_character
cases.

18 years agoBug 369670 – Crash when selecting text using the keyboard
Behdad Esfahbod [Wed, 8 Nov 2006 00:07:09 +0000 (00:07 +0000)]
Bug 369670 – Crash when selecting text using the keyboard

2006-11-08  Behdad Esfahbod  <behdad@gnome.org>

Bug 369670 – Crash when selecting text using the keyboard

* pango/pango-layout.c (pango_layout_move_cursor_visually): Don't
index vis2log_map[] with a negative value.

18 years agoBug 369670 – Checked g_free calls
Behdad Esfahbod [Thu, 2 Nov 2006 22:49:40 +0000 (22:49 +0000)]
Bug 369670 – Checked g_free calls

2006-11-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 369670 – Checked g_free calls

        * pango/pango-coverage.c (pango_coverage_unref):
        * pango/pango-layout.c (pango_layout_finalize),
        (pango_layout_set_text):
        * pango/pangofc-font.c (pango_fc_font_finalize):
        * pango/pangox-fontmap.c (pango_x_font_map_read_alias_file):
        Remove redundant checks before g_free() calls.

18 years agoDo not require pangoft2 unconditionally.
Behdad Esfahbod [Tue, 24 Oct 2006 19:54:26 +0000 (19:54 +0000)]
Do not require pangoft2 unconditionally.

2006-10-24  Behdad Esfahbod  <behdad@gnome.org>

        * examples/Makefile.am (cairosimple_LDADD): Do not require pangoft2
        unconditionally.

18 years agoImplement get_resolution for FT2 fontmaps.
Behdad Esfahbod [Tue, 24 Oct 2006 19:37:00 +0000 (19:37 +0000)]
Implement get_resolution for FT2 fontmaps.

2006-10-24  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangoft2-fontmap.c (pango_ft2_font_map_class_init),
        (pango_ft2_font_map_get_resolution): Implement get_resolution for FT2
        fontmaps.

18 years agoDo not include arabic-ot.h.
Behdad Esfahbod [Wed, 18 Oct 2006 20:04:31 +0000 (20:04 +0000)]
Do not include arabic-ot.h.

2006-10-18  Behdad Esfahbod  <behdad@gnome.org>

        * modules/arabic/arabic-lang.c: Do not include arabic-ot.h.

18 years agoReplace by a better one.
Behdad Esfahbod [Wed, 18 Oct 2006 15:12:38 +0000 (15:12 +0000)]
Replace by a better one.

2006-10-18  Behdad Esfahbod  <behdad@gnome.org>

        * examples/test-thai.txt: Replace by a better one.

18 years agoAdded.
Behdad Esfahbod [Tue, 17 Oct 2006 22:21:33 +0000 (22:21 +0000)]
Added.

2006-10-17  Behdad Esfahbod  <behdad@gnome.org>

        * examples/Makefile.am:
        * examples/test-thai.txt: Added.

18 years ago=== Released 1.15.0 === PANGO_1_15_0
Behdad Esfahbod [Mon, 16 Oct 2006 20:12:41 +0000 (20:12 +0000)]
=== Released 1.15.0 ===

2006-10-16  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.15.0 ===

        * configure.in: Version 1.15.0

        * NEWS: Updated.

18 years agoBug 330407 – Multiple dependant vowel signs (indic) displayed as one
Behdad Esfahbod [Mon, 16 Oct 2006 13:47:32 +0000 (13:47 +0000)]
Bug 330407 – Multiple dependant vowel signs (indic) displayed as one

2006-10-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 330407 – Multiple dependant vowel signs (indic) displayed as one
        Patch from LingNing Zhang

        * modules/indic/indic-ot-class-tables.c: Change state transition for
        cn to dv.

18 years agoMake TypeInfo structs not static. Reduces relocations.
Behdad Esfahbod [Fri, 13 Oct 2006 17:23:39 +0000 (17:23 +0000)]
Make TypeInfo structs not static. Reduces relocations.

2006-10-13  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-ot-info.c (pango_ot_info_get_type):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type):
        * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type),
        (pango_atsui_face_get_type):
        * pango/pangocairo-font.c (pango_cairo_font_get_type):
        * pango/pangocairo-fontmap.c (pango_cairo_font_map_get_type):
        * pango/pangofc-fontmap.c (pango_fc_face_get_type),
        (pango_fc_family_get_type):
        * pango/pangowin32-fontmap.c (pango_win32_family_get_type),
        (pango_win32_face_get_type):
        * pango/pangox-fontmap.c (pango_x_font_map_get_type),
        (pango_x_face_get_type), (pango_x_family_get_type):
        * pango/pangox.c (pango_x_font_get_type):
        Make TypeInfo structs not static.  Reduces relocations.

18 years agoBug 361938 – Can't include *-lang modules (./configure
Behdad Esfahbod [Fri, 13 Oct 2006 17:20:41 +0000 (17:20 +0000)]
Bug 361938 – Can't include *-lang modules (./configure

2006-10-13  Behdad Esfahbod  <behdad@gnome.org>

        Bug 361938 – Can't include *-lang modules (./configure
        --with-included-modules fails)

        * configure.in:
        * modules/Makefile.am:
        * pango/.cvsignore:
        * pango/Makefile.am:
        * pango/modules.c (init_modules):
        * pango/modules.h:
        Make included language engines work.

18 years agoBug 353877 – Sinhala is_cursor_position and backspace_deletes_character
Behdad Esfahbod [Thu, 12 Oct 2006 18:45:09 +0000 (18:45 +0000)]
Bug 353877 – Sinhala is_cursor_position and backspace_deletes_character

2006-10-12  Behdad Esfahbod  <behdad@gnome.org>

        Bug 353877 – Sinhala is_cursor_position and
        backspace_deletes_character issues
        Patch from Akira TAGOH

        * configure.in:
        * modules/indic/Makefile.am:
        * modules/indic/indic-lang.c: Add a simple Indic language engine.

18 years agoFix comment about PangoGlyphUnit being a 1000th of a char.
Behdad Esfahbod [Thu, 12 Oct 2006 18:24:49 +0000 (18:24 +0000)]
Fix comment about PangoGlyphUnit being a 1000th of a char.

18 years agoBug 358224 – Telugu Character U+0C31 does not render its below-base
Behdad Esfahbod [Thu, 12 Oct 2006 18:23:05 +0000 (18:23 +0000)]
Bug 358224 – Telugu Character U+0C31 does not render its below-base

2006-10-12  Behdad Esfahbod  <behdad@gnome.org>

        Bug 358224 – Telugu Character U+0C31 does not render its below-base
        form.
        Patch from Rahul Bhalerao

        * modules/indic/indic-ot-class-tables.c: Change  the class of U+0C31
        from '_ct' to '_bb'.

18 years agoBug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
Behdad Esfahbod [Thu, 12 Oct 2006 18:20:20 +0000 (18:20 +0000)]
Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are

2006-10-12  Behdad Esfahbod  <behdad@gnome.org>

        Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
        not rendered.
        Patch from Rahul Bhalerao

        * modules/indic/indic-ot-class-tables.c: Change the class bit of
        U+09F0 from '_ct' to '_rv'.

18 years agoAdd part of Jabberwocky as Latin test text.
Behdad Esfahbod [Sat, 7 Oct 2006 15:11:25 +0000 (15:11 +0000)]
Add part of Jabberwocky as Latin test text.

2006-10-07  Behdad Esfahbod  <behdad@gnome.org>

        * examples/Makefile.am:
        * examples/test-latin.txt: Add part of Jabberwocky as Latin test text.

18 years agoBug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong Patch
Behdad Esfahbod [Mon, 2 Oct 2006 21:37:06 +0000 (21:37 +0000)]
Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong Patch

2006-10-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong
        Patch from Rahul Bhalerao

        * modules/indic/indic-ot-class-tables.c:  Change _ct to _bb for
        various Orya characters.

18 years agoBug 357790 – Rendering problem for malayalam consonant RA (U+0D30)
Behdad Esfahbod [Mon, 2 Oct 2006 21:27:40 +0000 (21:27 +0000)]
Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)

2006-10-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)

        * modules/indic/indic-ot-class-tables.c:
        * modules/indic/indic-ot.c (indic_ot_reorder):
        Fix.