platform/upstream/pango.git
18 years ago[ChangeLog entry did not pass through on original commit]
Hans Breuer [Fri, 18 Aug 2006 16:48:50 +0000 (16:48 +0000)]
[ChangeLog entry did not pass through on original commit]
2006-08-17  Hans Breuer  <hans@breuer.org>

* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).

18 years agoPart of Bug 348825 – pango should optimize away calls to FcFontSort as
Behdad Esfahbod [Thu, 17 Aug 2006 18:26:25 +0000 (18:26 +0000)]
Part of Bug 348825 – pango should optimize away calls to FcFontSort as

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

        Part of Bug 348825 – pango should optimize away calls to FcFontSort as
        much as possible

        * pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.

18 years agoDrop @WIN32_LIBS@, no need to search -lgdi32 when linking apps that link
Tor Lillqvist [Thu, 17 Aug 2006 12:33:38 +0000 (12:33 +0000)]
Drop @WIN32_LIBS@, no need to search -lgdi32 when linking apps that link

2006-08-17  Tor Lillqvist  <tml@novell.com>

* pangowin32.pc.in: Drop @WIN32_LIBS@, no need to search -lgdi32
when linking apps that link with libcairowin32.

* pango/pango.def: Add two symbols.

18 years agoupdated error C2059: syntax error : '}' Intializing a struct with empty
Hans Breuer [Thu, 17 Aug 2006 05:33:34 +0000 (05:33 +0000)]
updated error C2059: syntax error : '}' Intializing a struct with empty

2006-08-17  Hans Breuer  <hans@breuer.org>

* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).

18 years agoBug 351585 – API documentation issues with 2.15 release
Behdad Esfahbod [Wed, 16 Aug 2006 22:57:15 +0000 (22:57 +0000)]
Bug 351585 – API documentation issues with 2.15 release

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

        Bug 351585 – API documentation issues with 2.15 release

        * pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
        tag to docs.

18 years agoAdjust line resolved_dir according to context base_gravity, like we do in
Behdad Esfahbod [Wed, 16 Aug 2006 07:57:51 +0000 (07:57 +0000)]
Adjust line resolved_dir according to context base_gravity, like we do in

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

        * pango/pango-layout.c (line_set_resolved_dir): Adjust line
        resolved_dir according to context base_gravity, like we do
        in itemize_state_add_character().

18 years agoMinor adjustment.
Behdad Esfahbod [Wed, 16 Aug 2006 07:28:30 +0000 (07:28 +0000)]
Minor adjustment.

18 years agoRender block progression and line direction arrows, and a base gravity
Behdad Esfahbod [Wed, 16 Aug 2006 07:23:08 +0000 (07:23 +0000)]
Render block progression and line direction arrows, and a base gravity

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

        * examples/viewer-pangocairo.c (render_callback): Render block
        progression and line direction arrows, and a base gravity roof-top.

        * pango/pango-matrix.c (pango_matrix_to_gravity): New function.

        * pango/pango-utils.c (pango_gravity_to_rotation): New function.

        * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use
        pango_gravity_to_rotation().

        * pango/pango-utils.h:
        * pango/pango-types.h:
        Reorder a bit.

        * examples/Makefile.am:
        * examples/test-chinese.txt: New test text for Chinese.

        * pango/check.defs: New script that checks that all the exported
        symbols are listed in the respective .def file. (only checks the
        libraries actually built.  No win32 for example.)

        * pango/Makefile.am: Hook check.defs as a 'make check' test.

        * pango/pango.def:
        * pango/pangoft2.def:
        * pango/pangocairo.def:
        Update.

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

18 years agoRemove redundant positioning block!
Behdad Esfahbod [Wed, 16 Aug 2006 04:45:54 +0000 (04:45 +0000)]
Remove redundant positioning block!

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

        * modules/basic/basic-fc.c (fallback_shape): Remove redundant
        positioning block!

18 years agoAdjust color.
Behdad Esfahbod [Wed, 16 Aug 2006 02:13:50 +0000 (02:13 +0000)]
Adjust color.

18 years agoReturn if none of logical_rect or ink_rect is non-NULL.
Behdad Esfahbod [Wed, 16 Aug 2006 02:01:17 +0000 (02:01 +0000)]
Return if none of logical_rect or ink_rect is non-NULL.

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

        * pango/pango-layout.c (pango_layout_run_get_extents):
        * pango/glyphstring.c (pango_glyph_string_extents_range):
        Return if none of logical_rect or ink_rect is non-NULL.

        * pango/pango-item.h (PangoAnalysis): Add new member centered_baseline
        which if set, makes item rendered such that ascent == descent.

        * pango/pango-context.c (itemize_state_init),
        (itemize_state_add_character):
        * pango/pango-renderer.c (pango_renderer_draw_layout_line):
        Implement centered_baseline.

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics): When
        adjusting ascent/descent for vertical fonts, adjust strikethrough and
        underline position too.

        * docs/tmpl/main.sgml: Document new struct member.

18 years agoUse analysis->gravity to detect vertical fonts, instead of poking into the
Behdad Esfahbod [Tue, 15 Aug 2006 22:55:37 +0000 (22:55 +0000)]
Use analysis->gravity to detect vertical fonts, instead of poking into the

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

        * modules/basic/basic-fc.c (basic_engine_shape): Use analysis->gravity
        to detect vertical fonts, instead of poking into the font_pattern.

18 years agoAlways use fallback shaping for vertical fonts.
Behdad Esfahbod [Tue, 15 Aug 2006 22:23:19 +0000 (22:23 +0000)]
Always use fallback shaping for vertical fonts.

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

        * modules/basic/basic-fc.c (basic_engine_shape): Always use
        fallback shaping for vertical fonts.

        * pango/pango-context.c (get_shaper_and_font): Always use basic
        shaper for vertical items (east/west gravity).

18 years agoRender the header with SOUTH gravity.
Behdad Esfahbod [Tue, 15 Aug 2006 21:10:56 +0000 (21:10 +0000)]
Render the header with SOUTH gravity.

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

        * examples/renderdemo.c (do_output): Render the header with SOUTH
        gravity.

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
        (pango_cairo_fc_font_glyph_extents_cache_init): Center baseline
        for east/west gravity in pango_font_metrics too.

