platform/upstream/pango.git
17 years agoBug 438814 – synaptic crash with pango 1.17.0
Behdad Esfahbod [Wed, 16 May 2007 12:36:31 +0000 (12:36 +0000)]
Bug 438814 – synaptic crash with pango 1.17.0

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

        Bug 438814 – synaptic crash with pango 1.17.0

        * pango/pango-layout.c (process_item): Make sure we find some break
        point even if overflowing the line.

svn path=/trunk/; revision=2311

17 years agoPort to new OpenType APIs. Add standard features.
Behdad Esfahbod [Wed, 16 May 2007 02:02:26 +0000 (02:02 +0000)]
Port to new OpenType APIs. Add standard features.

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

        * modules/hebrew/hebrew-fc.c (hebrew_engine_shape):
        Port to new OpenType APIs.  Add standard features.

svn path=/trunk/; revision=2310

17 years agoPort to new OpenType APIs and cleanup a bit. Add standard features.
Behdad Esfahbod [Wed, 16 May 2007 01:46:05 +0000 (01:46 +0000)]
Port to new OpenType APIs and cleanup a bit. Add standard features.

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

        * modules/thai/Makefile.am:
        * modules/thai/thai-fc.c (thai_get_font_info), (thai_engine_shape),
        (thai_make_unknown_glyph):
        * modules/thai/thai-shaper.c (get_glyphs_list), (add_cluster),
        (thai_set_glyphs):
        * modules/thai/thai-shaper.h:
        Port to new OpenType APIs and cleanup a bit.  Add standard features.

        * modules/thai/thai-ot.c:
        * modules/thai/thai-ot.h:
        Removed.  Not needed anymore.

svn path=/trunk/; revision=2309

17 years agoAdd bug references
Behdad Esfahbod [Wed, 16 May 2007 01:44:07 +0000 (01:44 +0000)]
Add bug references

svn path=/trunk/; revision=2308

17 years agoPort to new OpenType APIs. Add standard features (ccmp, locl, calt, kern,
Behdad Esfahbod [Wed, 16 May 2007 01:43:28 +0000 (01:43 +0000)]
Port to new OpenType APIs. Add standard features (ccmp, locl, calt, kern,

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

        * modules/khmer/khmer-fc.c (khmer_engine_shape):
        * modules/tibetan/tibetan-fc.c (tibetan_engine_shape):
        Port to new OpenType APIs.  Add standard features (ccmp,
        locl, calt, kern, mark, mkmk).

svn path=/trunk/; revision=2307

17 years agoAdd ccmp, locl, calt; kern, mark, and mkmk features.
Behdad Esfahbod [Wed, 16 May 2007 01:42:03 +0000 (01:42 +0000)]
Add ccmp, locl, calt; kern, mark, and mkmk features.

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

        * modules/indic/indic-fc.c:
        Add ccmp, locl, calt; kern, mark, and mkmk features.

svn path=/trunk/; revision=2306

17 years agoAdd new engine API:
Behdad Esfahbod [Wed, 16 May 2007 01:41:34 +0000 (01:41 +0000)]
Add new engine API:

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

        * pango/pango-ot.h:
        * pango/pango-ot-private.h:
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_add_feature),
        (pango_ot_ruleset_get_feature_count):
        Add new engine API:

                pango_ot_ruleset_get_feature_count()

        * docs/pango-sections.txt:
        * docs/tmpl/opentype.sgml:
        * pango/pangoft2.def:
        Updated.

svn path=/trunk/; revision=2305

17 years agoAdd new engine API:
Behdad Esfahbod [Wed, 16 May 2007 01:39:19 +0000 (01:39 +0000)]
Add new engine API:

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

        * pango/pango-ot.h:
        * pango/pango-ot-private.h:
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_add_feature),
        (pango_ot_ruleset_get_feature_count):
        Add new engine API:

                pango_ot_ruleset_get_feature_count()

        * docs/pango-sections.txt:
        * docs/tmpl/opentype.sgml:
        * pango/pangoft2.def:
        Updated.

svn path=/trunk/; revision=2304

17 years agoMove ruleset creation after populating buffer.
Behdad Esfahbod [Tue, 15 May 2007 23:29:32 +0000 (23:29 +0000)]
Move ruleset creation after populating buffer.

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

        * modules/arabic/arabic-fc.c (arabic_engine_shape):
        * modules/basic/basic-fc.c (basic_engine_shape):
        * modules/syriac/syriac-fc.c (syriac_engine_shape):
        Move ruleset creation after populating buffer.

svn path=/trunk/; revision=2303

17 years agoPort to new OpenType APIs.
Behdad Esfahbod [Tue, 15 May 2007 23:27:08 +0000 (23:27 +0000)]
Port to new OpenType APIs.

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

        * modules/indic/indic-fc.c (indic_engine_shape), (create):
        Port to new OpenType APIs.

svn path=/trunk/; revision=2302

17 years agoBug 436699 – N'Ko support Patch by Eugeniy Meshcheryakov
Behdad Esfahbod [Tue, 15 May 2007 23:09:53 +0000 (23:09 +0000)]
Bug 436699 – N'Ko support Patch by Eugeniy Meshcheryakov

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

        Bug 436699 – N'Ko support
        Patch by Eugeniy Meshcheryakov

        * modules/arabic/arabic-fc.c (create):
        * modules/arabic/arabic-ot.c (Get_Joining_Class):
        Add N'Ko support to the Arabic module.

svn path=/trunk/; revision=2301

17 years agoBug 433805 - [Atsui] Approximate char/digit width width often 0
Richard Hult [Tue, 15 May 2007 20:14:00 +0000 (20:14 +0000)]
Bug 433805 - [Atsui] Approximate char/digit width width often 0

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

Bug 433805 - [Atsui] Approximate char/digit width width often 0

* pango/pangocairo-atsuifont.c:
(pango_cairo_atsui_font_get_metrics): Improve the metrics so it really
is average instead of max glyph width. Also keep the metrics per
language in the font so it's not constantly recreated.
(pango_cairo_atsui_font_describe_absolute): Implement.

* pango/pangocairo-atsuifontmap.c: Set default resolution.

svn path=/trunk/; revision=2300

17 years agoAdd various test txt files recently added.
Behdad Esfahbod [Tue, 15 May 2007 05:11:18 +0000 (05:11 +0000)]
Add various test txt files recently added.

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

        * pango-view/Makefile.am: Add various test txt files recently
        added.

        * pango-view/test-mixed.markup: A language-tagged version of
        test-mixed.txt.

svn path=/trunk/; revision=2299

17 years ago=== Released 1.17.0 === PANGO_1_17_0
Behdad Esfahbod [Mon, 14 May 2007 23:48:00 +0000 (23:48 +0000)]
=== Released 1.17.0 ===

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

        * === Released 1.17.0 ===

        * configure.in: Version 1.17.0

        * NEWS: Updated.

