platform/upstream/pango.git
16 years agoBug 496244 – Don't use freetype-config, use pkg-config
Behdad Esfahbod [Tue, 29 Jan 2008 22:38:29 +0000 (22:38 +0000)]
Bug 496244 – Don't use freetype-config, use pkg-config

2008-01-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 496244 – Don't use freetype-config, use pkg-config

        * configure.in:
        Don't use freetype-config.  Also cleanup lots of old stale macros
        around configure.in.

        * pango-uninstalled.pc.in:
        * pango.pc.in:
        * pangocairo-uninstalled.pc.in:
        * pangocairo.pc.in:
        * pangoft2-uninstalled.pc.in:
        * pangoft2.pc.in:
        * pangowin32.pc.in:
        * pangox-uninstalled.pc.in:
        * pangox.pc.in:
        * pangoxft-uninstalled.pc.in:
        * pangoxft.pc.in:
        And cleaned up all the pkg-config files as a result.

svn path=/trunk/; revision=2559

16 years agoMinor
Behdad Esfahbod [Mon, 28 Jan 2008 21:22:48 +0000 (21:22 +0000)]
Minor

svn path=/trunk/; revision=2558

16 years agoBug 512566 – dont' use deprecated macro Patch from Christian Persch
Behdad Esfahbod [Mon, 28 Jan 2008 20:58:11 +0000 (20:58 +0000)]
Bug 512566 – dont' use deprecated macro Patch from Christian Persch

2008-01-28  Behdad Esfahbod  <behdad@gnome.org>

        Bug 512566 – dont' use deprecated macro
        Patch from Christian Persch

        * tests/test-ot-tags.c:
        * tests/testscript.c:
        Replace G_GNUC_PRETTY_FUNCTION by G_STRFUNC

svn path=/trunk/; revision=2557

16 years agoadd bug number
Wouter Bolsterlee [Mon, 28 Jan 2008 00:37:56 +0000 (00:37 +0000)]
add bug number

svn path=/trunk/; revision=2556

16 years agoFixed gtk-doc warnings.
Wouter Bolsterlee [Mon, 28 Jan 2008 00:37:21 +0000 (00:37 +0000)]
Fixed gtk-doc warnings.

2008-01-28  Wouter Bolsterlee  <wbolster@svn.gnome.org>

* pango/pango-context.c:
* pango/pango-fontmap.c:
* pango/pango-utils.c:
* pango/pangofc-fontmap.h:
* pango/pangox.c:
* pango/reorder-items.c:

Fixed gtk-doc warnings.

svn path=/trunk/; revision=2555

16 years agoMinor reordering to make debugging easier.
Behdad Esfahbod [Fri, 25 Jan 2008 03:33:41 +0000 (03:33 +0000)]
Minor reordering to make debugging easier.

svn path=/trunk/; revision=2554

16 years agoRemove unused macro
Behdad Esfahbod [Thu, 24 Jan 2008 04:42:24 +0000 (04:42 +0000)]
Remove unused macro

svn path=/trunk/; revision=2553

16 years ago=== Released 1.19.3 === PANGO_1_19_3
Behdad Esfahbod [Tue, 22 Jan 2008 04:01:03 +0000 (04:01 +0000)]
=== Released 1.19.3 ===

2008-01-21  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.19.3 ===

        * configure.in: Version 1.19.3

        * NEWS: Updated.

svn path=/trunk/; revision=2551

16 years agoFix typo.
Behdad Esfahbod [Tue, 22 Jan 2008 03:47:56 +0000 (03:47 +0000)]
Fix typo.

svn path=/trunk/; revision=2550

16 years agoMark behavior as undefined if height is not -1 and ellipsize mode is
Behdad Esfahbod [Tue, 22 Jan 2008 03:31:40 +0000 (03:31 +0000)]
Mark behavior as undefined if height is not -1 and ellipsize mode is

2008-01-21  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-layout.c (pango_layout_set_height()): Mark behavior as
        undefined if height is not -1 and ellipsize mode is
        PANGO_ELLIPSIZE_NONE.

svn path=/trunk/; revision=2549

16 years agoBug 508002 – change pango_layout_pixel_extents() to round logical rect
Behdad Esfahbod [Tue, 22 Jan 2008 02:08:36 +0000 (02:08 +0000)]
Bug 508002 – change pango_layout_pixel_extents() to round logical rect

2008-01-21  Behdad Esfahbod  <behdad@gnome.org>

        Bug 508002 – change pango_layout_pixel_extents() to round logical rect
        to be inclusive

        * pango/pango-layout.c (pango_layout_get_pixel_extents),
        (pango_layout_line_get_pixel_extents): Round extents to pixels
        inclusively.  That is, pass both ink_rect and logical_rect as first
        argument to pango_extents_to_pixels().

        * pango/pango-matrix.c (pango_matrix_transform_pixel_rectangle):
        Fix rounding.

        * pango/pango-types.h:
        * docs/tmpl/glyphs.sgml:
        * pango/pango-utils.c (pango_extents_to_pixels):
        Rename pango_extents_to_pixels() function arguments from @ink_rect and
        @logical_rect to @inclusive and @nearest.  Given that this API is a
        fairly new addition and not commonly used, language bindings are
        encouraged to update their argument names accordingly.  Moreover, they
        are encouraged to wrap this function as two different calls:
        extents_to_pixels_inclusive() and extents_to_pixels_nearest(), or
        similar conventions that best reflect their native language.

svn path=/trunk/; revision=2548

16 years agoRemove COPYING.GPL and COPYING.FTL that are no longer there.
Behdad Esfahbod [Wed, 16 Jan 2008 20:39:29 +0000 (20:39 +0000)]
Remove COPYING.GPL and COPYING.FTL that are no longer there.

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

        * pango/opentype/Makefile.am: Remove COPYING.GPL and COPYING.FTL that
        are no longer there.

svn path=/trunk/; revision=2547