18 years agoRemove excess LRM.
Behdad Esfahbod [Tue, 15 Aug 2006 20:46:10 +0000 (20:46 +0000)]
Remove excess LRM.

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

        * examples/HELLO.utf8: Remove excess LRM.

        * examples/viewer-pangocairo.c (render_callback): Draw baselines in
        border-drawing mode.

        * pango/pango-layout.c (pango_layout_line_get_extents): Make sure
        we set logical_rect.y on empty lines.  Previously empty lines had
        wrong baseline.  The code apparently was written like that
        intentionally, but I cannot find out why.

18 years agoRemove initliazer members for analysis, let compiler zero them all. Fixes
Behdad Esfahbod [Tue, 15 Aug 2006 20:36:00 +0000 (20:36 +0000)]
Remove initliazer members for analysis, let compiler zero them all. Fixes

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

        * pango/break.c (pango_get_log_attrs): Remove initliazer members
        for analysis, let compiler zero them all.  Fixes compile break after
        adding the gravity member inside there.

18 years agoFix handling of WEST and EAST gravity effect on bidi level.
Behdad Esfahbod [Tue, 15 Aug 2006 19:26:40 +0000 (19:26 +0000)]
Fix handling of WEST and EAST gravity effect on bidi level.

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

        * pango/pango-context.c (itemize_state_add_character):
        Fix handling of WEST and EAST gravity effect on bidi level.

        * pango/pangocairo-fcfont.c
        (pango_cairo_fc_font_glyph_extents_cache_init):
        For NORTH gravity (upside down text), swap ascent and descent,
        and for EAST/WEST, center baseline between ascent/descent.

        * pango/shape.c (pango_shape): If glyph width is negative, negate
        it and shift glyph by that amount.  This allows having font matrices
        that essentially move the glyph origin to the right of the glyph to
        still work.

18 years agoMove font_matrix rotation into font_new as we use only rotation and no
Behdad Esfahbod [Tue, 15 Aug 2006 18:57:25 +0000 (18:57 +0000)]
Move font_matrix rotation into font_new as we use only rotation and no

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

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
        (_pango_cairo_fc_font_new): Move font_matrix rotation into font_new
        as we use only rotation and no translation anymore.

18 years agoOops. Exchange west<->east and north<->south gravities. The gravity is the
Behdad Esfahbod [Tue, 15 Aug 2006 13:03:04 +0000 (13:03 +0000)]
Oops. Exchange west<->east and north<->south gravities. The gravity is the

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

        * docs/pango-sections.txt:
        * docs/tmpl/main.sgml:
        * examples/renderdemo.c (parse_gravity), (parse_options):
        * pango/pango-context.c (pango_context_init),
        (pango_context_get_base_gravity), (itemize_state_add_character):
        * pango/pango-types.h:
        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font):
        * pango/pangofc-fontmap.c (pango_fc_make_pattern):
        Oops.  Exchange west<->east and north<->south gravities.  The gravity
        is the side that the glyph sits on.  So, for normal Latin text for
        example, gravity is south, not north.

18 years agoSupport --gravity.
Behdad Esfahbod [Tue, 15 Aug 2006 11:51:37 +0000 (11:51 +0000)]
Support --gravity.

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

        * examples/renderdemo.c (do_output), (parse_gravity),
        (parse_options): Support --gravity.

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
        (compute_glyph_extents), (_pango_cairo_fc_font_new): Load rotated
        scaled_fonts to handle gravity.

        * pango/pangofc-fontmap.c (pango_fc_make_pattern),
        (pango_fc_font_map_get_patterns), (pango_fc_font_map_load_fontset):
        Set FC_VERTICAL_LAYOUT on West and East gravity.

18 years agoAdd FIXME note about handling item gravity.
Behdad Esfahbod [Tue, 15 Aug 2006 07:24:48 +0000 (07:24 +0000)]
Add FIXME note about handling item gravity.

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

        * pango/pango-context.c (itemize_state_process_run):
        Add FIXME note about handling item gravity.

        * pango/pangofc-fontmap.c (fontset_hash_key_equal),
        (fontset_hash_key_hash), (fontset_hash_key_copy),
        (pango_fc_font_map_get_patterns): Add gravity into the hask key.

18 years agoAdd a gravity member to PangoItem, and
Behdad Esfahbod [Tue, 15 Aug 2006 06:38:12 +0000 (06:38 +0000)]
Add a gravity member to PangoItem, and

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

        * pango/pango-item.h: Add a gravity member to PangoItem, and

        * pango/pango-context.c (itemize_state_init),
        (itemize_state_add_character): Propagate context base_gravity
        into items.

18 years agoAdd enum PangoGravity.
Behdad Esfahbod [Tue, 15 Aug 2006 05:52:24 +0000 (05:52 +0000)]
Add enum PangoGravity.

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

        * pango/pango-types.h: Add enum PangoGravity.

        * pango/pango-context.h:
        * pango/pango-context.c (pango_context_set_base_gravity),
        (pango_context_get_base_gravity): New functions.

        * pango/pango.def:
        * docs/pango-sections.txt: Hook new API.

18 years ago=== Released 1.14.0 === PANGO_1_14_0 vertical-branch-point
Behdad Esfahbod [Tue, 8 Aug 2006 22:33:37 +0000 (22:33 +0000)]
=== Released 1.14.0 ===

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

        * === Released 1.14.0 ===

        * configure.in: Version 1.14.0
        * configure.in: Require cairo-1.2.2 for the bugfixes it has

        * NEWS: Updated.

18 years agoDon't ignore all trailing whitespace in input text. Only chop one newline.
Behdad Esfahbod [Tue, 1 Aug 2006 14:50:34 +0000 (14:50 +0000)]
Don't ignore all trailing whitespace in input text. Only chop one newline.

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

        * examples/renderdemo.c (parse_options): Don't ignore all trailing
        whitespace in input text.  Only chop one newline.

        * examples/viewer-main.c (main): setlocale(LC_ALL, "") to get GOption
        work for UTF-8 text on the command line.