svn path=/trunk/; revision=2297

17 years agoUpdate to api changes
Behdad Esfahbod [Mon, 14 May 2007 23:27:56 +0000 (23:27 +0000)]
Update to api changes

svn path=/trunk/; revision=2296

17 years agoUpdate.
Behdad Esfahbod [Mon, 14 May 2007 23:10:41 +0000 (23:10 +0000)]
Update.

svn path=/trunk/; revision=2295

17 years agoBug 325714 – Pango should respect $LANGUAGE
Behdad Esfahbod [Mon, 14 May 2007 08:51:52 +0000 (08:51 +0000)]
Bug 325714 – Pango should respect $LANGUAGE

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

        Bug 325714 – Pango should respect $LANGUAGE

        * pango/pango-language.c (pango_language_matches),
        (parse_default_languages), (_pango_script_get_default_language),
        (pango_script_get_sample_language):
        Make pango_script_get_sample_language() use the value of env var
        PANGO_LANGUAGE or LANGUAGE (checked in that order) to make better
        guesses.  The env var should be a list of language tags, like "en:fa"
        for example where makes Pango choose Persian (fa) fonts instead of
        Arabic (ar) fonts...

svn path=/trunk/; revision=2294

17 years agoMove pango_script_get_sample_language() from pango-script.c to
Behdad Esfahbod [Mon, 14 May 2007 07:53:07 +0000 (07:53 +0000)]
Move pango_script_get_sample_language() from pango-script.c to

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

        * pango/pango-language.c (pango_script_get_sample_language):
        * pango/pango-script.c: Move pango_script_get_sample_language()
        from pango-script.c to pango-language.c.  Fits better.

svn path=/trunk/; revision=2293

17 years agoPart of Bug 325714 – Pango should respect $LANGUAGE Bug 414264 – Pango
Behdad Esfahbod [Mon, 14 May 2007 07:22:08 +0000 (07:22 +0000)]
Part of Bug 325714 – Pango should respect $LANGUAGE Bug 414264 – Pango

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

        Part of Bug 325714 – Pango should respect $LANGUAGE
        Bug 414264 – Pango vertical writing support is different with real
        CJK usage.

        * modules/arabic/arabic-fc.c (arabic_engine_shape):
        * modules/basic/basic-fc.c (basic_engine_shape):
        * modules/syriac/syriac-fc.c (syriac_engine_shape):
        Remove fallback_shape() paths.  Remove get_ruleset().
        Use pango_ot_ruleset_get_for(), that correctly works for multiple
        languages.  Also makes basic shaper apply the 'vert' feature for
        vertical text.  Removes a net 500 lines.

        Other OpenType modules need to be ported over time, however some
        extensions may be needed.  For example, the Hebrew shaper uses
        fallback code if no GPOS tables are available.  Currently using
        pango_ot_ruleset_get_for() one cannot see which features were
        found.

svn path=/trunk/; revision=2292

17 years agoPart of Bug 414264 – Pango vertical writing support is different with
Behdad Esfahbod [Mon, 14 May 2007 07:11:48 +0000 (07:11 +0000)]
Part of Bug 414264 – Pango vertical writing support is different with

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

        Part of Bug 414264 – Pango vertical writing support is different with
        real CJK usage.

        * pango-view/test-mixed.txt: Add a line of Japanese text that
        has brackets that should be rotated in vertical text.

svn path=/trunk/; revision=2291

17 years agoPart of Bug 325714 – Pango should respect $LANGUAGE
Behdad Esfahbod [Mon, 14 May 2007 07:09:45 +0000 (07:09 +0000)]
Part of Bug 325714 – Pango should respect $LANGUAGE

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

        Part of Bug 325714 – Pango should respect $LANGUAGE

        * pango/pango-ot.h:
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_for),
        (pango_ot_ruleset_description_hash),
        (pango_ot_ruleset_description_equal),
        (pango_ot_ruleset_description_copy),
        (pango_ot_ruleset_description_free):
        Add new engine API:

                PangoOTRulesetDescription
                pango_ot_ruleset_get_for()
                pango_ot_ruleset_description_hash()
                pango_ot_ruleset_description_equal()
                pango_ot_ruleset_description_copy()
                pango_ot_ruleset_description_free()

        The main addition is pango_ot_ruleset_get_for() that
        takes a ruleset description, ie. script/language and list
        of GSUB/GPOS features to apply, and returns a ruleset.
        It manages all the work to cache rulesets, so modules
        don't have to do that anymore.  Given that modules do not
        deal with just one ruleset anymore (because we want to
        respect language, and allow user-selected features), this
        makes their life way easier.

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

svn path=/trunk/; revision=2290

17 years agoAdd a FIXME
Behdad Esfahbod [Mon, 14 May 2007 05:01:46 +0000 (05:01 +0000)]
Add a FIXME

svn path=/trunk/; revision=2289

17 years agoMark some arguments const.
Behdad Esfahbod [Mon, 14 May 2007 04:24:47 +0000 (04:24 +0000)]
Mark some arguments const.

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

        * pango/pango-ot-buffer.c (pango_ot_buffer_get_glyphs),
        (pango_ot_buffer_output):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_substitute),
        (pango_ot_ruleset_position):
        * pango/pango-ot.h:
        Mark some arguments const.

svn path=/trunk/; revision=2288

17 years agoPart of Bug 325714 – Pango should respect $LANGUAGE
Behdad Esfahbod [Mon, 14 May 2007 04:06:17 +0000 (04:06 +0000)]
Part of Bug 325714 – Pango should respect $LANGUAGE

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

        Part of Bug 325714 – Pango should respect $LANGUAGE

        * pango/pango-ot.h:
        * pango/pango-ot-private.h:
        * pango/pango-ot-tag.c (pango_ot_tag_from_script),
        (pango_ot_tag_from_language):
        * pango/pango-ot-info.c (pango_ot_info_find_script),
        (pango_ot_info_find_language), (pango_ot_info_find_feature),
        (pango_ot_info_list_languages), (pango_ot_info_list_features):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_new),
        (pango_ot_ruleset_new_for), (pango_ot_ruleset_add_feature),
        (pango_ot_ruleset_maybe_add_feature),
        (pango_ot_ruleset_maybe_add_features):
        Add new engine API:

                PANGO_OT_NO_FEATURE
                PANGO_OT_NO_SCRIPT
                PANGO_OT_TAG_DEFAULT_SCRIPT
                PANGO_OT_TAG_DEFAULT_LANGUAGE
                pango_ot_ruleset_new_for()
                pango_ot_ruleset_maybe_add_feature()
                pango_ot_ruleset_maybe_add_features()

        Using pango_ot_ruleset_new_for() and
        pango_ot_ruleset_maybe_add_features() drastically simplifies ruleset
        building in modules, and does correct script and language selection
        too.  Modules need to be updated to use it though.

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

svn path=/trunk/; revision=2285