16 years agoHarfBuzz was relicensed to a more generous and simpler license. Adapt. See
Behdad Esfahbod [Tue, 15 Jan 2008 22:46:32 +0000 (22:46 +0000)]
HarfBuzz was relicensed to a more generous and simpler license. Adapt. See

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

        * pango/opentype/*:
        HarfBuzz was relicensed to a more generous and simpler license.
        Adapt.  See pango/opentype/COPYING for the new license which is
        LGPL-compatible.

svn path=/trunk/; revision=2546

16 years agoMinor cleanup.
Behdad Esfahbod [Tue, 15 Jan 2008 20:52:36 +0000 (20:52 +0000)]
Minor cleanup.

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

        * pango/pango-layout.c (debug), (process_line),
        (pango_layout_line_postprocess): Minor cleanup.

svn path=/trunk/; revision=2545

16 years agoBug 469313 – Add pango_layout_set_height()
Behdad Esfahbod [Tue, 15 Jan 2008 20:24:09 +0000 (20:24 +0000)]
Bug 469313 – Add pango_layout_set_height()

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

        Bug 469313 – Add pango_layout_set_height()

        * pango/pango-layout.c (get_x_offset),
        (should_ellipsize_current_line), (add_line), (process_line),
        (pango_layout_check_lines), (pango_layout_line_get_width),
        (pango_layout_line_get_x_ranges), (justify_words),
        (pango_layout_line_postprocess):
        Implement height >= 0;  There are still bugs left.  Most notably,
        there will be at least two lines showed no matter how small height is.

svn path=/trunk/; revision=2544

16 years agoMinor.
Behdad Esfahbod [Tue, 15 Jan 2008 01:21:47 +0000 (01:21 +0000)]
Minor.

svn path=/trunk/; revision=2543

16 years agoBug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnit
Behdad Esfahbod [Tue, 15 Jan 2008 01:20:44 +0000 (01:20 +0000)]
Bug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnit

2008-01-14  Behdad Esfahbod  <behdad@gnome.org>

        Bug 469313 – Add pango_layout_set_height()
        Bug 508179 – PangoGlyphUnit confusion

        * pango/pango-layout.h:
        * pango/pango-layout-private.h:
        * pango/pango-layout.c:
        * pango/ellipsize.c (_pango_layout_line_ellipsize):
        New public API:

                pango_layout_set_height()

        See docs for semantics.  Currently only negative height values (number
        of lines) is implemented.

        * pango-view/viewer-render.c (make_layout), (output_body),
        (parse_options):
        Implement --height.

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

2008-01-14  Behdad Esfahbod  <behdad@gnome.org>

        Bug 508179 – PangoGlyphUnit confusion

        * pango/pangowin32.c:
        * pango/glyphstring.c:
        * pango/pango-layout.c (process_item): Remove all traces of
        #PangoGlyphUnit

svn path=/trunk/; revision=2542

16 years agoIgnore indent if aligned center, and document so. This assumption was
Behdad Esfahbod [Tue, 8 Jan 2008 22:55:14 +0000 (22:55 +0000)]
Ignore indent if aligned center, and document so. This assumption was

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

        * pango/pango-layout.c: Ignore indent if aligned center, and document
        so.  This assumption was present in some places and not the others.
        Fixed now.

svn path=/trunk/; revision=2538

16 years agoBug 508007 – Add option for single-paragraph mode to pango-view
Behdad Esfahbod [Tue, 8 Jan 2008 21:32:27 +0000 (21:32 +0000)]
Bug 508007 – Add option for single-paragraph mode to pango-view

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

        Bug 508007 – Add option for single-paragraph mode to pango-view

        * pango-view/viewer-render.c (make_layout), (parse_options): Add
        --single-par option to pango-view.

svn path=/trunk/; revision=2537

16 years agoMinor cleanup. Attributes are initialized with start/end_index to apply to
Behdad Esfahbod [Tue, 8 Jan 2008 20:52:44 +0000 (20:52 +0000)]
Minor cleanup. Attributes are initialized with start/end_index to apply to

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

        * pango/pango-layout.c (ensure_tab_width), (process_line),
        (pango_layout_get_effective_attributes),
        (pango_layout_check_lines): Minor cleanup.  Attributes are initialized
        with start/end_index to apply to entire text now, no need to
        initialize them explicitly anymore.

svn path=/trunk/; revision=2536

16 years agoBug 506284 – docs typo for pango_coverage_unref Patch from Christian PANGO_1_18_4
Behdad Esfahbod [Sat, 29 Dec 2007 20:23:31 +0000 (20:23 +0000)]
Bug 506284 – docs typo for pango_coverage_unref Patch from Christian

2007-12-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 506284 – docs typo for pango_coverage_unref
        Patch from Christian Persch

        * pango/pango-coverage.c (pango_coverage_unref): Fix typo in docs.

svn path=/trunk/; revision=2532

16 years agoCheck for dummy man pages in dist-local.
Behdad Esfahbod [Fri, 21 Dec 2007 19:44:37 +0000 (19:44 +0000)]
Check for dummy man pages in dist-local.

2007-12-21  Behdad Esfahbod  <behdad@gnome.org>

        * docs/Makefile.am: Check for dummy man pages in dist-local.

svn path=/trunk/; revision=2531

16 years agoBug 504802 – build failure: No rule to make target
Behdad Esfahbod [Fri, 21 Dec 2007 19:40:06 +0000 (19:40 +0000)]
Bug 504802 – build failure: No rule to make target

2007-12-21  Behdad Esfahbod  <behdad@gnome.org>

        Bug 504802 – build failure: No rule to make target
        `pango-querymodules.1', needed by `all-am'. Stop.

        * docs/Makefile.am: Create dummy pango-querymodules.1 if it doesn't
        exsits (SVN checkout) and --enable-man is not used.

svn path=/trunk/; revision=2530

16 years agoBug 504585 – pango-querymodules.1 syntax error
Behdad Esfahbod [Thu, 20 Dec 2007 03:06:06 +0000 (03:06 +0000)]
Bug 504585 – pango-querymodules.1 syntax error

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

        Bug 504585 – pango-querymodules.1 syntax error

        * Makefile.am:
        * docs/Makefile.am:
        * docs/pango-querymodules.1:
        Fix man-page generation rule, also remove pango-querymodules.1 from
        SVN so it's regenerated from XML at dist time.

svn path=/trunk/; revision=2529

16 years agoRed Hat Bug 426178: gtkdoc-scan fails on pango
Behdad Esfahbod [Thu, 20 Dec 2007 00:53:00 +0000 (00:53 +0000)]
Red Hat Bug 426178: gtkdoc-scan fails on pango

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

         Red Hat Bug 426178: gtkdoc-scan fails on pango

        * docs/pango-sections.txt:
        * pango/pango-ot-private.h:
        * pango/pango-ot.h:
        Make the following symbols available to engines:

                PANGO_IS_OT_INFO
                PANGO_IS_OT_RULESET
                PANGO_OT_INFO
                PANGO_OT_RULESET
                PANGO_TYPE_OT_INFO
                PANGO_TYPE_OT_RULESET
                pango_ot_info_get_type
                pango_ot_ruleset_get_type

svn path=/trunk/; revision=2528

16 years ago=== Released 1.19.2 === PANGO_1_19_2
Behdad Esfahbod [Mon, 17 Dec 2007 18:45:49 +0000 (18:45 +0000)]
=== Released 1.19.2 ===

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

        * === Released 1.19.2 ===

        * configure.in: Version 1.19.2

        * NEWS: Updated.

svn path=/trunk/; revision=2526

16 years agouse pkg-config to detect cairo features
Benjamin Otte [Thu, 13 Dec 2007 22:20:49 +0000 (22:20 +0000)]
use pkg-config to detect cairo features

* configure.in: use pkg-config to detect cairo features

svn path=/trunk/; revision=2525

16 years agoBetter fix: set both LIBS and LDFLAGS.
Behdad Esfahbod [Tue, 11 Dec 2007 00:14:54 +0000 (00:14 +0000)]
Better fix: set both LIBS and LDFLAGS.

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

        * configure.in: Better fix: set both LIBS and LDFLAGS.

svn path=/trunk/; revision=2524

16 years agoBug 502926 – pango-1.16.4 configure bug: can fail to accept cairo
Behdad Esfahbod [Mon, 10 Dec 2007 21:41:06 +0000 (21:41 +0000)]
Bug 502926 – pango-1.16.4 configure bug: can fail to accept cairo

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

        Bug 502926 – pango-1.16.4 configure bug: can fail to accept cairo

        * configure.in: Fix cairo library checking.

svn path=/trunk/; revision=2522

16 years agoImprove pango_cairo_font_map_get_default() docs.
Behdad Esfahbod [Mon, 10 Dec 2007 20:57:06 +0000 (20:57 +0000)]
Improve pango_cairo_font_map_get_default() docs.

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

        * pango/pangocairo-fontmap.c: Improve
        pango_cairo_font_map_get_default() docs.

svn path=/trunk/; revision=2521

16 years agoBug 399573 – replace strtoul in pango-markup.c with pango_scan_int()
Behdad Esfahbod [Mon, 10 Dec 2007 10:56:18 +0000 (10:56 +0000)]
Bug 399573 – replace strtoul in pango-markup.c with pango_scan_int()

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

        Bug 399573 – replace strtoul in pango-markup.c with pango_scan_int()

        * pango/pango-markup.c (span_parse_func): Use pango_scan_int() and
        improve error message on parse failure.

svn path=/trunk/; revision=2520

16 years agoBug 478914 – Use something invalid instead of '?' when validating input
Behdad Esfahbod [Mon, 10 Dec 2007 08:31:33 +0000 (08:31 +0000)]
Bug 478914 – Use something invalid instead of '?' when validating input

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

        Bug 478914 – Use something invalid instead of '?' when validating
        input text

        * pango/pango-layout.c (pango_layout_set_text): Set invalid input
        bytes to -1, which gives a unichar value of -1, and eventually a
        glyph value of -1, aka PANGO_GLYPH_INVALID_INPUT.

        * pango/fonts.c (pango_font_get_glyph_extents),
        (pango_font_get_metrics), (pango_font_get_font_map):
        * pango/modules.c (build_map):
        * pango/pango-context.c (get_script), (get_shaper_and_font),
        (string_from_script), (itemize_state_process_run):
        * pango/pango-coverage.c (pango_coverage_get):
        * pango/pango-impl-utils.h:
        * pango/pango-utils.c:
        * pango/pangocairo-font.c (pango_cairo_font_get_scaled_font),
        (_pango_cairo_font_private_get_hex_box_info),
        (_pango_cairo_font_private_get_glyph_extents_missing):
        * pango/pangocairo-private.h:
        * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame),
        (_pango_cairo_renderer_draw_box_glyph),
        (_pango_cairo_renderer_draw_unknown_glyph):
        * pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns):
        * pango/pangoft2-private.h:
        * pango/pangoft2-render.c (pango_ft2_font_render_box_glyph),
        (pango_ft2_font_render_glyph), (pango_ft2_renderer_draw_glyph):
        * pango/pangoft2.c (pango_ft2_font_get_face),
        (pango_ft2_font_get_glyph_extents):
        * pango/pangox.c (pango_x_find_subfont), (pango_x_render):
        * pango/pangoxft-font.c (_pango_xft_font_get_mini_font),
        (get_glyph_extents_missing), (pango_xft_font_get_font):
        * pango/pangoxft-private.h:
        * pango/pangoxft-render.c (get_total_matrix), (draw_box),
        (_pango_xft_renderer_draw_box_glyph),
        (_pango_xft_renderer_draw_unknown_glyph),
        (pango_xft_renderer_draw_glyphs):
        * pango/shape.c (pango_shape):
        Render PANGO_GLYPH_INVALID_INPUT to a single-width box with a cross
        inside.  Also cleanup spewed warnings and warn at the source, where
        we fail to find a shaper, instead of at every location that we see
        a NULL font.

        * pango/pango-font.h:
        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        New public macro:

                PANGO_GLYPH_INVALID_INPUT

svn path=/trunk/; revision=2519

16 years agoMinor doc improvement.
Behdad Esfahbod [Fri, 7 Dec 2007 05:19:28 +0000 (05:19 +0000)]
Minor doc improvement.

svn path=/trunk/; revision=2518

16 years agoOptimize double math.
Behdad Esfahbod [Thu, 6 Dec 2007 02:04:28 +0000 (02:04 +0000)]
Optimize double math.

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

        * examples/cairotwisted.c (point_on_path): Optimize double math.

svn path=/trunk/; revision=2517

16 years agoBug 501938 – Arabic shaping broken with vertical layout with
Behdad Esfahbod [Thu, 6 Dec 2007 01:41:18 +0000 (01:41 +0000)]
Bug 501938 – Arabic shaping broken with vertical layout with

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

        Bug 501938 – Arabic shaping broken with vertical layout with
        vertical-hint=line

        * modules/arabic/arabic-fc.c (arabic_engine_shape): Take gravity into
        equation when deciding whether to shape visually or logically.

svn path=/trunk/; revision=2516

16 years agoFix assertion in pango_gravity_get_rotation().
Behdad Esfahbod [Thu, 6 Dec 2007 01:40:35 +0000 (01:40 +0000)]
Fix assertion in pango_gravity_get_rotation().

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

        * pango-view/viewer-pangocairo.c (render_callback): Fix assertion
        in pango_gravity_get_rotation().

svn path=/trunk/; revision=2515

16 years agoBug 501575 – Compile errors Patch from Jens Granseuer
Behdad Esfahbod [Wed, 5 Dec 2007 03:41:29 +0000 (03:41 +0000)]
Bug 501575 – Compile errors Patch from Jens Granseuer

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

        Bug 501575 – Compile errors
        Patch from Jens Granseuer

        * pango/opentype/harfbuzz-stream.c (_hb_font_goto_table):
        * pango/pango-utils.c (handle_alias_line):
        Fix C99ism.

svn path=/trunk/; revision=2514

16 years ago=== Released 1.19.1 === PANGO_1_19_1
Behdad Esfahbod [Tue, 4 Dec 2007 00:20:04 +0000 (00:20 +0000)]
=== Released 1.19.1 ===

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

        * === Released 1.19.1 ===

        * configure.in: Version 1.19.1

        * NEWS: Updated.

svn path=/trunk/; revision=2512

16 years agoBug 501317 – "and" found where word should be "an"
Behdad Esfahbod [Mon, 3 Dec 2007 21:14:56 +0000 (21:14 +0000)]
Bug 501317 – "and" found where word should be "an"

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

        Bug 501317 – "and" found where word should be "an"

        * docs/tmpl/layout.sgml: Fix typo.

svn path=/trunk/; revision=2511

16 years agoAdd some more comments to document the math involved.
Behdad Esfahbod [Mon, 3 Dec 2007 07:44:27 +0000 (07:44 +0000)]
Add some more comments to document the math involved.

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

        * examples/cairotwisted.c: Add some more comments to document
        the math involved.

svn path=/trunk/; revision=2510

16 years agoDocument cairotwisted example.
Behdad Esfahbod [Fri, 30 Nov 2007 18:58:16 +0000 (18:58 +0000)]
Document cairotwisted example.

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

        * examples/cairotwisted.c (two_points_distance), (curve_length),
        (parametrize_path), (point_on_path), (draw_twisted), (main):
        Document cairotwisted example.

svn path=/trunk/; revision=2509

16 years agoUndo accidental change.
Behdad Esfahbod [Fri, 30 Nov 2007 04:31:29 +0000 (04:31 +0000)]
Undo accidental change.

svn path=/trunk/; revision=2508

16 years agoAdd some documentation.
Behdad Esfahbod [Fri, 30 Nov 2007 04:30:46 +0000 (04:30 +0000)]
Add some documentation.

2007-11-29  Behdad Esfahbod  <behdad@gnome.org>

        * example/cairo*.c: Add some documentation.

svn path=/trunk/; revision=2507

16 years agoBug 485536 – underline_position can be zero
Behdad Esfahbod [Fri, 30 Nov 2007 04:29:58 +0000 (04:29 +0000)]
Bug 485536 – underline_position can be zero

2007-11-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 485536 – underline_position can be zero

        * pango/pango-utils.c (pango_cairo_quantize_line_geometry):
        Document that returned position may be zero.

        * pango/pangocairo-win32font.c
        (pango_cairo_win32_font_create_metrics_for_context):
        * pango/pangofc-font.c (get_face_metrics):
        Handle case of underline_position==0 after rounding.

svn path=/trunk/; revision=2506

16 years agoBug 500549 – pangocairo.h should include pango.h and cairo.h
Behdad Esfahbod [Thu, 29 Nov 2007 23:59:17 +0000 (23:59 +0000)]
Bug 500549 – pangocairo.h should include pango.h and cairo.h

2007-11-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 500549 – pangocairo.h should include pango.h and cairo.h

        * pango/pangocairo.h: #include <pango/pango.h>

svn path=/trunk/; revision=2505

16 years agoMake it reusable by not hardcoding "pango".
Behdad Esfahbod [Sat, 24 Nov 2007 01:43:45 +0000 (01:43 +0000)]
Make it reusable by not hardcoding "pango".

2007-11-23  Behdad Esfahbod  <behdad@gnome.org>

        * docs/check.docs: Make it reusable by not hardcoding "pango".

svn path=/trunk/; revision=2504

16 years agoRemove unused macro.
Behdad Esfahbod [Sat, 24 Nov 2007 01:40:13 +0000 (01:40 +0000)]
Remove unused macro.

2007-11-23  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/harfbuzz-impl.c: Remove unused macro.

svn path=/trunk/; revision=2503

16 years agoMinor
Behdad Esfahbod [Sun, 18 Nov 2007 22:34:08 +0000 (22:34 +0000)]
Minor

svn path=/trunk/; revision=2502

16 years agoReplace GNU-specific syntax with more general one.
Behdad Esfahbod [Sun, 18 Nov 2007 22:14:18 +0000 (22:14 +0000)]
Replace GNU-specific syntax with more general one.

2007-11-18  Behdad Esfahbod  <behdad@gnome.org>

        * docs/Makefile.am: Replace GNU-specific syntax with more general one.

svn path=/trunk/; revision=2501

16 years agoReplace GNU-specific syntax with more common Makefile.am syntax
Behdad Esfahbod [Sun, 18 Nov 2007 22:10:20 +0000 (22:10 +0000)]
Replace GNU-specific syntax with more common Makefile.am syntax

svn path=/trunk/; revision=2500

16 years agos/CVS/SVN/
Behdad Esfahbod [Sun, 18 Nov 2007 22:09:06 +0000 (22:09 +0000)]
s/CVS/SVN/

svn path=/trunk/; revision=2499

16 years agoFactor out the common code from read_builtin_aliases() and
Tor Lillqvist [Fri, 16 Nov 2007 23:27:07 +0000 (23:27 +0000)]
Factor out the common code from read_builtin_aliases() and

2007-11-16  Tor Lillqvist  <tml@novell.com>

* pango/pango-utils.c (handle_alias_line): Factor out the common
code from read_builtin_aliases() and read_alias_file(). (#492517)

svn path=/trunk/; revision=2498

16 years agoInclude ATSUI included modules.
Behdad Esfahbod [Fri, 9 Nov 2007 17:05:22 +0000 (17:05 +0000)]
Include ATSUI included modules.

2007-11-09  Behdad Esfahbod  <behdad@gnome.org>

        * pango/Makefile.am: Include ATSUI included modules.

svn path=/trunk/; revision=2497

16 years agoBug 495091 – pango-utils.c:variable is declared at middle of block
Behdad Esfahbod [Thu, 8 Nov 2007 22:56:31 +0000 (22:56 +0000)]
Bug 495091 – pango-utils.c:variable is declared at middle of block

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

        Bug 495091 – pango-utils.c:variable is declared at middle of block

        * pango/pango-utils.c (read_builtin_aliases): Move variable
        declaraction before code.

svn path=/trunk/; revision=2496

16 years agoRemove dead code.
Behdad Esfahbod [Wed, 7 Nov 2007 10:04:11 +0000 (10:04 +0000)]
Remove dead code.

svn path=/trunk/; revision=2495

16 years agoAnd some more.
Behdad Esfahbod [Wed, 7 Nov 2007 09:59:18 +0000 (09:59 +0000)]
And some more.

2007-11-07  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/*: And some more.

svn path=/trunk/; revision=2494

16 years agoSome more cleanup and merging.
Behdad Esfahbod [Wed, 7 Nov 2007 08:06:01 +0000 (08:06 +0000)]
Some more cleanup and merging.

2007-11-07  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/*: Some more cleanup and merging.

svn path=/trunk/; revision=2493

16 years agoUpdate to new propsed language enumeration API for fontconfig.
Behdad Esfahbod [Mon, 5 Nov 2007 20:42:37 +0000 (20:42 +0000)]
Update to new propsed language enumeration API for fontconfig.

2007-11-05  Behdad Esfahbod  <behdad@gnome.org>

        * tools/gen-script-for-lang-new.c (scripts_for_lang), (main):
        Update to new propsed language enumeration API for fontconfig.

svn path=/trunk/; revision=2492

16 years agoOn Windows store the default aliases file in a string array. (#492517)
Tor Lillqvist [Sat, 3 Nov 2007 03:29:41 +0000 (03:29 +0000)]
On Windows store the default aliases file in a string array. (#492517)

2007-11-02  Tor Lillqvist  <tml@novell.com>

* pango/pango-utils.c (read_builtin_aliases, pango_load_aliases):
On Windows store the default aliases file in a string
array. (#492517)

Compared to the pango.aliases file as distributed with my most
recent Windows builds there are some changes: Add the DejaVu fonts
as the first ones listed for the generic sans, serif and mono font
names. Use Tahoma instead of Arial for sans, and Georgia instead
of Times New Roman for serif (to be used if the DejaVu fonts
aren't present). Add Arial Unicode MS (a font with quite large
coverage that comes with MS Office and thus is often
available). Add Sylfaen (the Armenian and Georgian font bundled
with Windows).

When using the MS-Windows theme the font used by GTK+ will the
system UI one. Both fonts typically used as system fonts, Tahoma
(on XP) and Segoe UI (on Vista), are aliased here.

* pango/pango-utils.c (read_alias_file): Accept also a quoted
string for the left-hand side of an aliases file line. This is to
enable aliasing fonts with spaces in their name, like "Segoe UI"
which is the default system font on Vista. (#492504) (With the
above built-in default aliases lists, no actual pango.aliases file
is longer required on Windows for non-Latin script support,
though.)

svn path=/trunk/; revision=2489

16 years agoImprove vertical docs.
Behdad Esfahbod [Tue, 30 Oct 2007 17:36:51 +0000 (17:36 +0000)]
Improve vertical docs.

2007-10-30  Behdad Esfahbod  <behdad@gnome.org>

        * docs/pango-sections.txt:
        * docs/tmpl/main.sgml:
        * docs/tmpl/vertical.sgml:
        Improve vertical docs.

svn path=/trunk/; revision=2488

16 years ago=== Released 1.19.0 ===
Behdad Esfahbod [Tue, 30 Oct 2007 00:09:03 +0000 (00:09 +0000)]
=== Released 1.19.0 ===

2007-10-29  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.19.0 ===

        * configure.in: Version 1.19.0

        * NEWS: Updated.

svn path=/trunk/; revision=2487

16 years agoFix typo.
Behdad Esfahbod [Mon, 29 Oct 2007 23:51:48 +0000 (23:51 +0000)]
Fix typo.

svn path=/trunk/; revision=2486

16 years agoSort scripts based on frequency.
Behdad Esfahbod [Sun, 28 Oct 2007 13:55:25 +0000 (13:55 +0000)]
Sort scripts based on frequency.

2007-10-28  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-script-lang-table.h:
        * tools/gen-script-for-lang-new.c:
        Sort scripts based on frequency.

        * tools/Makefile.am: Don't build anything by default.

svn path=/trunk/; revision=2485

16 years agoAdds a link to pango_font_description_from_string() so that the font_desc
Murray Cumming [Sat, 27 Oct 2007 10:21:21 +0000 (10:21 +0000)]
Adds a link to pango_font_description_from_string() so that the font_desc

2007-10-26  Murray Cumming  <murrayc@murrayc.com>

        * docs/pango_markup.sgml: Adds a link to
        pango_font_description_from_string() so that the font_desc
        attribute is not so mysterious. Bug #490661.

svn path=/trunk/; revision=2483

16 years agoFunctional dup of gen-script-for-lang that uses FcGetLangs() and
Behdad Esfahbod [Fri, 26 Oct 2007 07:24:21 +0000 (07:24 +0000)]
Functional dup of gen-script-for-lang that uses FcGetLangs() and

2007-10-26  Behdad Esfahbod  <behdad@gnome.org>

        * tools/Makefile.am:
        * tools/gen-script-for-lang-new.c:
        Functional dup of gen-script-for-lang that uses FcGetLangs() and
        FcCharSetForLang() instead of parsing .orth files.

svn path=/trunk/; revision=2482

16 years agoCosmetic
Behdad Esfahbod [Fri, 26 Oct 2007 07:06:06 +0000 (07:06 +0000)]
Cosmetic

svn path=/trunk/; revision=2481

16 years agoUpdate for fontconfig-2.4.91.
Behdad Esfahbod [Fri, 26 Oct 2007 04:21:01 +0000 (04:21 +0000)]
Update for fontconfig-2.4.91.

2007-10-26  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-script-lang-table.h: Update for fontconfig-2.4.91.

svn path=/trunk/; revision=2480

16 years agoCall FcFontSetDestroy() instead of FcFontSetSortDestroy(). These days they
Behdad Esfahbod [Fri, 26 Oct 2007 02:09:51 +0000 (02:09 +0000)]
Call FcFontSetDestroy() instead of FcFontSetSortDestroy(). These days they

2007-10-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns):
        Call FcFontSetDestroy() instead of FcFontSetSortDestroy().
        These days they are the same, but previously the latter was
        not freeing the actual patterns.  But we don't need the
        sort patterns, so this retroactively fixes a leak in older
        versions!

svn path=/trunk/; revision=2479

16 years agoEven more cleanup and more type renames.
Behdad Esfahbod [Thu, 25 Oct 2007 23:37:11 +0000 (23:37 +0000)]
Even more cleanup and more type renames.

2007-10-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/*: Even more cleanup and more type renames.

svn path=/trunk/; revision=2478

16 years agoMore cleanup, remove redundant error types.
Behdad Esfahbod [Thu, 25 Oct 2007 23:22:17 +0000 (23:22 +0000)]
More cleanup, remove redundant error types.

2007-10-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/*: More cleanup, remove redundant error types.

svn path=/trunk/; revision=2477

16 years agoRename ftglue.c to harfbuzz-impl.c and more type renames and moving code
Behdad Esfahbod [Thu, 25 Oct 2007 00:23:46 +0000 (00:23 +0000)]
Rename ftglue.c to harfbuzz-impl.c and more type renames and moving code

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

        * pango/opentype/*: Rename ftglue.c to harfbuzz-impl.c and more
        type renames and moving code around.

svn path=/trunk/; revision=2476

16 years agoNew header file harfbuzz-global.h. Rename FT_* int types to HB_* types.
Behdad Esfahbod [Wed, 24 Oct 2007 22:44:47 +0000 (22:44 +0000)]
New header file harfbuzz-global.h. Rename FT_* int types to HB_* types.

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

        * pango/opentype/*: New header file harfbuzz-global.h.  Rename
        FT_* int types to HB_* types.

svn path=/trunk/; revision=2475

16 years agoAdd commented-out dummy struct for Extension lookups.
Behdad Esfahbod [Wed, 24 Oct 2007 21:35:03 +0000 (21:35 +0000)]
Add commented-out dummy struct for Extension lookups.

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

        * pango/opentype/harfbuzz-gpos-private.h:
        * pango/opentype/harfbuzz-gsub-private.h:
        Add commented-out dummy struct for Extension lookups.

svn path=/trunk/; revision=2474

16 years agoBug 478865 – Drastically reduce number of PangoFont objects created for
Behdad Esfahbod [Wed, 24 Oct 2007 20:57:16 +0000 (20:57 +0000)]
Bug 478865 – Drastically reduce number of PangoFont objects created for

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

        Bug 478865 – Drastically reduce number of PangoFont objects created
        for rotating text

        * pango/pangofc-fontmap.c (fontset_hash_key_hash),
        (get_scaled_size), (pango_fc_font_map_get_patterns):
        Use a Pango-unit int for scaled-size instead of double.
        Merges even more queries...

svn path=/trunk/; revision=2473

16 years agoBug 478865 – Drastically reduce number of PangoFont objects created for
Behdad Esfahbod [Wed, 24 Oct 2007 20:14:54 +0000 (20:14 +0000)]
Bug 478865 – Drastically reduce number of PangoFont objects created for

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

        Bug 478865 – Drastically reduce number of PangoFont objects created
        for rotating text

        * pango/pangofc-fontmap.c (fontset_hash_key_equal),
        (fontset_hash_key_hash), (fontset_hash_key_copy),
        (get_scaled_size), (pango_fc_font_map_get_patterns):
        Only keep scaled-size in fontset hash, instead of unscaled-size
        and context matrix.

svn path=/trunk/; revision=2472

16 years agoBug 471568 – Optimizations in _pango_cairo_update_context()
Behdad Esfahbod [Wed, 24 Oct 2007 19:31:42 +0000 (19:31 +0000)]
Bug 471568 – Optimizations in _pango_cairo_update_context()

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

        Bug 471568 – Optimizations in _pango_cairo_update_context()

        * pango/pangocairo-context.c (_pango_cairo_update_context):
        Skip change notification about matrix changes if merged font
        options for the context set metrics hinting to off.

svn path=/trunk/; revision=2471

16 years agoBug 489909 – pango_cairo_update_context() should ignore matrix
Behdad Esfahbod [Wed, 24 Oct 2007 19:22:29 +0000 (19:22 +0000)]
Bug 489909 – pango_cairo_update_context() should ignore matrix

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

        Bug 489909 – pango_cairo_update_context() should ignore matrix
        translation

        * pango/pangocairo-context.c (_pango_cairo_update_context):
        Just compare the first four doubles of matrices for change
        notification purposes.

svn path=/trunk/; revision=2470

16 years agoBug 486951 – ChangeLog.pre-1-18
Behdad Esfahbod [Wed, 24 Oct 2007 19:13:32 +0000 (19:13 +0000)]
Bug 486951 – ChangeLog.pre-1-18

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

        Bug 486951 – ChangeLog.pre-1-18

        * Makefile.am:
        * ChangeLog.pre-1-18:
        Split ChangeLog.

svn path=/trunk/; revision=2467

16 years agoFix another Oops of mine from recent commits.
Behdad Esfahbod [Wed, 24 Oct 2007 07:18:39 +0000 (07:18 +0000)]
Fix another Oops of mine from recent commits.

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

        * pango/glyphstring.c (pango_glyph_string_copy),
        (pango_glyph_string_free):
        Fix another Oops of mine from recent commits.

svn path=/trunk/; revision=2466

16 years agoBug 472924 – Mark some classes abstract
Behdad Esfahbod [Wed, 24 Oct 2007 07:14:22 +0000 (07:14 +0000)]
Bug 472924 – Mark some classes abstract

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

        Bug 472924 – Mark some classes abstract

        * pango/fonts.c:
        * pango/pango-fontmap.c:
        * pango/pangofc-font.c:
        * pango/pangofc-fontmap.c:
        Public API chance:
        Mark the following types as abstract:

                PangoFont
                PangoFontFace
                PangoFontFamily
                PangoFontMap
                PangoFcFont
                PangoFcFontMap

svn path=/trunk/; revision=2465

16 years agoBug 472303 – Make PANGO_GLYPH_EMPTY and PANGO_GLYPH_UNKNOWN_FLAG public
Behdad Esfahbod [Wed, 24 Oct 2007 07:07:16 +0000 (07:07 +0000)]
Bug 472303 – Make PANGO_GLYPH_EMPTY and PANGO_GLYPH_UNKNOWN_FLAG public

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

        Bug 472303 – Make PANGO_GLYPH_EMPTY and PANGO_GLYPH_UNKNOWN_FLAG public

        * pango/pango-font.h: Make PANGO_GLYPH_EMPTY,
        * PANGO_GLYPH_UNKNOWN_FLAG,
        and PANGO_GET_UNKNOWN_GLYPH() public.  Previously they were only
        defined for backend/engine implementations.

svn path=/trunk/; revision=2464

16 years agoFix changelog
Behdad Esfahbod [Wed, 24 Oct 2007 07:05:03 +0000 (07:05 +0000)]
Fix changelog

svn path=/trunk/; revision=2463

16 years agoFix doc
Behdad Esfahbod [Wed, 24 Oct 2007 07:03:56 +0000 (07:03 +0000)]
Fix doc

svn path=/trunk/; revision=2462

16 years agoBug 471601 – Pass pango version information to fontconfig
Behdad Esfahbod [Wed, 24 Oct 2007 07:02:51 +0000 (07:02 +0000)]
Bug 471601 – Pass pango version information to fontconfig

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

        Bug 471601 – Pass pango version information to fontconfig

        * pango/pangofc-fontmap.h:
        New public API:

                PANGO_FC_GRAVITY
                PANGO_FC_VERSION

        * pango/pangofc-fontmap.c (pango_fc_make_pattern):
        Set PANGO_FC_VERSION in pattern.

        * docs/pango-sections.txt:
        * docs/tmpl/pangofc-fontmap.sgml:
        Update.

svn path=/trunk/; revision=2461

16 years agoBug 472629 – Add pango_renderer_get_layout(_line)
Behdad Esfahbod [Wed, 24 Oct 2007 06:37:13 +0000 (06:37 +0000)]
Bug 472629 – Add pango_renderer_get_layout(_line)

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

        Bug 472629 – Add pango_renderer_get_layout(_line)

        * pango/pango-renderer.h:
        * pango/pango-renderer.c:
        New public API:

                pango_renderer_get_layout()
                pango_renderer_get_layout_line()

        * pango/pangocairo-render.c (pango_cairo_renderer_draw_shape),
        (release_renderer), (_pango_cairo_do_layout_line),
        (_pango_cairo_do_layout): Use above API to simplify
        shape_renderer implementation.

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

svn path=/trunk/; revision=2460

16 years agoFix couple Oopses from my last commit.
Behdad Esfahbod [Wed, 24 Oct 2007 06:34:39 +0000 (06:34 +0000)]
Fix couple Oopses from my last commit.

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

        * pango/pango-attributes.c: Fix couple Oopses from my last
        commit.

svn path=/trunk/; revision=2459

16 years agoBug 469641 – Initialize attribute start/end to [0..MAXUINT]
Behdad Esfahbod [Wed, 24 Oct 2007 05:43:57 +0000 (05:43 +0000)]
Bug 469641 – Initialize attribute start/end to [0..MAXUINT]

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

        Bug 469641 – Initialize attribute start/end to [0..MAXUINT]

        * pango/pango-attributes.h:
        * pango/pango-attributes.c:
        New public API:

                pango_attribute_init()

        * pango/pango-attributes.c:
        (pango_attr_string_new), (pango_attr_language_new),
        (pango_attr_color_new), (pango_attr_int_new),
        (pango_attr_float_new), (pango_attr_size_new_internal),
        (pango_attr_font_desc_new), (pango_attr_shape_new_with_data):
        Initialize attributes using pango_attribute_init().

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

svn path=/trunk/; revision=2458

16 years agoBug 471577 – GBoxed GType for PangoGlyphItem
Behdad Esfahbod [Wed, 24 Oct 2007 04:50:09 +0000 (04:50 +0000)]
Bug 471577 – GBoxed GType for PangoGlyphItem

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

        Bug 471577 – GBoxed GType for PangoGlyphItem

        * pango/pango-glyph-item.h:
        * pango/pango-glyph-item.c:
        New public API:

                PANGO_TYPE_GLYPH_ITEM
                pango_glyph_item_copy()
                pango_glyph_item_get_type()

        * pango/pango-layout.c:
        New public API:

                pango_layout_iter_copy()

        * pango/fonts.c (pango_font_description_copy),
        (pango_font_description_copy_static),
        (pango_font_description_free), (pango_font_descriptions_free),
        (pango_font_metrics_ref), (pango_font_metrics_unref):
        * pango/glyphstring.c (pango_glyph_string_copy),
        (pango_glyph_string_free):
        * pango/pango-attributes.c (pango_attr_list_ref),
        (pango_attr_list_unref), (pango_attr_list_copy):
        * pango/pango-color.c (pango_color_copy), (pango_color_free):
        * pango/pango-item.c (pango_item_copy), (pango_item_free):
        * pango/pango-layout.c (pango_layout_line_ref),
        (pango_layout_line_unref), (pango_layout_iter_copy),
        (pango_layout_iter_free):
        * pango/pango-layout.h:
        * pango/pango-matrix.c (pango_matrix_copy), (pango_matrix_free):
        Update all copy/free functions to accept NULL as legitimate input.
        Previously all were g_return_[val_]if_fail()ing it.

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

svn path=/trunk/; revision=2457

16 years agoBug 471571 – Add pango_layout_iter_get_layout()
Behdad Esfahbod [Mon, 22 Oct 2007 22:13:53 +0000 (22:13 +0000)]
Bug 471571 – Add pango_layout_iter_get_layout()

2007-10-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 471571 – Add pango_layout_iter_get_layout()

        * docs/pango-sections.txt:
        * docs/tmpl/layout.sgml:
        * pango/pango-layout.c (pango_layout_iter_get_layout):
        * pango/pango-layout.h:
        * pango/pango.def:
        Add trivial yet missing pango_layout_iter_get_layout().

svn path=/trunk/; revision=2456

16 years agoRemove obsolete comment. PangoLayoutRun is not deprecated. It's just same
Behdad Esfahbod [Mon, 22 Oct 2007 20:50:20 +0000 (20:50 +0000)]
Remove obsolete comment. PangoLayoutRun is not deprecated. It's just same

2007-10-22  Behdad Esfahbod  <behdad@gnome.org>

        * docs/tmpl/layout.sgml: Remove obsolete comment. PangoLayoutRun
        is not deprecated.  It's just same type as PangoGlyphItem.

svn path=/trunk/; revision=2455

16 years agoRemove obsolete comment. PangoLayoutRun is not deprecated. It's just same
Behdad Esfahbod [Mon, 22 Oct 2007 01:53:19 +0000 (01:53 +0000)]
Remove obsolete comment. PangoLayoutRun is not deprecated. It's just same

2007-10-21  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-layout.h: Remove obsolete comment. PangoLayoutRun is
        not deprecated.  It's just same type as PangoGlyphItem.

svn path=/trunk/; revision=2454

16 years agoBug 488840 – harfbuzz: protect against ligid overflow
Behdad Esfahbod [Sun, 21 Oct 2007 18:17:02 +0000 (18:17 +0000)]
Bug 488840 – harfbuzz: protect against ligid overflow

2007-10-21  Behdad Esfahbod  <behdad@gnome.org>

        Bug 488840 – harfbuzz: protect against ligid overflow

        * pango/opentype/harfbuzz-buffer.c (_hb_buffer_allocate_ligid):
        Never return zero, even in case of overflow.

        * pango/opentype/harfbuzz-impl.h: Define dummy HB_LIKELY() and
        HB_UNLIKELY(), to be filled later.

svn path=/trunk/; revision=2453

16 years agoFixed my email adress in the comment.
Dov Grobgeld [Sat, 20 Oct 2007 23:15:49 +0000 (23:15 +0000)]
Fixed my email adress in the comment.

svn path=/trunk/; revision=2452

16 years agoImplement bezier curve length function that flattens the curve and sum the
Behdad Esfahbod [Sat, 20 Oct 2007 07:51:02 +0000 (07:51 +0000)]
Implement bezier curve length function that flattens the curve and sum the

2007-10-20  Behdad Esfahbod  <behdad@gnome.org>

        * examples/cairotwisted.c (curve_length): Implement bezier curve
        length function that flattens the curve and sum the length of straight
        lines approximating it.

svn path=/trunk/; revision=2451

16 years agoBug 483600 – Leak of font family name in PANGO_1_18_3
Behdad Esfahbod [Mon, 15 Oct 2007 20:09:35 +0000 (20:09 +0000)]
Bug 483600 – Leak of font family name in

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

        Bug 483600 – Leak of font family name in
        pango_win32_font_description_from_logfont(w)
        Patch from Daniel Atallah

        * pango/pangowin32-fontmap.c
        (pango_win32_font_description_from_logfont),
        (pango_win32_font_description_from_logfontw):
        Free family.

svn path=/trunk/; revision=2446

16 years agoBug 486932 – Apply vkrn GPOS feature in vertical writing
Behdad Esfahbod [Mon, 15 Oct 2007 19:30:02 +0000 (19:30 +0000)]
Bug 486932 – Apply vkrn GPOS feature in vertical writing

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

        Bug 486932 – Apply vkrn GPOS feature in vertical writing

        * modules/basic/basic-fc.c (basic_engine_shape): Apply vkrn
        GPOS feature in vertical writing mode.  Previously we had
        no GPOS feature for vertical mode.

svn path=/trunk/; revision=2445

16 years agoBug 481537 – compiler warning fixes Patch from Kjartan Maraas
Behdad Esfahbod [Mon, 15 Oct 2007 17:48:20 +0000 (17:48 +0000)]
Bug 481537 – compiler warning fixes Patch from Kjartan Maraas

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

        Bug 481537 – compiler warning fixes
        Patch from Kjartan Maraas

        * pango/break.c (pango_get_log_attrs):
        * pango/pango-attributes.c (pango_attr_list_insert_internal):
        * pango/pango-layout.c (process_item), (justify_clusters):
        * pango/pango-markup.c (span_parse_boolean):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
        (pango_ot_ruleset_new):
        * pango/pango-utils.c (pango_scan_int):
        * pango/pangocairo-font.c (_pango_cairo_font_install):
        * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
        * pango/pangoft2.c (load_fallback_face):
        * pango/pangox-fontmap.c (pango_x_get_coverage_win):
        * pango/pangox.c (itemize_string_foreach):
        Fix warnings.

svn path=/trunk/; revision=2444

16 years agoBug 485566 – Cache one OpenType Buffer
Behdad Esfahbod [Thu, 11 Oct 2007 17:21:31 +0000 (17:21 +0000)]
Bug 485566 – Cache one OpenType Buffer

2007-10-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 485566 – Cache one OpenType Buffer

        * pango/pango-ot-buffer.c (acquire_buffer), (release_buffer),
        (pango_ot_buffer_new), (pango_ot_buffer_destroy):
        * pango/pango-ot-private.h:
        Cache one HB_Buffer that is acquired using a lock.  A new one is
        created if the shared buffer is locked.  The shared buffer is
        cleared when released.  May want to make it free shared buffer if
        buffer->allocated is too large.  Not sure.

svn path=/trunk/; revision=2443

16 years agoMark internal symbols as HB_INTERNAL and define that to static in
Behdad Esfahbod [Thu, 11 Oct 2007 08:30:50 +0000 (08:30 +0000)]
Mark internal symbols as HB_INTERNAL and define that to static in

2007-10-11  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/*: Mark internal symbols as HB_INTERNAL and
        define that to static in harfbuzz.c.

        * pango/opentype/harfbuzz-buffer-internal.h: New file.

svn path=/trunk/; revision=2442

16 years agoRemove FTGLUE_API/APIDEF cruft.
Behdad Esfahbod [Thu, 11 Oct 2007 07:46:33 +0000 (07:46 +0000)]
Remove FTGLUE_API/APIDEF cruft.

2007-10-11  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/ftglue.[ch]: Remove FTGLUE_API/APIDEF cruft.

svn path=/trunk/; revision=2441