18 years ago=== Released 1.13.5 === PANGO_1_13_5
Behdad Esfahbod [Mon, 31 Jul 2006 22:52:00 +0000 (22:52 +0000)]
=== Released 1.13.5 ===

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

        * === Released 1.13.5 ===

        * configure.in: Version 1.13.5

        * NEWS: Updated.

18 years agoBug 121672 – Ra (vattu) not rendered properly in Malayalam Patch from
Behdad Esfahbod [Mon, 31 Jul 2006 22:37:43 +0000 (22:37 +0000)]
Bug 121672 – Ra (vattu) not rendered properly in Malayalam Patch from

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

        Bug 121672 – Ra (vattu) not rendered properly in Malayalam
        Patch from LingNing Zhang

        * modules/indic/indic-ot.c (shiftCharsLeft3), (indic_ot_reorder):
        Reorder combinations of some three chars!

18 years agoBug 335811 – Some conjugates of Malayalam are wrong. Patch from LingNing
Behdad Esfahbod [Mon, 31 Jul 2006 05:17:47 +0000 (05:17 +0000)]
Bug 335811 – Some conjugates of Malayalam are wrong. Patch from LingNing

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

        Bug 335811 – Some conjugates of Malayalam are wrong.
        Patch from LingNing Zhang

        * modules/indic/indic-ot-class-tables.c: Update consonant tags to
        fix conjugates.

18 years agoAdd Cuneiform and Phoenician in the list of supported scripts by this
Behdad Esfahbod [Tue, 25 Jul 2006 08:11:11 +0000 (08:11 +0000)]
Add Cuneiform and Phoenician in the list of supported scripts by this

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

        * modules/basic/basic-fc.c: Add Cuneiform and Phoenician in the list
        of supported scripts by this backend.  Phoenician is a simple RTL
        script.

        * pango/pango-script.c (pango_script_get_sample_language): Add
        language code "nqo" for script N'Ko.

18 years ago=== Released 1.13.4 === PANGO_1_13_4
Behdad Esfahbod [Tue, 25 Jul 2006 02:25:15 +0000 (02:25 +0000)]
=== Released 1.13.4 ===

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

        * === Released 1.13.4 ===

        * configure.in: Version 1.13.4

        * NEWS: Updated.

18 years agoMinor doc improvement.
Behdad Esfahbod [Tue, 25 Jul 2006 02:10:56 +0000 (02:10 +0000)]
Minor doc improvement.

18 years agoUpdate to UCD 5.0.0.
Behdad Esfahbod [Tue, 25 Jul 2006 02:08:48 +0000 (02:08 +0000)]
Update to UCD 5.0.0.

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

        * pango/mini-fribidi/fribidi_tab_char_type_2.i: Update to UCD 5.0.0.

        * pango/mini-fribidi/README: Note the about update.

        * pango/pango-script.h: Add new values for PangoScript.

        * pango/pango-script.c (pango_script_for_unichar_bsearch): Default
        to PANGO_SCRIPT_UNKNOWN.

        * pango/pango-script.c (pango_script_get_sample_language): Add empty
        entries for new script values.

        * tools/gen-script-table.pl: Default to PANGO_SCRIPT_UNKNOWN as is
        now the default value of Scripts.txt in UCD 5.0.0.

        * pango/pango-script-table.h: Regenerated against UCD 5.0.0.

        * docs/tmpl/scripts.sgml: Document new script types.

        * tools/gen-script-for-lang.c (scripts_for_line): Ignore data at the
        end of lines as many .orth files in fontconfig now list the character
        name there.

        * pango/pango-script-lang-table.h: Regenerate against newer
        fontconfig 2.3.9x.

18 years agoBug 347073 – Allow empty GPOS table
Behdad Esfahbod [Tue, 25 Jul 2006 01:02:27 +0000 (01:02 +0000)]
Bug 347073 – Allow empty GPOS table

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

        Bug 347073 – Allow empty GPOS table

        * pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't
        err on empty GPOS/GSUB tables.

18 years agoImprove docs.
Behdad Esfahbod [Wed, 19 Jul 2006 22:58:35 +0000 (22:58 +0000)]
Improve docs.

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

        * pango/pango-layout.c (pango_layout_get_extents): Improve docs.

18 years agoBug 347021 – atsui crash when a matching font cannot be found. Patch
Richard Hult [Mon, 17 Jul 2006 13:19:25 +0000 (13:19 +0000)]
Bug 347021 – atsui crash when a matching font cannot be found. Patch

2006-07-17  Richard Hult  <richard@imendio.com>

Bug 347021 – atsui crash when a matching font cannot be found.
Patch from Brian Tarricone.

* pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font):
Bail out if best desc or best face isn't found.

18 years ago=== Released 1.13.3 === PANGO_1_13_3
Behdad Esfahbod [Mon, 10 Jul 2006 22:52:45 +0000 (22:52 +0000)]
=== Released 1.13.3 ===

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

        * === Released 1.13.3 ===

        * configure.in: Version 1.13.3

        * NEWS: Updated.

18 years agoBug 330603 – pango_scan_int invokes undefined behaviour
Behdad Esfahbod [Mon, 10 Jul 2006 21:22:21 +0000 (21:22 +0000)]
Bug 330603 – pango_scan_int invokes undefined behaviour

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

        Bug 330603 – pango_scan_int invokes undefined behaviour

        * pango/pango-utils.c (pango_scan_int): Use strtol.

18 years agoBug 315599 – PangoAttribute remains in wrong context.
Behdad Esfahbod [Mon, 10 Jul 2006 20:23:41 +0000 (20:23 +0000)]
Bug 315599 – PangoAttribute remains in wrong context.

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

        Bug 315599 – PangoAttribute remains in wrong context.

        * pango/pangocairo-render.c (_pango_cairo_do_glyph_string): Rever my
        commit that removed Owen's fix from last year!