17 years agoPart of Bug 325714 – Pango should respect $LANGUAGE
Behdad Esfahbod [Mon, 14 May 2007 04:02:58 +0000 (04:02 +0000)]
Part of Bug 325714 – Pango should respect $LANGUAGE

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

        Part of Bug 325714 – Pango should respect $LANGUAGE

        * pango/pango-ot.h:
        * pango/pango-ot-private.h:
        * pango/pango-ot-tag.c (pango_ot_tag_from_script),
        (pango_ot_tag_from_language):
        * pango/pango-ot-info.c (pango_ot_info_find_script),
        (pango_ot_info_find_language), (pango_ot_info_find_feature),
        (pango_ot_info_list_languages), (pango_ot_info_list_features):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_new),
        (pango_ot_ruleset_new_for), (pango_ot_ruleset_add_feature),
        (pango_ot_ruleset_maybe_add_feature),
        (pango_ot_ruleset_maybe_add_features):
        Add new engine API:

                PANGO_OT_NO_FEATURE
                PANGO_OT_NO_SCRIPT
                PANGO_OT_TAG_DEFAULT_SCRIPT
                PANGO_OT_TAG_DEFAULT_LANGUAGE
                pango_ot_ruleset_new_for()
                pango_ot_ruleset_maybe_add_feature()
                pango_ot_ruleset_maybe_add_features()

        Using pango_ot_ruleset_new_for() and
        pango_ot_ruleset_maybe_add_features() drastically simplifies ruleset
        building in modules, and does correct script and language selection
        too.  Modules need to be updated to use it though.

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

svn path=/trunk/; revision=2284

17 years agoAdd --language.
Behdad Esfahbod [Mon, 14 May 2007 00:56:39 +0000 (00:56 +0000)]
Add --language.

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

        * pango-view/viewer-render.c (do_output), (parse_options):
        Add --language.

svn path=/trunk/; revision=2283

17 years agoUse PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead of hardcoded
Behdad Esfahbod [Thu, 10 May 2007 23:56:11 +0000 (23:56 +0000)]
Use PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead of hardcoded

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

        * modules/arabic/arabic-fc.c (maybe_add_gsub_feature),
        (maybe_add_gpos_feature), (get_ruleset):
        * modules/basic/basic-fc.c (get_ruleset):
        * modules/hebrew/hebrew-fc.c (maybe_add_gsub_feature),
        (maybe_add_gpos_feature), (get_ruleset):
        * modules/indic/indic-fc.c (maybe_add_GSUB_feature),
        (maybe_add_GPOS_feature):
        * modules/khmer/khmer-fc.c (maybe_add_GSUB_feature),
        (maybe_add_GPOS_feature):
        * modules/syriac/syriac-fc.c (maybe_add_gsub_feature),
        (maybe_add_gpos_feature), (get_ruleset):
        * modules/thai/thai-ot.c (maybe_add_gsub_feature),
        (maybe_add_gpos_feature), (thai_ot_get_ruleset),
        (lao_ot_get_ruleset):
        * modules/tibetan/tibetan-fc.c (maybe_add_GSUB_feature),
        (maybe_add_GPOS_feature):
        Use PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead
        of hardcoded 0xFFFF.

svn path=/trunk/; revision=2282

17 years agoSplit ChangeLog.
Behdad Esfahbod [Thu, 10 May 2007 21:38:42 +0000 (21:38 +0000)]
Split ChangeLog.

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

        * ChangeLog.pre-1-16: Split ChangeLog.

svn path=/trunk/; revision=2275

17 years agoNew public API:
Behdad Esfahbod [Thu, 10 May 2007 21:26:21 +0000 (21:26 +0000)]
New public API:

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

        * pango/Makefile.am:
        * pango/pango-ot.h:
        * pango/pango-ot-tag.c (pango_ot_tag_from_script),
        (pango_ot_tag_to_script), (lang_compare_first_component),
        (pango_ot_tag_from_language), (pango_ot_tag_to_language):
        New public API:

                PANGO_OT_DEFAULT_SCRIPT
                pango_ot_tag_from_script()
                pango_ot_tag_to_script()
                pango_ot_tag_from_language()
                pango_ot_tag_to_language()

        * tests/Makefile.am:
        * tests/test-ot-tags.c:
        Test case for new functions.

        * pango/pangoft2.def:
        * docs/pango-docs.sgml:
        * docs/pango-sections.txt:
        * docs/tmpl/main.sgml:
        * docs/tmpl/opentype.sgml:
        Updated.

svn path=/trunk/; revision=2274

17 years agoBug 437534 – pango_language_includes_script is buggy
Behdad Esfahbod [Thu, 10 May 2007 20:53:53 +0000 (20:53 +0000)]
Bug 437534 – pango_language_includes_script is buggy

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

        Bug 437534 – pango_language_includes_script is buggy

        * pango/pango-language.c (lang_compare_first_component),
        (lang_info_compare), (script_for_lang_compare),
        (pango_language_includes_script): Fix script_for_lang table lookup.

svn path=/trunk/; revision=2273

17 years agoDon't set gravity in pango_fc_font_description_from_pattern() if it was
Behdad Esfahbod [Thu, 10 May 2007 18:32:45 +0000 (18:32 +0000)]
Don't set gravity in pango_fc_font_description_from_pattern() if it was

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

        * pango/pangofc-fontmap.c (pango_fc_font_description_from_pattern),
        (pango_fc_face_describe): Don't set gravity in
        pango_fc_font_description_from_pattern() if it was not set on the
        pattern.  This is a bit different from other properties, but that
        really is how gravity works (unlike say weight that not having it said
        means normal weight).

svn path=/trunk/; revision=2272

17 years agoUpdate from latest fontconfig sources.
Behdad Esfahbod [Wed, 9 May 2007 23:06:54 +0000 (23:06 +0000)]
Update from latest fontconfig sources.

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

        * pango/pango-script-lang-table.h:  Update from latest fontconfig
        sources.

        * tools/gen-script-for-lang.c (scripts_for_line): Make it handle
        PANGO_SCRIPT_UNKNOWN.

svn path=/trunk/; revision=2271

17 years agoMove pango_language_includes_script() from pango-script.c to
Behdad Esfahbod [Wed, 9 May 2007 22:33:00 +0000 (22:33 +0000)]
Move pango_language_includes_script() from pango-script.c to

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

        * pango/pango-language.c (script_for_lang_compare),
        (pango_language_includes_script):
        * pango/pango-script.c: Move pango_language_includes_script() from
        pango-script.c to pango-language.c that it belongs.

svn path=/trunk/; revision=2270

17 years agoMinor include reordering.
Behdad Esfahbod [Tue, 8 May 2007 22:12:07 +0000 (22:12 +0000)]
Minor include reordering.

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

        * pango/pango-matrix.h: Minor include reordering.

svn path=/trunk/; revision=2269

17 years agoMove PangoLanguage stuff into pango-language.[ch]
Behdad Esfahbod [Tue, 8 May 2007 22:07:48 +0000 (22:07 +0000)]
Move PangoLanguage stuff into pango-language.[ch]

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

        * pango/Makefile.am:
        * pango/pango-script.h:
        * pango/pango-types.h:
        * pango/pango-utils.c:
        * pango/pango-language.c:
        * pango/pango-language.h:
        Move PangoLanguage stuff into pango-language.[ch]

svn path=/trunk/; revision=2268

17 years agoBug 436988 – Adding PangoScript to PangoAnalysis
Behdad Esfahbod [Tue, 8 May 2007 20:43:51 +0000 (20:43 +0000)]
Bug 436988 – Adding PangoScript to PangoAnalysis

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

        Bug 436988 – Adding PangoScript to PangoAnalysis

        * pango/pango-item.h:
        * pango/pango-context.c (itemize_state_add_character):
        Add a 'script' member to PangoAnalysis.  It's added as a guint8
        in the padding available in that struct, though it's value is a
        PangoScript.

        * pango/pangox.c (itemize_string_foreach):
        Update.

svn path=/trunk/; revision=2267

17 years agoBug 416515 – Time is not aligned with date on vertical panel
Behdad Esfahbod [Tue, 8 May 2007 18:17:20 +0000 (18:17 +0000)]
Bug 416515 – Time is not aligned with date on vertical panel

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

        Bug 416515 – Time is not aligned with date on vertical panel

        * pango/pango-context.c (itemize_state_init),
        (itemize_state_update_for_new_run): centered_baseline should only
        be set from context->resolved_gravity and never changed through
        markup.  This means that pango_context_set_base_gravity has no
        equivalent markup.  Doesn't sound limiting to me: you need to rotate
        the layout to get real vertical, so it's not just a matter of markup
        anyway.  At least not at this point.

svn path=/trunk/; revision=2266

17 years agoBug 436154 – Error building the pango.modules file while cross compiling
Behdad Esfahbod [Tue, 8 May 2007 01:51:05 +0000 (01:51 +0000)]
Bug 436154 – Error building the pango.modules file while cross compiling

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

        Bug 436154 – Error building the pango.modules file while cross
        compiling

        * modules/Makefile.am: Make local pango.module generation work with
        cross-compilation.

svn path=/trunk/; revision=2265

17 years agoBug 434160 - [atsui] Italic versions of some faces can't be created
Richard Hult [Sat, 5 May 2007 09:42:40 +0000 (09:42 +0000)]
Bug 434160 - [atsui] Italic versions of some faces can't be created

2007-05-05  Richard Hult  <richard@imendio.com>

Bug 434160 - [atsui] Italic versions of some faces can't be created

* pango/pangoatsui-fontmap.c:
* pango/pangoatsui-private.h:
* pango/pangocairo-atsuifont.c: Follow the other backends and create
italic faces when they are not available. Apply synthetic italic
in two cases, when the font manager hands out italic faces that are
not in fact italic, and for the ones we've created ourselves.

svn path=/trunk/; revision=2264

17 years agoAdd bug reference.
Behdad Esfahbod [Fri, 4 May 2007 11:50:30 +0000 (11:50 +0000)]
Add bug reference.

svn path=/trunk/; revision=2263

17 years agoAdd new symbols.
Behdad Esfahbod [Fri, 4 May 2007 11:40:05 +0000 (11:40 +0000)]
Add new symbols.

svn path=/trunk/; revision=2262

17 years agoNew API
Behdad Esfahbod [Fri, 4 May 2007 11:33:14 +0000 (11:33 +0000)]
New API

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

        * pango/pangocairo.h:
        * pango/pangocairo-context.c:
        * pango/pangocairo-render.c:
        New API

                PangoCairoShapeRendererFunc and
                pango_cairo_context_[sg]et_shape_renderer()

        * docs/pango-sections.txt, docs/tmpl/pangocairo.sgml: Document new
        * API.

        * examples/Makefile.am, examples/cairoshape.c: New example to show off
        new API/feature.

svn path=/trunk/; revision=2261

17 years agoRip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c.
Behdad Esfahbod [Fri, 4 May 2007 08:30:34 +0000 (08:30 +0000)]
Rip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c.

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

        * pango/Makefile.am:
        * pango/pangocairo-context.c:
        * pango/pangocairo-fontmap.c:
        Rip non-fontmap stuff from pangocairo-fontmap.c into
        pangocairo-context.c.

svn path=/trunk/; revision=2260

17 years agoImprove docs about freeing returned items.
Behdad Esfahbod [Thu, 3 May 2007 22:36:44 +0000 (22:36 +0000)]
Improve docs about freeing returned items.

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

        * pango/pango-context.c (pango_itemize): Improve docs about freeing
        returned items.

svn path=/trunk/; revision=2259

17 years agoNew test text that contains a Persian monologue by YarAli PourMoghaddam
Behdad Esfahbod [Thu, 3 May 2007 05:02:12 +0000 (05:02 +0000)]
New test text that contains a Persian monologue by YarAli PourMoghaddam

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

        * pango-view/test-long-paragraph.txt: New test text that contains a
        Persian monologue by YarAli PourMoghaddam which is a single paragraph
        of more than 10,000 chars and 2,400 words.  Used for testing the
        effect of previous change.

svn path=/trunk/; revision=2258

17 years agoWhen breaking item to fit it into current line, go from the beginning,
Behdad Esfahbod [Thu, 3 May 2007 05:00:32 +0000 (05:00 +0000)]
When breaking item to fit it into current line, go from the beginning,

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

        * pango/pango-layout.c (process_item): When breaking item to fit it
        into current line, go from the beginning, adding char at a time until
        it doesn't fit anymore instead of removing chars from the end.  The
        difference is a O(n) as opposed to O(n^2) algorithm were n is the
        number of lines in the paragraph (assuming constant chars per line).

svn path=/trunk/; revision=2257

17 years agoSave one layout rendering per view. Down to two from three now.
Behdad Esfahbod [Thu, 3 May 2007 04:42:21 +0000 (04:42 +0000)]
Save one layout rendering per view. Down to two from three now.

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

        * pango-view/viewer-render.c (output_body), (do_output): Save
        one layout rendering per view.  Down to two from three now.

svn path=/trunk/; revision=2256

17 years agoNew test text with long Latin and Arabic lines, suitable for --justify
Behdad Esfahbod [Thu, 3 May 2007 00:51:11 +0000 (00:51 +0000)]
New test text with long Latin and Arabic lines, suitable for --justify

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

        * pango-view/test-justify.txt: New test text with long Latin and
        Arabic lines, suitable for --justify testing.

svn path=/trunk/; revision=2255