18 years agoBug 163677 – pango_attr_list_splice: inconsistent docs Patch from Morten
Behdad Esfahbod [Mon, 10 Jul 2006 19:41:53 +0000 (19:41 +0000)]
Bug 163677 – pango_attr_list_splice: inconsistent docs Patch from Morten

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

        Bug 163677 – pango_attr_list_splice: inconsistent docs
        Patch from Morten Welinder

        * pango/pango-attributes.c (pango_attr_list_splice): Improve docs.

18 years agoBug 345070 – [ml_IN] not render for combination with ZWJ Patch from
Behdad Esfahbod [Mon, 10 Jul 2006 17:02:11 +0000 (17:02 +0000)]
Bug 345070 – [ml_IN] not render for combination with ZWJ Patch from

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

        Bug 345070 – [ml_IN] not render for combination with ZWJ
        Patch from LingNing Zhang

        * modules/indic/indic-ot-class-tables.c: Process ZWJ for Malayalam.

18 years agoBug 345274 – list of new symbols for each version is missing in docs
Behdad Esfahbod [Sun, 9 Jul 2006 00:48:28 +0000 (00:48 +0000)]
Bug 345274 – list of new symbols for each version is missing in docs

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

        Bug 345274 – list of new symbols for each version is missing in docs
        Patch from Priit Laes

        * docs/pango-docs.sgml: Generate index of deprecated, and new symbols
        per version.

18 years agoBug 346297 – autogen doesn't work with automake-1.6 Patch from Priit
Behdad Esfahbod [Sat, 8 Jul 2006 23:01:58 +0000 (23:01 +0000)]
Bug 346297 – autogen doesn't work with automake-1.6 Patch from Priit

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

        Bug 346297 – autogen doesn't work with automake-1.6
        Patch from Priit Laes

        * autogen.sh, configure.in: Require automake 1.7.

18 years agoFix silly error in implementation of pango_glyph_string_get_width(), and
Behdad Esfahbod [Sat, 8 Jul 2006 22:15:32 +0000 (22:15 +0000)]
Fix silly error in implementation of pango_glyph_string_get_width(), and

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

        * pango/glyphstring.c (pango_glyph_string_get_width):
        * pango/pango-glyph.h:
        * pango/pango-layout.c (pango_layout_line_index_to_x),
        (pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges):
        * pango/pango-renderer.c (pango_renderer_draw_layout_line):  Fix silly
        error in implementation of pango_glyph_string_get_width(), and also
        remove unused font parameter from its signature.

18 years agoRemove obsolete checks for varargs that were preivously used by the
Behdad Esfahbod [Sat, 8 Jul 2006 19:09:53 +0000 (19:09 +0000)]
Remove obsolete checks for varargs that were preivously used by the

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

        * configure.in: Remove obsolete checks for varargs that were
        preivously used by the OpenType code, but are not needed with
        HarfBuzz anymore.

18 years agoFix doc typo.
Behdad Esfahbod [Sat, 8 Jul 2006 18:15:32 +0000 (18:15 +0000)]
Fix doc typo.

18 years agoPart of Bug 135683 – Cache glyphstring extents
Behdad Esfahbod [Sat, 8 Jul 2006 18:00:48 +0000 (18:00 +0000)]
Part of Bug 135683 – Cache glyphstring extents

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

        Part of Bug 135683 – Cache glyphstring extents

        * pango/pango-layout.c (pango_layout_line_index_to_x),
        (pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges):
        Use pango_glyph_string_get_width in most places in PangoLayout.

18 years agoPart of Bug 135683 – Cache glyphstring extents
Behdad Esfahbod [Sat, 8 Jul 2006 17:29:54 +0000 (17:29 +0000)]
Part of Bug 135683 – Cache glyphstring extents

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

        Part of Bug 135683 – Cache glyphstring extents

        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        * pango/pango.def:
        * pango/pango-glyph.h:
        * pango/glyphstring.c (pango_glyph_string_get_width): New function.
        Much faster than calling pango_glyph_string_extents and using
        logical_rect.width.

        * pango/pango-renderer.c (add_underline), (add_strikethrough),
        (pango_renderer_draw_layout_line): Use the new function for
        optimization.

18 years agoBug 344766 – Memory leak in get_ruleset() in modules/basic/basic-fc.c
Behdad Esfahbod [Fri, 7 Jul 2006 17:48:16 +0000 (17:48 +0000)]
Bug 344766 – Memory leak in get_ruleset() in modules/basic/basic-fc.c

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

        Bug 344766 – Memory leak in get_ruleset() in modules/basic/basic-fc.c

        * pango/pango-ot-private.h: Rename PANGO_OT_IS_RULESET is
        PANGO_IS_OT_RULESET.

        * pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
        (pango_ot_ruleset_new), (pango_ot_ruleset_add_feature),
        (pango_ot_ruleset_substitute), (pango_ot_ruleset_position):
        Use weak pointers to reference ruleset->info, to avoid circular
        dependency.

18 years agoNew file. Move all pango_matrix_* stuff into a separate file.
Behdad Esfahbod [Fri, 7 Jul 2006 05:01:06 +0000 (05:01 +0000)]
New file. Move all pango_matrix_* stuff into a separate file.

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

        * pango/pango-matrix.c: New file.
        * pango/pango-utils.c: Move all pango_matrix_* stuff into a separate
        file.

18 years agoBug 345600 – cvs build error in pango/opentype/Makefile
Behdad Esfahbod [Thu, 22 Jun 2006 18:09:04 +0000 (18:09 +0000)]
Bug 345600 – cvs build error in pango/opentype/Makefile

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

        Bug 345600 – cvs build error in pango/opentype/Makefile

        * pango/opentype/Makefile.am: Rename variable SOURCES to MAINSOURCES.
        Some automake versions seem to use it or something.

18 years agoBug 345511 – -no-undefined problem with new libtool
Behdad Esfahbod [Wed, 21 Jun 2006 08:27:02 +0000 (08:27 +0000)]
Bug 345511 – -no-undefined problem with new libtool

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

        Bug 345511 – -no-undefined problem with new libtool

        * configure.in: Remove -no-undefined on non-Win32 systems.  That
        doesn't make any sense, and makes latest libtool not create shared
        libraries.