17 years agoBug 64538 – pango_layout_set_justify() doesn't work
Behdad Esfahbod [Thu, 3 May 2007 00:44:53 +0000 (00:44 +0000)]
Bug 64538 – pango_layout_set_justify() doesn't work

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

        Bug 64538 – pango_layout_set_justify() doesn't work

        * pango/pango-layout.c (process_item), (justify_clusters),
        (justify_words): If no space found, justify by inserting space
        between clusters.

svn path=/trunk/; revision=2254

17 years agoFix letter-spacing with justification. We now distribute letter-spacing
Behdad Esfahbod [Wed, 2 May 2007 23:21:48 +0000 (23:21 +0000)]
Fix letter-spacing with justification. We now distribute letter-spacing

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

        * pango/pango-glyph-item.c (pango_glyph_item_letter_space):
        * pango/pango-item.c (pango_item_split):
        * pango/pango-layout.c (distribute_letter_spacing), (shape_run),
        (debug), (process_item), (process_line), (pad_glyphstring_right),
        (pad_glyphstring_left), (zero_line_final_space),
        (adjust_line_letter_spacing), (pango_layout_line_postprocess):
        Fix letter-spacing with justification.  We now distribute
        letter-spacing equally on both sides of clusters, instead of putting
        it all on one side.

svn path=/trunk/; revision=2253

17 years agoBug 64538 – pango_layout_set_justify() doesn't work
Behdad Esfahbod [Wed, 2 May 2007 09:53:25 +0000 (09:53 +0000)]
Bug 64538 – pango_layout_set_justify() doesn't work

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

        Bug 64538 – pango_layout_set_justify() doesn't work

        * pango/pango-layout.c (zero_line_final_space), (justify_clusters),
        (justify_words), (pango_layout_line_postprocess): Implement
        justification by expanding spaces!
        Based on early patch from Mathias Hasselmann.

svn path=/trunk/; revision=2252

17 years agoAdd patch-from.
Behdad Esfahbod [Wed, 2 May 2007 07:50:06 +0000 (07:50 +0000)]
Add patch-from.

svn path=/trunk/; revision=2251

17 years agoAdd is_expandable_space to PangoLogAttr.
Behdad Esfahbod [Wed, 2 May 2007 07:49:38 +0000 (07:49 +0000)]
Add is_expandable_space to PangoLogAttr.

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

        * docs/tmpl/main.sgml:
        * pango/break.c (pango_default_break):
        * pango/pango-break.h:
        Add is_expandable_space to PangoLogAttr.

svn path=/trunk/; revision=2250

17 years agoAdd --justify.
Mathias Hasselmann [Wed, 2 May 2007 07:37:09 +0000 (07:37 +0000)]
Add --justify.

2007-05-02  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

        * pango-view/viewer-render.c (make_layout), (parse_options):
        Add --justify.

svn path=/trunk/; revision=2249

17 years agoBug 355789 – Pango misaligns word-wrapped text due to trailing
Behdad Esfahbod [Wed, 2 May 2007 06:47:16 +0000 (06:47 +0000)]
Bug 355789 – Pango misaligns word-wrapped text due to trailing

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

        Bug 355789 – Pango misaligns word-wrapped text due to trailing
        whitespace

        * pango/pango-layout.c (zero_line_final_space),
        (pango_layout_line_postprocess): Make logical-final whitespace
        on wrapped lines zero-width.

svn path=/trunk/; revision=2248

17 years agoKeep track of line start_offset in break state.
Behdad Esfahbod [Wed, 2 May 2007 05:40:52 +0000 (05:40 +0000)]
Keep track of line start_offset in break state.

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

        * pango/pango-layout.c (process_line), (pango_layout_check_lines):
        Keep track of line start_offset in break state.

svn path=/trunk/; revision=2247

17 years agoAdd a "wrapped" argument to pango_layout_line_postprocess(). Going to use
Behdad Esfahbod [Wed, 2 May 2007 05:12:21 +0000 (05:12 +0000)]
Add a "wrapped" argument to pango_layout_line_postprocess(). Going to use

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

        * pango/pango-layout.c (process_line),
        (pango_layout_line_postprocess): Add a "wrapped" argument to
        pango_layout_line_postprocess().  Going to use it for eg whether we
should justify the line.

svn path=/trunk/; revision=2246

17 years agoSet is_wrapped to true on BREAK_EMPTY_FIT too.
Behdad Esfahbod [Wed, 2 May 2007 05:08:23 +0000 (05:08 +0000)]
Set is_wrapped to true on BREAK_EMPTY_FIT too.

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

        * pango/pango-layout.c (process_line): Set is_wrapped to true on
        BREAK_EMPTY_FIT too.

svn path=/trunk/; revision=2245

17 years agoMinor
Behdad Esfahbod [Wed, 2 May 2007 04:31:28 +0000 (04:31 +0000)]
Minor

svn path=/trunk/; revision=2244

17 years agoRemove stale prototype of _pango_layout_iter_get_line_readonly().
Behdad Esfahbod [Wed, 2 May 2007 04:30:22 +0000 (04:30 +0000)]
Remove stale prototype of _pango_layout_iter_get_line_readonly().

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

        * pango/pango-layout-private.h: Remove stale prototype of
        _pango_layout_iter_get_line_readonly().

svn path=/trunk/; revision=2243

17 years agoAdd note about how we should not be using pango_break() here.
Behdad Esfahbod [Wed, 2 May 2007 02:16:38 +0000 (02:16 +0000)]
Add note about how we should not be using pango_break() here.

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

        * pango/pango-layout.c (get_items_log_attrs): Add note about
        how we should not be using pango_break() here.

svn path=/trunk/; revision=2242

17 years agoAdd option for testing text alignment.
Mathias Hasselmann [Tue, 1 May 2007 23:05:49 +0000 (23:05 +0000)]
Add option for testing text alignment.

2007-04-28  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

        * pango-view/viewer-render.c (make_layout), (parse_alignment),
        (parse_options): Add option for testing text alignment.

svn path=/trunk/; revision=2241

17 years agoLink freetype to harfbuzz-dump, for those systems that don't track
Behdad Esfahbod [Tue, 1 May 2007 02:32:12 +0000 (02:32 +0000)]
Link freetype to harfbuzz-dump, for those systems that don't track

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

        * pango/opentype/Makefile.am: Link freetype to harfbuzz-dump, for
        those systems that don't track dependencies automatically.

svn path=/trunk/; revision=2240

17 years agoAdd PANGO_UNITS_ROUND to docs.
Behdad Esfahbod [Mon, 30 Apr 2007 23:45:56 +0000 (23:45 +0000)]
Add PANGO_UNITS_ROUND to docs.

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

        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        Add PANGO_UNITS_ROUND to docs.

svn path=/trunk/; revision=2239

17 years agoMove PANGO_UNITS_ROUND here... ...from here.
Behdad Esfahbod [Mon, 30 Apr 2007 23:09:47 +0000 (23:09 +0000)]
Move PANGO_UNITS_ROUND here... ...from here.

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

        * pango/pango-types.h: Move PANGO_UNITS_ROUND here...
        * pango/pangofc-private.h: ...from here.

        * pango/pango-gravity.c: Document that pango_gravity_to_rotation()
        returns angle in radians but pango_matrix_rotate() takes degrees.

        * pango/pango-layout.c (pango_layout_run_get_extents):
        * pango/pango-renderer.c (pango_renderer_draw_layout_line):
        Retain metrics hinting when centering baseline (used for Latin, etc
        in vertical mode).

        * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
        (pango_cairo_fc_font_glyph_extents_cache_init): Respect metrics
        hinting setting when moving glyphs around for vertical writing.

        * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Apply
        the gravity rotation before the pattern's matrix, such that
        vertical text gets correct italic direction.

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
        Make hexbox font inherit most properties from the current font.
        That is, bold hexbox digits for a bold font, etc.

svn path=/trunk/; revision=2238

17 years agoA font name in encoding UCS4_ENCODING_ID actually is in UTF-16, not UCS-4.
Tor Lillqvist [Mon, 30 Apr 2007 05:54:29 +0000 (05:54 +0000)]
A font name in encoding UCS4_ENCODING_ID actually is in UTF-16, not UCS-4.

2007-04-30  Tor Lillqvist  <tml@novell.com>