18 years agoJust call gnome-autogen.sh. The old autogen.sh had poor version checking
Behdad Esfahbod [Wed, 21 Jun 2006 07:11:34 +0000 (07:11 +0000)]
Just call gnome-autogen.sh. The old autogen.sh had poor version checking

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

        * autogen.sh: Just call gnome-autogen.sh.  The old autogen.sh had
        poor version checking and was borking with libtool 2.x.

        * Makefile.am:
        * configure.in:
        * pango-zip.sh.in:
        * pango/Makefile.am:
        * pango/pango.rc.in:
        * pango/pangoft2.rc.in:
        * pango/pangowin32.rc.in: Rename LT_* variables such that autoconf
        doesn't err on "possibly undefined macros".

18 years ago=== Released 1.13.2 === PANGO_1_13_2
Behdad Esfahbod [Mon, 12 Jun 2006 19:40:11 +0000 (19:40 +0000)]
=== Released 1.13.2 ===

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

        * === Released 1.13.2 ===

        * configure.in: Version 1.13.2

        * NEWS: Updated.

18 years agoSet matrix on the context we create to load minifont.
Behdad Esfahbod [Wed, 7 Jun 2006 07:37:07 +0000 (07:37 +0000)]
Set matrix on the context we create to load minifont.

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

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
        Set matrix on the context we create to load minifont.

18 years agoBug 326960 – hex box drawing for win32 and atsui backends of cairo
Behdad Esfahbod [Wed, 7 Jun 2006 06:07:59 +0000 (06:07 +0000)]
Bug 326960 – hex box drawing for win32 and atsui backends of cairo

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

        Bug 326960 – hex box drawing for win32 and atsui backends of cairo

        Hans already fixed win32.

        * pango/pangocairo-atsuifont.c (compute_glyph_extents): Handle
        PANGO_GLYPH_UNKNOWN_FLAG.

18 years agoBug 343717 – License information in unclear.
Behdad Esfahbod [Tue, 6 Jun 2006 23:31:17 +0000 (23:31 +0000)]
Bug 343717 – License information in unclear.

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

        Bug 343717 – License information in unclear.

        * modules/arabic/arabic-ot.c, modules/syriac/syriac-ot.c: Fix
        dual-license information and refer to pango/opentype/COPYING.

18 years agoFollowup on previous change.
Behdad Esfahbod [Tue, 6 Jun 2006 21:41:24 +0000 (21:41 +0000)]
Followup on previous change.

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

        Followup on previous change.

        * pango/pango-renderer.c: Note that pango_renderer_draw_rectangle
        and pango_renderer_draw_error_underline should be called with
        active renderer.

        * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs),
        (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
        (_pango_cairo_do_layout): Remove excess cairo_save/restore() calls.

        * pango/pangocairo-render.c (_pango_cairo_do_error_underline): Don't
        go through renderer.

18 years agoRemove the cut&paste reference.
Behdad Esfahbod [Tue, 6 Jun 2006 20:20:57 +0000 (20:20 +0000)]
Remove the cut&paste reference.

18 years agoBug 343355 – Add pango_cairo_show_error_underline &
Behdad Esfahbod [Tue, 6 Jun 2006 20:19:57 +0000 (20:19 +0000)]
Bug 343355 – Add pango_cairo_show_error_underline &

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

        Bug 343355 – Add pango_cairo_show_error_underline &
        pango_cairo_error_underline_path
        Based on patch by LingNing Zhang.

        * docs/pango-sections.txt, docs/tmpl/pangocairo.sgml,
        pango/pangocairo.def, pango/pangocairo.h, pango/pangocairo-render.c:
        New functions pango_cairo_show_error_underline and
        pango_cairo_error_underline_path.

        * pango/pangocairo-render.c (_pango_cairo_do_glyph_string),
        (_pango_cairo_do_layout_line), (_pango_cairo_do_layout),
        (_pango_cairo_do_error_underline), (pango_cairo_show_glyph_string),
        (pango_cairo_show_layout_line), (pango_cairo_show_layout),
        (pango_cairo_show_error_underline),
        (pango_cairo_glyph_string_path), (pango_cairo_layout_line_path),
        (pango_cairo_layout_path), (pango_cairo_error_underline_path): Merge
        similar code for pango_cairo_show_* and pango_cairo_*_path functions.

18 years agoBug 343966 – pango Cygwin build fixes Patch from Cygwin Ports
Behdad Esfahbod [Tue, 6 Jun 2006 18:24:33 +0000 (18:24 +0000)]
Bug 343966 – pango Cygwin build fixes Patch from Cygwin Ports

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

        Bug 343966 – pango Cygwin build fixes
        Patch from Cygwin Ports maintainer.

        * configure.in: Add missing space.
        * tests/Makefile.am: Add $(EXEEXT) where appropriate.

18 years agosynthesize some italic variants for fonts no having them already. This
Hans Breuer [Mon, 5 Jun 2006 20:59:14 +0000 (20:59 +0000)]
synthesize some italic variants for fonts no having them already. This

2006-06-05  Hans Breuer  <hans@breuer.org>

* pango/pangowin32-fontmap.c(pango_win32_font_map_init) : synthesize
some italic variants for fonts no having them already. This fixes
bug #343796 and for the italic case also bug #110521.

18 years agofixed typo in date
Hans Breuer [Mon, 5 Jun 2006 17:34:54 +0000 (17:34 +0000)]
fixed typo in date

18 years agonot only handle PANGO_GLYPH_EMPTY but also PANGO_GLYPH_UNKNOWN_FLAG. The
Hans Breuer [Mon, 5 Jun 2006 16:29:19 +0000 (16:29 +0000)]
not only handle PANGO_GLYPH_EMPTY but also PANGO_GLYPH_UNKNOWN_FLAG. The

2006-05-05  Hans Breuer  <hans@breuer.org>

* pango/pangocairo-win32font.c(compute_glyph_extents) : not only
handle PANGO_GLYPH_EMPTY but also PANGO_GLYPH_UNKNOWN_FLAG.
The latter is needed to have proper sizing of the "hex box" for
missing glyphs. It also stops cairo complaining about unknown glyphs.
Fixes part of bug #343796.

* pango/makefile.msc : create $(PRJ_TOP)\config.h.win32. (Not
changing in years does not necessarily mean it is not used)

* pango/testfonts.c : make family_name survive
pango_font_description_free(), it is used later on

18 years agoDon't g_return if text == NULL and length == 0.
Behdad Esfahbod [Fri, 2 Jun 2006 19:30:31 +0000 (19:30 +0000)]
Don't g_return if text == NULL and length == 0.

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

        * pango/pango-utils.c (pango_find_base_dir): Don't g_return if text ==
        NULL and length == 0.

18 years agoBug 341138 – Using TTC font, Gtk2 programs begin to eating big memory
Behdad Esfahbod [Wed, 31 May 2006 07:42:55 +0000 (07:42 +0000)]
Bug 341138 – Using TTC font, Gtk2 programs begin to eating big memory

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

        Bug 341138 – Using TTC font, Gtk2 programs begin to eating big memory
        and have many cpu usage.
        Patch from Yong Li.

        * pango/opentype/ftglue.c (_hb_ftglue_face_goto_table): TrueType table
        offsets are absolute, not relative.

18 years agoBug 336153 – Mark to mark positioning (Lookup Type 6) isn't correct when
Behdad Esfahbod [Wed, 31 May 2006 07:23:02 +0000 (07:23 +0000)]
Bug 336153 – Mark to mark positioning (Lookup Type 6) isn't correct when

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

        Bug 336153 – Mark to mark positioning (Lookup Type 6) isn't correct
        when using MarkAttchmentType
        Patch from Tin Myo Htet.

        * pango/opentype/harfbuzz-gpos.c (Lookup_MarkMarkPos): Ignore marks
        of non-matchin attachment type.

18 years agoSet absolute_size, since we are using describe_with_absolute_size now...
Behdad Esfahbod [Wed, 31 May 2006 06:13:32 +0000 (06:13 +0000)]
Set absolute_size, since we are using describe_with_absolute_size now...

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

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Set
        absolute_size, since we are using describe_with_absolute_size now...

18 years agoBug 333984 – pango_language_from_string improvements
Behdad Esfahbod [Wed, 31 May 2006 02:47:37 +0000 (02:47 +0000)]
Bug 333984 – pango_language_from_string improvements

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

        Bug 333984 – pango_language_from_string improvements

        * pango/pango-utils.c (lang_equal), (lang_hash),
        (pango_language_from_string): Allow digits in language tags as per
        RFC-3066, and stop on first invalid char.  Previous
        pango_language_from_string ("en_US.UTF-8") was returning "en-usutf-",
        now it returns "en-us".

        * pango/pango-utils.c (pango_language_matches): Allow other common
        separators in the language list (colon, comma, and space).

18 years agoMinor comment typo fix.
Behdad Esfahbod [Wed, 31 May 2006 00:33:22 +0000 (00:33 +0000)]
Minor comment typo fix.

18 years agoMinor.
Behdad Esfahbod [Tue, 30 May 2006 04:53:55 +0000 (04:53 +0000)]
Minor.

18 years agoBug 125378 – Better underline thickness handling
Behdad Esfahbod [Tue, 30 May 2006 04:23:40 +0000 (04:23 +0000)]
Bug 125378 – Better underline thickness handling

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

        Bug 125378 – Better underline thickness handling

        * pango/pango-layout.c (pango_layout_run_get_extents): Include
        underline in ink extents.

18 years agoFix offset to center the underline in requested rectangle.
Behdad Esfahbod [Tue, 30 May 2006 04:17:57 +0000 (04:17 +0000)]
Fix offset to center the underline in requested rectangle.

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

        * pango/pangocairo-render.c (draw_error_underline): Fix offset to
        center the underline in requested rectangle.

        * pango/pangocairo-render.c (pango_cairo_show_glyph_string): Remove
        unncessary renderer activation and cleanup.

18 years agoDoc.
Behdad Esfahbod [Sun, 28 May 2006 18:57:12 +0000 (18:57 +0000)]
Doc.

18 years agoInitialize the describe_absolute method pointer correctly.
Tor Lillqvist [Tue, 23 May 2006 08:10:24 +0000 (08:10 +0000)]
Initialize the describe_absolute method pointer correctly.

2006-05-23  Tor Lillqvist  <tml@novell.com>

* pango/pangowin32.c (pango_win32_font_class_init): Initialize the
describe_absolute method pointer correctly.
(pango_win32_font_describe): Scale size to points which is what
pango_font_description_set_size() wants. There has been several
bugs opened around this issue, with more or less misleading
guesses. See for instance #314114. Thanks to Behdad for finally
noticing the real problem here.

18 years agoBug 342525 – With PangoFc and PangoWin32, approximate digit width is not
Behdad Esfahbod [Mon, 22 May 2006 20:25:54 +0000 (20:25 +0000)]
Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not

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

        Bug 342525 – With PangoFc and PangoWin32, approximate digit width is
        not what it says

        * pango/pangocairo-win32font.c (max_glyph_width),
        (create_metrics_for_context): Use max digit width instead of average.

        Reverted the following changes:

        * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
        Likewise for PangoFc.  Compute average instead of max.
        (max_glpyh_with): Now unused, drop.

        * pango/pangowin32.c (pango_win32_font_get_metrics): Calculate
        average digit width correctly, not as max of the digit
        widths. (#342525) Note that this code doesn't really get much used
        currently (instead the code in pangocairo-win32font.c is used),
        fixed only for completeness.
        (max_glpyh_with): Now unused, drop.

18 years agoNew function pango_font_describe_with_absolute_size().
Behdad Esfahbod [Mon, 22 May 2006 20:10:08 +0000 (20:10 +0000)]
New function pango_font_describe_with_absolute_size().

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

        * pango/pango-font.h, pango/fonts.c: New function
        pango_font_describe_with_absolute_size().

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
        * pango/pangocairo-win32font.c (create_metrics_for_context):
        * pango/pangofc-font.c (pango_fc_font_class_init),
        (pango_fc_font_describe_absolute),
        (pango_fc_font_create_metrics_for_context):
        * pango/pangowin32.c (pango_win32_font_class_init),
        (pango_win32_font_get_metrics), (pango_win32_font_describe),
        (pango_win32_font_describe_absolute): Implement and use
        PangoFontClass->describe_absolute.

18 years agoBug 339730 – Pango needlessly falls back away from a Type 1 font into a
Behdad Esfahbod [Mon, 22 May 2006 19:03:26 +0000 (19:03 +0000)]
Bug 339730 – Pango needlessly falls back away from a Type 1 font into a

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

        Bug 339730 – Pango needlessly falls back away from a Type 1 font into
        a TTF font

        * pango/fonts.c (find_field): Fix strncmp usage.

18 years agoBug 342562 – Support absolute sizes in
Behdad Esfahbod [Mon, 22 May 2006 10:53:52 +0000 (10:53 +0000)]
Bug 342562 – Support absolute sizes in

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

        Bug 342562 – Support absolute sizes in
        pango_font_description_to/from_string

        * pango/fonts.c (parse_size), (pango_font_description_from_string),
        (pango_font_description_to_string): Accept and generate a "px" suffix
        to identify absolute font sizes.

18 years agoBug 341922 – pango should handle more characters as zero width Patch
Behdad Esfahbod [Mon, 22 May 2006 04:33:00 +0000 (04:33 +0000)]
Bug 341922 – pango should handle more characters as zero width Patch

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

        Bug 341922 – pango should handle more characters as zero width
        Patch from Roozbeh Pournader

        * pango/pango-utils.c (pango_is_zero_width): Handle the following too:

                U+00AD  SOFT HYPHEN
                U+034F  COMBINING GRAPHEME JOINER
                U+2060  WORD JOINER
                U+2061  FUNCTION APPLICATION
                U+2062  INVISIBLE TIMES
                U+2063  INVISIBLE SEPARATOR

18 years agoMinor.
Behdad Esfahbod [Mon, 22 May 2006 03:21:11 +0000 (03:21 +0000)]
Minor.

18 years agoBug 342525 – With PangoFc and PangoWin32, approximate digit width is not
Behdad Esfahbod [Mon, 22 May 2006 00:25:20 +0000 (00:25 +0000)]
Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not

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

        Bug 342525 – With PangoFc and PangoWin32, approximate digit width is
        not what it says

        * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
        Likewise for PangoFc.  Compute average instead of max.
        (max_glpyh_with): Now unused, drop.

18 years agoCalculate average digit width correctly, not as max of the digit widths.
Tor Lillqvist [Sun, 21 May 2006 23:37:10 +0000 (23:37 +0000)]
Calculate average digit width correctly, not as max of the digit widths.

2006-05-22  Tor Lillqvist  <tml@novell.com>

* pango/pangowin32.c (pango_win32_font_get_metrics): Calculate
average digit width correctly, not as max of the digit
widths. (#342525) Note that this code doesn't really get much used
currently (instead the code in pangocairo-win32font.c is
used), fixed only for completeness.
(max_glpyh_with): Now unused, drop.

18 years agoRemove unused struct _cairo_font_options.
Behdad Esfahbod [Sun, 21 May 2006 22:55:53 +0000 (22:55 +0000)]
Remove unused struct _cairo_font_options.

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

        * pango/pangocairo-fontmap.c: Remove unused struct
        _cairo_font_options.

18 years agoMinor.
Behdad Esfahbod [Thu, 18 May 2006 09:26:48 +0000 (09:26 +0000)]
Minor.

18 years agoBug 342079 – pangoatsui-private.h missing from release
Behdad Esfahbod [Wed, 17 May 2006 06:13:53 +0000 (06:13 +0000)]
Bug 342079 – pangoatsui-private.h missing from release

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

        Bug 342079 – pangoatsui-private.h missing from release

        * pango/Makefile.am (libpangocairo_1_0_la_SOURCES):
        Include pangoatsui-private.h.

18 years ago=== Released 1.13.1 === PANGO_1_13_1
Behdad Esfahbod [Mon, 15 May 2006 22:30:19 +0000 (22:30 +0000)]
=== Released 1.13.1 ===

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

        * === Released 1.13.1 ===

        * configure.in: Version 1.13.1

        * NEWS: Updated.

18 years agoAdd some bug links.
Behdad Esfahbod [Mon, 15 May 2006 22:21:17 +0000 (22:21 +0000)]
Add some bug links.

18 years agoAdd the necessary frameworks to make this build with -no-undefined.
Richard Hult [Mon, 15 May 2006 17:55:30 +0000 (17:55 +0000)]
Add the necessary frameworks to make this build with -no-undefined.

2006-05-15  Richard Hult  <richard@imendio.com>

        * pango/Makefile.am (libpangocairo_1_0_la_LDFLAGS): Add the necessary
        frameworks to make this build with -no-undefined.

18 years agoDon't copy item before g_return_if_fail'ing it for NULL. (Coverity issue
Behdad Esfahbod [Sat, 13 May 2006 18:51:21 +0000 (18:51 +0000)]
Don't copy item before g_return_if_fail'ing it for NULL. (Coverity issue

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

        * pango/pango-item.c (pango_item_split): Don't copy item before
        g_return_if_fail'ing it for NULL. (Coverity issue id=18509&runid=43)

18 years agoFix possible NULL dereference. (Coverity found)
Behdad Esfahbod [Sat, 13 May 2006 18:46:13 +0000 (18:46 +0000)]
Fix possible NULL dereference. (Coverity found)

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

        * pango/fonts.c (pango_font_face_list_sizes): Fix possible NULL
        dereference. (Coverity found)

18 years agoUpdate docs to note a size value of zero may have been set explicitly.
Behdad Esfahbod [Thu, 11 May 2006 08:22:20 +0000 (08:22 +0000)]
Update docs to note a size value of zero may have been set explicitly.

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

        * pango/fonts.c (pango_font_description_set_size): Update docs to note
        a size value of zero may have been set explicitly.

        * pango/pango-context.c (pango_context_load_font): Don't warn if font
        size if zero.

        * pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font):
        * pango/pangox-fontmap.c (pango_x_font_map_load_font): Don't return if
        size is zero (probably will fail with no fonts found.)

        * pango/pangoxft-fontmap.c (pango_xft_font_map_default_substitute):
        * Xft
        chokes on size zero.  Reassing PIXEL_SIZE to 1.0 if it's zero.

18 years agoBug 340229 – pango_font_description_from_string does not do bound
Behdad Esfahbod [Mon, 1 May 2006 14:45:56 +0000 (14:45 +0000)]
Bug 340229 – pango_font_description_from_string does not do bound

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

        Bug 340229 – pango_font_description_from_string does not do bound
        checking

        * pango/fonts.c (pango_font_description_set_size),
        (pango_font_description_set_absolute_size), (parse_size):
        * pango/pango-markup.c (span_parse_func): Don't accept negative font
        sizes, and make sure sizes don't overflow.

18 years agoRequire cairo >= 1.1.2. Also pass -no-undefined on all systems.
Behdad Esfahbod [Sat, 29 Apr 2006 23:09:12 +0000 (23:09 +0000)]
Require cairo >= 1.1.2. Also pass -no-undefined on all systems.

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

        * configure.in: Require cairo >= 1.1.2.  Also pass -no-undefined on
        * all
        systems.

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Fix
        hexbox info to respect absolute sizes and no metrics hinting settings.

18 years agoBug 329664 – Move gunichar_to_glyph cache from PangoCairoFcFont to
Behdad Esfahbod [Sat, 29 Apr 2006 20:03:17 +0000 (20:03 +0000)]
Bug 329664 – Move gunichar_to_glyph cache from PangoCairoFcFont to

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

        Bug 329664 – Move gunichar_to_glyph cache from PangoCairoFcFont to
        PangoFcFont
        Patch from LingNing Zhang.

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_finalize),
        (pango_cairo_fc_font_glyph_extents_cache_init),
        (pango_cairo_fc_font_get_glyph_extents_cache_entry),
        (pango_cairo_fc_font_class_init), (pango_cairo_fc_font_init):
        * pango/pangofc-font.c (pango_fc_font_finalize),
        (pango_fc_font_real_get_glyph): Move gunichar->glyph cache to
        pangofc-font.c

18 years agoBug 329547 – pango_layout_get_pixel_extents and
Behdad Esfahbod [Sat, 29 Apr 2006 19:41:23 +0000 (19:41 +0000)]
Bug 329547 – pango_layout_get_pixel_extents and

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

        Bug 329547 – pango_layout_get_pixel_extents and
        pango_layout_get_pixel_size cause off-by-one metrics

        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        * pango/pango-types.h: Define PANGO_PIXELS_FLOOR and
        * PANGO_PIXELS_CEIL.

        * pango/pango-layout.c (pango_layout_get_pixel_extents),
        (pango_layout_get_pixel_size): Make sure logical rects are
        consistent and ink rects are inclusive.

18 years agoOops.
Behdad Esfahbod [Sat, 29 Apr 2006 19:03:55 +0000 (19:03 +0000)]
Oops.

18 years agoDoc updates.
Behdad Esfahbod [Sat, 29 Apr 2006 18:58:29 +0000 (18:58 +0000)]
Doc updates.

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

        * docs/tmpl/atsui-fonts.sgml:
        * docs/tmpl/coverage-maps.sgml:
        * docs/tmpl/engines.sgml:
        * docs/tmpl/fonts.sgml:
        * docs/tmpl/freetype-fonts.sgml:
        * docs/tmpl/glyphs.sgml:
        * docs/tmpl/layout.sgml:
        * docs/tmpl/main.sgml:
        * docs/tmpl/modules.sgml:
        * docs/tmpl/opentype.sgml:
        * docs/tmpl/pango-engine-lang.sgml:
        * docs/tmpl/pango-engine-shape.sgml:
        * docs/tmpl/pango-renderer.sgml:
        * docs/tmpl/pangocairo.sgml:
        * docs/tmpl/pangofc-decoder.sgml:
        * docs/tmpl/pangofc-font.sgml:
        * docs/tmpl/pangofc-fontmap.sgml:
        * docs/tmpl/scripts.sgml:
        * docs/tmpl/tab-stops.sgml:
        * docs/tmpl/text-attributes.sgml:
        * docs/tmpl/utils.sgml:
        * docs/tmpl/win32-fonts.sgml:
        * docs/tmpl/x-fonts.sgml:
        * docs/tmpl/xft-fonts.sgml:
        * examples/Makefile.am:
        * pango/modules.c:
        * pango/pango-coverage.c: Doc updates.

18 years agoBug 337594 – pango_glyph_string_extents_range possible bug
Behdad Esfahbod [Sat, 29 Apr 2006 08:10:58 +0000 (08:10 +0000)]
Bug 337594 – pango_glyph_string_extents_range possible bug

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

        Bug 337594 – pango_glyph_string_extents_range possible bug

        * pango/glyphstring.c (pango_glyph_string_extents_range): Add offset
        for first glyph too.

18 years agoBug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 in
Behdad Esfahbod [Sat, 29 Apr 2006 06:43:10 +0000 (06:43 +0000)]
Bug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 in

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

        Bug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 in
        pango-uninstalled.pc.in

        * pango-uninstalled.pc.in: Require gmodule-no-export-2.0, like
        pango.pc.in does.

18 years agoBug 307196 – Unhinted fonts are measured incorrectly and drawing
Behdad Esfahbod [Sat, 29 Apr 2006 05:52:35 +0000 (05:52 +0000)]
Bug 307196 – Unhinted fonts are measured incorrectly and drawing

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

        Bug 307196 – Unhinted fonts are measured incorrectly and drawing
        problems occur as a result

        * pango/pangofc-font.c (get_face_metrics),
        (pango_fc_font_get_raw_extents):
        * pango/pangoxft-font.c (_pango_xft_font_new): Rollback previous
        change that forced metrics hinting always on.

        * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Set fcfont
        metrics hinting based on cairo font options.