* pango/pangowin32-fontmap.c (get_family_nameA, get_family_nameW):
A font name in encoding UCS4_ENCODING_ID actually is in UTF-16,
not UCS-4. (#429397, Akihiro Okamura)

svn path=/trunk/; revision=2237

17 years agoCorrect the signature by making PangoAnalysis const, fixes build warning.
Richard Hult [Fri, 27 Apr 2007 07:58:54 +0000 (07:58 +0000)]
Correct the signature by making PangoAnalysis const, fixes build warning.

2007-04-27  Richard Hult  <richard@imendio.com>

* modules/basic/basic-atsui.c (basic_engine_shape): Correct the
signature by making PangoAnalysis const, fixes build warning.

svn path=/trunk/; revision=2236

17 years agoAdd comment to Richard's commit.
Behdad Esfahbod [Fri, 27 Apr 2007 07:49:07 +0000 (07:49 +0000)]
Add comment to Richard's commit.

svn path=/trunk/; revision=2235

17 years agoUse maxAdvanceWidth instead of avgAdvanceWidth, the latter is 0 for many
Richard Hult [Fri, 27 Apr 2007 07:46:43 +0000 (07:46 +0000)]
Use maxAdvanceWidth instead of avgAdvanceWidth, the latter is 0 for many

2007-04-27  Richard Hult  <richard@imendio.com>

* pango/pangocairo-atsuifont.c (pango_cairo_atsui_font_get_metrics):
Use maxAdvanceWidth instead of avgAdvanceWidth, the latter is 0 for
many fonts. This is a temporary solution, see bug #433805 for details.

svn path=/trunk/; revision=2234

17 years ago=== Released 1.16.4 === PANGO_1_16_4
Behdad Esfahbod [Fri, 27 Apr 2007 06:58:57 +0000 (06:58 +0000)]
=== Released 1.16.4 ===

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

        * === Released 1.16.4 ===

        * configure.in: Version 1.16.4

        * NEWS: Updated.

svn path=/trunk/; revision=2232

17 years agoAdd bug reference.
Behdad Esfahbod [Fri, 27 Apr 2007 06:47:07 +0000 (06:47 +0000)]
Add bug reference.

svn path=/trunk/; revision=2231

17 years agoAdd --disable-doc-cross-references.
Behdad Esfahbod [Fri, 27 Apr 2007 06:45:46 +0000 (06:45 +0000)]
Add --disable-doc-cross-references.

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

        * configure.in: Add --disable-doc-cross-references.

        * docs/Makefile.am: Make sure --disable-doc-cross-references is
        set in order to make dist.

        * Makefile.am: Add --disable-doc-cross-references to
        DISTCHECK_CONFIGURE_FLAGS.

svn path=/trunk/; revision=2230

17 years ago=== Released 1.16.3 === PANGO_1_16_3
Behdad Esfahbod [Mon, 23 Apr 2007 22:25:59 +0000 (22:25 +0000)]
=== Released 1.16.3 ===

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

        * === Released 1.16.3 ===

        * configure.in: Version 1.16.3

        * NEWS: Updated.

svn path=/trunk/; revision=2228

17 years agoImproved hexbox position.
Behdad Esfahbod [Wed, 18 Apr 2007 20:16:56 +0000 (20:16 +0000)]
Improved hexbox position.

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

        * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
        Improved hexbox position.

svn path=/trunk/; revision=2227

17 years agoQuantize kerning adjustment, otherwise all the metrics hinting effort will
Behdad Esfahbod [Thu, 12 Apr 2007 23:55:33 +0000 (23:55 +0000)]
Quantize kerning adjustment, otherwise all the metrics hinting effort will

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

        * pango/pango-ot-buffer.c (apply_gpos_ltr), (apply_gpos_rtl),
        (pango_ot_buffer_output):
        * pango/pango-types.h:
        * pango/pangofc-font.c (pango_fc_font_kern_glyphs):
        * pango/pangofc-private.h:
        Quantize kerning adjustment, otherwise all the metrics hinting
        effort will be ruined by a non-whole-pixel kerning value.
        In the future we want to take lsb_delta and rsb_delta into the
        game before quantizing the adjustment here, but we don't have
        those values handy right now.

svn path=/trunk/; revision=2225

17 years ago=== Released 1.16.2 === PANGO_1_16_2
Behdad Esfahbod [Mon, 9 Apr 2007 17:46:42 +0000 (17:46 +0000)]
=== Released 1.16.2 ===

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

        * === Released 1.16.2 ===

        * configure.in: Version 1.16.2

        * NEWS: Updated.

svn path=/trunk/; revision=2223

17 years agoCopy fixes from harfbuzz stable branch. Includes a leak fix, a kerning
Behdad Esfahbod [Tue, 3 Apr 2007 22:45:29 +0000 (22:45 +0000)]
Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerning

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

        * pango/opentype/harfbuzz-gdef.c (_HB_GDEF_Check_Property):
        * pango/opentype/harfbuzz-gpos.c (HB_Done_GPOS_Table),
        (Lookup_PairPos):
        * pango/opentype/harfbuzz-open.c (Get_Class1):
        Copy fixes from harfbuzz stable branch.  Includes a leak fix,
        a kerning fix, and an array out-of-bound access fix.

svn path=/trunk/; revision=2221

17 years agoAdd EXEEXT around to make it build on OS/2 Patch from Dave Yeo.
Behdad Esfahbod [Sun, 1 Apr 2007 17:38:31 +0000 (17:38 +0000)]
Add EXEEXT around to make it build on OS/2 Patch from Dave Yeo.

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

        * modules/Makefile.am: Add EXEEXT around to make it build on OS/2
        Patch from Dave Yeo.

svn path=/trunk/; revision=2220

17 years agoUpdate templates
Behdad Esfahbod [Sun, 1 Apr 2007 17:37:51 +0000 (17:37 +0000)]
Update templates

svn path=/trunk/; revision=2219

17 years agoBug 419262 - Don't create coverage every time it's asked for
Richard Hult [Sun, 18 Mar 2007 14:07:42 +0000 (14:07 +0000)]
Bug 419262 - Don't create coverage every time it's asked for

2007-03-18  Richard Hult  <richard@imendio.com>

Bug 419262 - Don't create coverage every time it's asked for

* pango/pangoatsui.c: (pango_atsui_font_get_coverage):
* pango/pangoatsui-fontmap.c: Pass around a PangoATSUIFace instead of
the postscript name string. Move the coverage creation from the font to
the face, and get the coverage from the face instead of creating it
every time.

* pango/pangocairo-atsui.h:
* pango/pangocairo-atsuifont.c: (_pango_cairo_atsui_font_new): Use the
face instead of the postscript name.

* pango/pangoatsui-private.h:
* pango/pangocairo-atsuifontmap.c: Add getters for the postscript name
and coverage for the face.

svn path=/trunk/; revision=2218

17 years agoAdd missing declaration of pango_win32_family_get_type(). (#417946, Ivan
Tor Lillqvist [Wed, 14 Mar 2007 07:13:23 +0000 (07:13 +0000)]
Add missing declaration of pango_win32_family_get_type(). (#417946, Ivan

2007-03-14  Tor Lillqvist  <tml@novell.com>

* pango/pangowin32-fontmap.c: Add missing declaration of
pango_win32_family_get_type(). (#417946, Ivan Wong)

svn path=/trunk/; revision=2217

17 years agoAdd new symbols to docs.
Behdad Esfahbod [Mon, 12 Mar 2007 22:45:09 +0000 (22:45 +0000)]
Add new symbols to docs.

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

        * docs/pango-sections.txt:
        * pango/pangowin32-fontmap.c:
        * pango/pangowin32.c:
        Add new symbols to docs.

svn path=/trunk/; revision=2216

17 years ago=== Released 1.16.1 === PANGO_1_16_1
Behdad Esfahbod [Mon, 12 Mar 2007 22:02:54 +0000 (22:02 +0000)]
=== Released 1.16.1 ===

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

        * === Released 1.16.1 ===

        * configure.in: Version 1.16.1

        * NEWS: Updated.

        * README: Updated.

svn path=/trunk/; revision=2214

17 years agopango/pangowin32-private.h pango/pangowin32.c pango/pangowin32-fontcache.c
Tor Lillqvist [Sat, 10 Mar 2007 19:29:50 +0000 (19:29 +0000)]
pango/pangowin32-private.h pango/pangowin32.c pango/pangowin32-fontcache.c

2007-03-10  Tor Lillqvist  <tml@novell.com>

* pango/pangowin32-private.h
* pango/pangowin32.c
* pango/pangowin32-fontcache.c
* pango/pangowin32-fontmap.c
* pango/pangocairo-win32font.c
* pango/pangowin32.def: Move functions defined in one file and
used in another to the file where used, make them static, and drop
from pangowin32-private.h. Prefix all private non-static functions
with underscore. Also functions used only by the pangocairo DLL
are considered private. (#120195)

svn path=/trunk/; revision=2213

17 years agoUniscribe is optional only at run-time.
Tor Lillqvist [Sat, 10 Mar 2007 17:56:11 +0000 (17:56 +0000)]
Uniscribe is optional only at run-time.

2007-03-10  Tor Lillqvist  <tml@novell.com>

* README: Uniscribe is optional only at run-time.

svn path=/trunk/; revision=2212

17 years agoUniscribe is not optional.
Tor Lillqvist [Sat, 10 Mar 2007 17:54:49 +0000 (17:54 +0000)]
Uniscribe is not optional.

2007-03-10  Tor Lillqvist  <tml@novell.com>

* README: Uniscribe is not optional.

svn path=/trunk/; revision=2211

17 years agoAn ISO639 code is always in ASCII, no need to call the wide-character
Tor Lillqvist [Wed, 7 Mar 2007 22:11:29 +0000 (22:11 +0000)]
An ISO639 code is always in ASCII, no need to call the wide-character

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

* modules/basic/basic-win32.c: An ISO639 code is always
in ASCII, no need to call the wide-character version of
GetLocaleInfo().

svn path=/trunk/; revision=2210

17 years agoconfigure.in modules/basic/Makefile.am Make building with Uniscribe (using
Tor Lillqvist [Wed, 7 Mar 2007 22:05:13 +0000 (22:05 +0000)]
configure.in modules/basic/Makefile.am Make building with Uniscribe (using

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

* configure.in
* modules/basic/Makefile.am
* modules/basic/basic-win32.c: Make building with Uniscribe (using
the <usp10.h> header) mandatory. Mingw's w32api headers do include
usp10.h now so one doesn't need to copy it from the Platform SDK
any longer. At runtime using Uniscribe is still optional,
depending on whether usp10.dll is found or not. I think it
isn't necessarily present on Windows 2000 machines, for instance.

* modules/basic/basic-win32.c (lang_name): Instead of a hardcoded
case statement, use GetLocaleInfo() to get the language ISO639
code.
(charset_name): Remove, unused.
(itemize_shape_and_place, uniscribe_shape, basic_engine_shape):
Constify the PangoAnalysis parameter to match the prototype of
PangoEngineShapeClass::script_shape().

svn path=/trunk/; revision=2209

17 years agoBug 414297 – Fails to build with --enable-static --with-included-modules
Behdad Esfahbod [Sat, 3 Mar 2007 20:21:09 +0000 (20:21 +0000)]
Bug 414297 – Fails to build with --enable-static --with-included-modules

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

        Bug 414297 – Fails to build with --enable-static
                --with-included-modules in thai lang module
        Patch from Loïc Minier

        * modules/thai/Makefile.am: Include LIBTHAI_LIBS in static module
        too.

svn path=/trunk/; revision=2207

17 years agoBug 412654 – SED variable undefined in the `libtool --config' output
Behdad Esfahbod [Tue, 27 Feb 2007 17:21:10 +0000 (17:21 +0000)]
Bug 412654 – SED variable undefined in the `libtool --config' output

2007-02-27  Behdad Esfahbod  <behdad@gnome.org>

        Bug 412654 – SED variable undefined in the `libtool --config' output
        used by configure

        * configure.in: export SED before calling libtool

svn path=/trunk/; revision=2206

17 years agoThis change was supposed to go in the trunk before 1.16.0, but it didn't
Tor Lillqvist [Tue, 27 Feb 2007 09:08:07 +0000 (09:08 +0000)]
This change was supposed to go in the trunk before 1.16.0, but it didn't

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

This change was supposed to go in the trunk before 1.16.0, but it
didn't quite get there in time. So, to have a clear cut for this
somewhat fundamental change in underlying workings (although there
should be no user-visible changes), I will build and distribute
Win32 binaries only starting from 1.16.1.

Use wide character API for fonts on Windows. Rename functions and
variables that deal with LOGFONTW structs to emphasize
this. (#407315)

* pango/pangowin32.c
* pango/pangowin32-fontcache.c
* pango/pangowin32-fontmap.c: Use LOGFONTW all over the place
instead of LOGFONT, and adapt code accordingly. Use wide character
Win32 API.

* pango/pangowin32.c (pango_win32_font_neww): Renamed from
pango_win32_font_new(), as it now takes a LOGFONTW pointer. This
is a private function and can be renamed though it is exported as
it is used from the pangocairo DLL.
(pango_win32_font_logfont): Mention explicitly in doc comment that
it returns a LOGFONTA, and recommend to use
pango_win32_font_logfontw() instead.
(pango_win32_font_logfontw): New function.

* pango/pangowin32-fontcache.c
(pango_win32_font_cache_load): Must keep this function that takes
a LOGFONTA pointer as it is declared in the public header.
(pango_win32_font_cache_loadw): New public function that takes a
LOGFONTW pointer.

* pango/pangowin32-fontmap.c
(pango_win32_font_description_from_logfont): Mention explicitly in
the doc comment that it takes a LOGFONTA pointer.
(pango_win32_font_description_from_logfontw): New public function
that takes a LOGFONTW pointer.
(pango_win32_make_matching_logfontw): Rename from
pango_win32_make_matching_logfont() to emphasize it takes a
LOGFONTW pointer.

* pango/pangowin32.h: Declare new public functions.

* pango/pangowin32-private.h: Declare new private functions, drop
removed ones.

* pango/pangocairo-win32font.c (_pango_cairo_win32_font_new):
Simplify now that we call pango_win32_make_matching_logfontw().

* pango/pangowin32.def: Add new functions, rename internal
functions that now use LOGFONTW.

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

Fix brokenness in the code that tries to ensure that all fonts
also have italic variants. Now the code hopefully actually does
what it was supposed to. (Which is not necessarily the right thing
to do, though. It can be argued that we should not list
synthesized italic font styles, we should just silently generate
them if asked for. We don't want synthesized italic (or synthesized
bold) styles showing up in the font selector. They don't show up
when using a fontconfig-based Pango backend either.) (#110521)

* pango/pangowin32-fontmap.c
(logfont_nosize_hash, logfont_nosize_equal): Don't use the
lfItalic field as such, just its nonzeroness. When being
enumerated, italic fonts show up with lfItalic=255, but our code
looks up italic versions of fonts by passing a key LOGFONT with
lfItalic=1.
(first_match): Not needed any more, see below.
(ensure_italic): This is now called on the entries in the
size_infos hash table, not families. The code used to randomly
look for the first matching font in size_infoswith the family name
being handled.
(pango_win32_font_map_init): Iterate through the size_infos hash
table with ensure_italic, not through the families table.

* pango/pangowin32-fontcache.c
(logfontw_hash, logfontw_equal): Look at just nonzeroness of
lfItalic here, too.

svn path=/trunk/; revision=2204

17 years ago=== Released 1.16.0 === PANGO_1_16_0
Behdad Esfahbod [Mon, 26 Feb 2007 19:17:30 +0000 (19:17 +0000)]
=== Released 1.16.0 ===

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

        * === Released 1.16.0 ===

        * configure.in: Version 1.16.0

        * configure.in: Require cairo 1.2.6 because of its important fixes.

        * NEWS: Updated.

        * README: Updated.

svn path=/trunk/; revision=2202

17 years agoXrefs for glib and cairo in the docs. Add object hierarchy to the docs.
Stefan Kost [Tue, 20 Feb 2007 20:49:22 +0000 (20:49 +0000)]
Xrefs for glib and cairo in the docs. Add object hierarchy to the docs.
* configure.in:
* docs/Makefile.am:
* docs/pango-docs.sgml:

svn path=/trunk/; revision=2201

17 years agoBug 409212 – Missing link flag prevents build with "-z defs" ld flags
Behdad Esfahbod [Sun, 18 Feb 2007 17:11:39 +0000 (17:11 +0000)]
Bug 409212 – Missing link flag prevents build with "-z defs" ld flags

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

        Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
        Patch from Loïc Minier

        * configure.in: Add xrender to pkg-config requirements for pangoxft.

svn path=/trunk/; revision=2200

17 years agoBug 409212 – Missing link flag prevents build with "-z defs" ld flags
Behdad Esfahbod [Sun, 18 Feb 2007 17:09:21 +0000 (17:09 +0000)]
Bug 409212 – Missing link flag prevents build with "-z defs" ld flags

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

        Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
        Patch from Loïc Minier

        * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD.

svn path=/trunk/; revision=2199

17 years agoBug 355987 – choosing font/shaper for spaces breaks Arabic runs on
Behdad Esfahbod [Sat, 17 Feb 2007 00:18:14 +0000 (00:18 +0000)]
Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on

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

        Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on
        spaces

        * pango/pango-context.c (itemize_state_process_run): Don't choose
        shaper for ASCII space char.

svn path=/trunk/; revision=2198

17 years agoBug 407087 – autogen.sh wants automake-1.7
Behdad Esfahbod [Fri, 16 Feb 2007 23:52:29 +0000 (23:52 +0000)]
Bug 407087 – autogen.sh wants automake-1.7

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

        Bug 407087 – autogen.sh wants automake-1.7

        * autogen.sh: Require automake 1.9, like configure.in does.

svn path=/trunk/; revision=2197

17 years ago=== Released 1.15.6 === PANGO_1_15_6
Behdad Esfahbod [Tue, 13 Feb 2007 04:43:48 +0000 (04:43 +0000)]
=== Released 1.15.6 ===

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

        * === Released 1.15.6 ===

        * configure.in: Version 1.15.6

        * NEWS: Updated.

svn path=/trunk/; revision=2195

17 years agoIf something has gone wrong in setting the family of the font description,
Owen Taylor [Tue, 13 Feb 2007 00:56:25 +0000 (00:56 +0000)]
If something has gone wrong in setting the family of the font description,

2007-02-13  Owen Taylor  <otaylor@redhat.com>

* pango/pangowin32-fontmap.c (pango_win32_insert_font): If
something has gone wrong in setting the family of the font
description, don't bother with the font as it isn't usable and
will cause crashes later anyway. (#404295)

svn path=/trunk/; revision=2194

17 years agoUse pangocairo.def only on Win32, not Cygwin. (#402373, "paul")
Tor Lillqvist [Wed, 31 Jan 2007 00:41:43 +0000 (00:41 +0000)]
Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul")

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

* pango/Makefile.am: Use pangocairo.def only on Win32, not
Cygwin. (#402373, "paul")

svn path=/trunk/; revision=2192