platform/upstream/pango.git
15 years agoImprove warning message.
Behdad Esfahbod [Thu, 8 Jan 2009 07:00:52 +0000 (07:00 +0000)]
Improve warning message.

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

        * pango/pango-context.c (itemize_state_process_run):
        Improve warning message.

svn path=/trunk/; revision=2796

15 years agoBug 549532 – Correction to the sample string for Hindi in
Behdad Esfahbod [Thu, 8 Jan 2009 06:17:03 +0000 (06:17 +0000)]
Bug 549532 – Correction to the sample string for Hindi in

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

        Bug 549532 – Correction to the sample string for Hindi in
        pango-language-sample-table.h

        * pango/pango-language-sample-table.h:
        Improve Hindi sample text.

svn path=/trunk/; revision=2795

15 years agoBug 566726 – Minor optimization
Behdad Esfahbod [Thu, 8 Jan 2009 01:33:23 +0000 (01:33 +0000)]
Bug 566726 – Minor optimization

2009-01-07  Behdad Esfahbod  <behdad@gnome.org>

        Bug 566726 – Minor optimization

        * pango/pango-context.c (get_shaper_and_font):
        Don't walk the fontset if there are no engines.

svn path=/trunk/; revision=2794

15 years agoBug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and
Behdad Esfahbod [Wed, 7 Jan 2009 23:45:22 +0000 (23:45 +0000)]
Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and

2009-01-07  Behdad Esfahbod  <behdad@gnome.org>

        Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and
        PANGO_ATTRIBUTE_INDEX_TO_TEXT_END

        * docs/pango-sections.txt:
        * docs/tmpl/text-attributes.sgml:
        * pango/pango-attributes.c (pango_attribute_init):
        * pango/pango-attributes.h:
        Add two new public macros:

                PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING
                PANGO_ATTRIBUTE_INDEX_TO_TEXT_END

svn path=/trunk/; revision=2793

15 years agoBug 551469 – Fold '@' to '-' when parsing PangoLanguages
Behdad Esfahbod [Wed, 7 Jan 2009 08:02:45 +0000 (08:02 +0000)]
Bug 551469 – Fold '@' to '-' when parsing PangoLanguages

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 551469 – Fold '@' to '-' when parsing PangoLanguages

        * pango/pango-language.c: Fold '@' to '-' when parsing PangoLanguages.

svn path=/trunk/; revision=2792

15 years agoBug 328206 – Update/remove some old files
Behdad Esfahbod [Tue, 6 Jan 2009 12:00:07 +0000 (12:00 +0000)]
Bug 328206 – Update/remove some old files

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 328206 – Update/remove some old files

        * docs/Makefile.am:
        * docs/TEXT/glossary:
        Remove some old files.

svn path=/trunk/; revision=2791

15 years agoBug 328206 – Update/remove some old files
Behdad Esfahbod [Tue, 6 Jan 2009 11:59:56 +0000 (11:59 +0000)]
Bug 328206 – Update/remove some old files

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 328206 – Update/remove some old files

        * tools/Makefile.am:
        * tools/add-copyright:
        * tools/compress-table.pl:
        * tools/maps/README:
        * tools/maps/tis-620:
        Remove some old files.

svn path=/trunk/; revision=2790

15 years agoRemove the old gen-script-for-lang tool, rename the new one to it.
Behdad Esfahbod [Tue, 6 Jan 2009 11:52:45 +0000 (11:52 +0000)]
Remove the old gen-script-for-lang tool, rename the new one to it.

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        * tools/Makefile.am:
        * tools/gen-script-for-lang.c:
        * tools/gen-script-for-lang-new.c:
        Remove the old gen-script-for-lang tool, rename the new one to it.

svn path=/trunk/; revision=2789

15 years agoBug 166709 – Handle font variants more consistently
Behdad Esfahbod [Tue, 6 Jan 2009 11:33:51 +0000 (11:33 +0000)]
Bug 166709 – Handle font variants more consistently

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 166709 – Handle font variants more consistently

        * configure.in: Require fontconfig >= 2.5.0

        * pango/fonts.c: Parse "Roman" as style=normal instead of
        weight=normal.  Doesn't make much difference in reality.

        * pango/pangofc-fontmap.c (pango_fc_convert_weight_to_fc),
        (pango_fc_convert_weight_to_pango): Update to reflect newly
        added weights.

svn path=/trunk/; revision=2788

15 years agoBug 166709 – Handle font variants more consistently
Behdad Esfahbod [Tue, 6 Jan 2009 11:07:02 +0000 (11:07 +0000)]
Bug 166709 – Handle font variants more consistently

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 166709 – Handle font variants more consistently

        * pango/pango-font.h:
        Add enum values PANGO_WEIGHT_BOOK and PANGO_WEIGHT_ULTRAHEAVY.

        * pango/fonts.c:
        * docs/tmpl/fonts.sgml:
        Add new weights with their aliases, as well as aliasing "Roman" to the
        normal weight.

svn path=/trunk/; revision=2787

15 years agoMake it Unicode safe.
Behdad Esfahbod [Tue, 6 Jan 2009 10:40:30 +0000 (10:40 +0000)]
Make it Unicode safe.

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        * pango/fonts.c (pango_font_description_to_filename):
        Make it Unicode safe.

svn path=/trunk/; revision=2786

15 years agoMove the parse_*() functions in fonts.c and have them share tables with
Behdad Esfahbod [Tue, 6 Jan 2009 10:36:05 +0000 (10:36 +0000)]
Move the parse_*() functions in fonts.c and have them share tables with

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        * pango/fonts.c (find_field), (parse_field), (pango_parse_style),
        (pango_parse_variant), (pango_parse_weight), (pango_parse_stretch):
        Move the parse_*() functions in fonts.c and have them share tables
        with pango_font_description_to/from_string().

        * pango/pango-utils.c (parse_int), (pango_parse_enum):
        Accept integers in pango_parse_enum().

svn path=/trunk/; revision=2785

15 years agoBug 166676 – pango_fc_font_map_finalize
Behdad Esfahbod [Tue, 6 Jan 2009 09:52:00 +0000 (09:52 +0000)]
Bug 166676 – pango_fc_font_map_finalize

2009-01-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 166676 – pango_fc_font_map_finalize

        * pango/pangofc-fontmap.c (pango_fc_font_map_finalize),
        (pango_fc_face_describe), (pango_fc_face_list_sizes),
        (pango_fc_face_finalize), (pango_fc_face_class_init),
        (pango_fc_family_list_faces), (pango_fc_family_finalize),
        (pango_fc_family_class_init):
        Finalize families and faces.

svn path=/trunk/; revision=2784

15 years agoBug 164001 - pango-querymodules doesn't work uninstalled on win32
Tor Lillqvist [Tue, 6 Jan 2009 09:36:52 +0000 (09:36 +0000)]
Bug 164001 - pango-querymodules doesn't work uninstalled on win32

2009-01-06  Tor Lillqvist  <tml@iki.fi>

Bug 164001 - pango-querymodules doesn't work uninstalled on win32

* pango/pango-utils.c (pango_get_lib_subdirectory): When running
against an uninstalled, compile-time DLL, in the libtool-style
.libs folder, use the compile-time install prefix.

svn path=/trunk/; revision=2783

15 years agoBug 384362 – pango can't select some font styles
Behdad Esfahbod [Sun, 4 Jan 2009 02:25:59 +0000 (02:25 +0000)]
Bug 384362 – pango can't select some font styles

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

        Bug 384362 – pango can't select some font styles

        * pango/pango-font.h:
        Add enum values PANGO_WEIGHT_THIN and PANGO_WEIGHT_MEDIUM to
        PangoWeight.

        * pango/fonts.c: Parse "Thin", "Extra-Light", "Regular", "Demi-Bold",
        "Extra-Bold", and "Black" as weight descriptors (from the OpenType
        spec).

svn path=/trunk/; revision=2782

15 years agoBug 168085 – numeric styles in pango_font_description_to_string()
Behdad Esfahbod [Sun, 4 Jan 2009 02:11:19 +0000 (02:11 +0000)]
Bug 168085 – numeric styles in pango_font_description_to_string()

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

        Bug 168085 – numeric styles in pango_font_description_to_string()

        * pango/fonts.c (parse_int), (find_field), (find_field_any),
        (append_field), (pango_font_description_to_string):
        Print-out, and parse, numeric styles correctly.  Things like
        "DejaVu Sans weight=100" parse correctly now.

svn path=/trunk/; revision=2781

15 years agoBug 529591 – Code related to malayalam is misplaced. Patch from Rahul
Behdad Esfahbod [Sun, 4 Jan 2009 01:27:49 +0000 (01:27 +0000)]
Bug 529591 – Code related to malayalam is misplaced. Patch from Rahul

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

        Bug 529591 – Code related to malayalam is misplaced.
        Patch from Rahul Bhalerao

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

svn path=/trunk/; revision=2780

15 years agoBug 515807 – Don't bind modules lazily
Behdad Esfahbod [Sat, 3 Jan 2009 01:06:06 +0000 (01:06 +0000)]
Bug 515807 – Don't bind modules lazily

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 515807 – Don't bind modules lazily

        * pango/modules.c (pango_module_load): Don't bind modules lazy.

svn path=/trunk/; revision=2779

15 years agoBug 512662 – Update check.docs for pango-undeclared.txt
Behdad Esfahbod [Sat, 3 Jan 2009 01:03:45 +0000 (01:03 +0000)]
Bug 512662 – Update check.docs for pango-undeclared.txt

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 512662 – Update check.docs for pango-undeclared.txt

        * docs/Makefile.am:
        * docs/check.docs:
        Sync to the version in cairo.

svn path=/trunk/; revision=2778

15 years agoMake sure we measure layout with the same surface type as the final
Behdad Esfahbod [Fri, 2 Jan 2009 11:39:51 +0000 (11:39 +0000)]
Make sure we measure layout with the same surface type as the final

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/viewer-main.c (main):
        * pango-view/viewer-pangocairo.c (pangocairo_view_render):
        * pango-view/viewer-pangoft2.c (pangoft2_view_render):
        * pango-view/viewer-pangox.c (pangox_view_render):
        * pango-view/viewer-pangoxft.c (pangoxft_view_render):
        * pango-view/viewer.h:
        Make sure we measure layout with the same surface type as the
        final target.  Also reduces fonts loaded by the pangocairo backend.

svn path=/trunk/; revision=2777

15 years agoCompletely ignore CTM translation offsets.
Behdad Esfahbod [Fri, 2 Jan 2009 08:41:42 +0000 (08:41 +0000)]
Completely ignore CTM translation offsets.

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-context.c (_pango_cairo_update_context):
        Completely ignore CTM translation offsets.

svn path=/trunk/; revision=2776

15 years agoFinalize FreeType library after finalizing the FC fontmap. Fixes segfault
Behdad Esfahbod [Fri, 2 Jan 2009 07:19:03 +0000 (07:19 +0000)]
Finalize FreeType library after finalizing the FC fontmap. Fixes segfault

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize):
        * pango/pangoft2-fontmap.c (pango_ft2_font_map_finalize):
        Finalize FreeType library after finalizing the FC fontmap.  Fixes
        segfault in the PangoFT2FontMap's finalize.

svn path=/trunk/; revision=2775

15 years agoFix possible reference leak when fallback is disabled.
Behdad Esfahbod [Fri, 2 Jan 2009 07:00:36 +0000 (07:00 +0000)]
Fix possible reference leak when fallback is disabled.

2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-context.c (shaper_font_element_destroy),
        (get_shaper_font_cache), (shaper_font_cache_insert),
        (get_shaper_and_font_foreach), (itemize_state_process_run):
        Fix possible reference leak when fallback is disabled.

svn path=/trunk/; revision=2774

15 years agoBug 565644 – Maybe pango_font_descriptions_free is deprecated
Behdad Esfahbod [Fri, 26 Dec 2008 05:41:34 +0000 (05:41 +0000)]
Bug 565644 – Maybe pango_font_descriptions_free is deprecated

2008-12-26  Behdad Esfahbod  <behdad@gnome.org>

        Bug 565644 – Maybe pango_font_descriptions_free is deprecated

        * pango/fonts.c: Adjust docs.

svn path=/trunk/; revision=2773

15 years agoCall cairo_debug_reset_static_data().
Behdad Esfahbod [Fri, 26 Dec 2008 05:09:58 +0000 (05:09 +0000)]
Call cairo_debug_reset_static_data().

2008-12-26  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/viewer-pangocairo.c (pangocairo_view_destroy):
        Call cairo_debug_reset_static_data().

svn path=/trunk/; revision=2772

15 years agoFix all warnings in modules/.
Behdad Esfahbod [Fri, 26 Dec 2008 05:09:48 +0000 (05:09 +0000)]
Fix all warnings in modules/.

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        * modules/arabic/arabic-fc.c (arabic_engine_shape):
        * modules/arabic/arabic-lang.c (arabic_engine_break):
        * modules/basic/basic-fc.c (basic_engine_shape):
        * modules/basic/basic-x.c (find_char), (conv_8bit), (conv_eucjp),
        (conv_16bit), (conv_16bit_MSB_on), (conv_gb18030_1), (conv_euctw),
        (conv_ucs4), (basic_engine_shape), (basic_engine_covers):
        * modules/hangul/hangul-fc.c (hangul_engine_shape):
        * modules/hebrew/hebrew-fc.c (add_cluster), (fallback_shape):
        * modules/indic/indic-lang.c (indic_engine_break):
        * modules/khmer/khmer-fc.c (khmer_engine_shape):
        * modules/syriac/syriac-fc.c (syriac_engine_shape):
        * modules/thai/thai-fc.c (get_glyph_index_tis),
        (thai_engine_shape), (thai_make_unknown_glyph):
        * modules/thai/thai-lang.c (thai_engine_break):
        * modules/thai/thai-shaper.c (get_glyphs_list):
        * modules/tibetan/tibetan-fc.c (tibetan_engine_shape):
        Fix all warnings in modules/.

svn path=/trunk/; revision=2771

15 years agoFix warning.
Behdad Esfahbod [Fri, 26 Dec 2008 03:23:09 +0000 (03:23 +0000)]
Fix warning.

svn path=/trunk/; revision=2770

15 years agoFix all warnings in pango-view/
Behdad Esfahbod [Fri, 26 Dec 2008 03:22:31 +0000 (03:22 +0000)]
Fix all warnings in pango-view/

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/viewer-main.c (main):
        * pango-view/viewer-pangocairo.c (pangocairo_view_create),
        (transform_callback), (pangocairo_view_render),
        (pangocairo_view_write):
        * pango-view/viewer-pangoft2.c (substitute_func),
        (pangoft2_view_create), (pangoft2_view_create_surface),
        (pangoft2_view_destroy_surface), (render_callback),
        (pangoft2_view_render), (pangoft2_view_write):
        * pango-view/viewer-pangox.c (render_callback):
        * pango-view/viewer-pangoxft.c (default_substitute),
        (render_callback):
        * pango-view/viewer-render.c (parse_enum), (parse_align),
        (parse_ellipsis), (parse_gravity), (parse_gravity_hint),
        (parse_hinting), (parse_wrap), (parse_backend), (show_version):
        * pango-view/viewer-x.c (x_view_init):
        Fix all warnings in pango-view/

svn path=/trunk/; revision=2769

15 years agoCleanup fontmap finalization.
Behdad Esfahbod [Fri, 26 Dec 2008 02:55:57 +0000 (02:55 +0000)]
Cleanup fontmap finalization.

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangofc-fontmap.c (pango_fc_font_map_finalize),
        (pango_fc_font_map_shutdown):
        Cleanup fontmap finalization.

svn path=/trunk/; revision=2768

15 years agoBug 469049 – Fix all compiler warnings
Behdad Esfahbod [Fri, 26 Dec 2008 02:31:47 +0000 (02:31 +0000)]
Bug 469049 – Fix all compiler warnings

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        Bug 469049 – Fix all compiler warnings

        * pango-view/viewer-pangocairo.c (render_callback):
        * pango/fonts.c (append_field), (pango_font_description_to_string):
        * pango/opentype/harfbuzz-dump.c:
        * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels):
        * pango/pango-coverage.c (pango_coverage_set):
        * pango/pango-markup.c (span_parse_func):
        * pango/pango-renderer.c
        (pango_renderer_default_draw_error_underline):
        * pango/pango-utils.c (pango_scan_string):
        * pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid),
        (draw_error_underline), (pango_cairo_renderer_class_init):
        Fix all the remaining warnings.

svn path=/trunk/; revision=2767

15 years agoFix more warnings.
Behdad Esfahbod [Fri, 26 Dec 2008 02:31:35 +0000 (02:31 +0000)]
Fix more warnings.

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/modules.c (pango_module_load), (script_info_free):
        * pango/opentype/harfbuzz-gpos.c (HB_Load_GPOS_Table):
        * pango/pango-bidi-type.c:
        * pango/pango-coverage.c (pango_coverage_ref),
        (pango_coverage_unref):
        * pango/pango-engine.c (pango_engine_shape_real_covers),
        (fallback_engine_shape), (fallback_engine_covers):
        * pango/pango-fontmap.c (pango_font_map_init):
        * pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
        (pango_ot_ruleset_new):
        * pango/pangofc-decoder.c (pango_fc_decoder_init),
        (pango_fc_decoder_class_init):
        * pango/pangofc-font.c (pango_fc_font_find_shaper),
        (pango_fc_font_get_coverage):
        * pango/pangofc-fontmap.c (pango_fc_font_map_list_families),
        (pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
        (get_first_font), (_pango_fc_font_map_get_coverage),
        (cleanup_font), (pango_fc_font_description_from_pattern),
        (pango_fc_face_list_sizes), (pango_fc_family_list_faces):
        * pango/pangoft2-fontmap.c (pango_ft2_font_map_get_resolution):
        * pango/pangoft2-render.c (pango_ft2_renderer_init),
        (pango_ft2_renderer_draw_trapezoid):
        * pango/pangoft2.c (pango_ft2_font_get_face),
        (pango_ft2_font_real_unlock_face),
        (pango_ft2_free_glyph_info_callback):
        Fix more warnings.

svn path=/trunk/; revision=2766

15 years agoFix warnings.
Behdad Esfahbod [Fri, 26 Dec 2008 02:20:59 +0000 (02:20 +0000)]
Fix warnings.

2008-12-25  Behdad Esfahbod  <behdad@gnome.org>

        * pango/break.c (pango_default_break):
        * pango/fonts.c (find_field_any), (pango_font_class_init),
        (pango_font_init), (pango_font_metrics_ref),
        (pango_font_metrics_unref), (pango_font_family_class_init),
        (pango_font_family_init), (pango_font_face_class_init),
        (pango_font_face_init):
        * pango/pango-attributes.c (pango_attr_list_ref),
        (pango_attr_list_unref), (pango_attr_iterator_get_font):
        * pango/pango-layout.c (pango_layout_set_height), (extents_free),
        (no_shape_filter_func), (pango_layout_line_ref),
        (pango_layout_line_unref), (pango_layout_get_item_properties):
        * pango/pango-markup.c (end_element_handler), (text_handler),
        (b_parse_func), (big_parse_func), (span_parse_func),
        (i_parse_func), (markup_parse_func), (s_parse_func),
        (sub_parse_func), (sup_parse_func), (small_parse_func),
        (tt_parse_func), (u_parse_func):
        * pango/pango-ot-info.c (get_glyph_class):
        * pango/pango-renderer.c (get_item_properties),
        (pango_renderer_default_prepare_run):
        * pango/pango-utils.c (_pango_shape_shape):
        * pango/pangocairo-fcfontmap.c
        (pango_cairo_fc_font_map_get_font_type),
        (pango_cairo_fc_font_map_context_substitute),
        (pango_cairo_fc_font_map_context_key_get),
        (pango_cairo_fc_font_map_context_key_copy),
        (pango_cairo_fc_font_map_context_key_free),
        (pango_cairo_fc_font_map_context_key_hash),
        (pango_cairo_fc_font_map_context_key_equal):
        * pango/pangocairo-fontmap.c
        (pango_cairo_font_map_new_for_font_type),
        (pango_cairo_font_map_set_default):
        * pango/pangocairo-render.c (pango_cairo_renderer_init):
        * pango/pangox-fontcache.c (free_cache_entry):
        * pango/pangox-fontmap.c (close_display_cb),
        (list_families_foreach), (pango_x_font_map_load_font),
        (ignore_error):
        * pango/pangox.c (average_width_foreach), (subfonts_foreach),
        (pango_x_font_find_shaper), (pango_x_get_unknown_glyph),
        (pango_x_get_item_properties), (pango_x_apply_ligatures),
        (pango_x_font_get_unknown_glyph):
        * pango/pangoxft-fontmap.c (pango_xft_font_map_init),
        (close_display_cb):
        * pango/querymodules.c (show_version):
        Fix warnings.

svn path=/trunk/; revision=2765

15 years agoReword.
Behdad Esfahbod [Mon, 22 Dec 2008 21:16:03 +0000 (21:16 +0000)]
Reword.

svn path=/trunk/; revision=2764

15 years agoBug 565379 – pango_font_description_better_match some style attributes
Behdad Esfahbod [Mon, 22 Dec 2008 21:15:20 +0000 (21:15 +0000)]
Bug 565379 – pango_font_description_better_match some style attributes

2008-12-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 565379 – pango_font_description_better_match some style attributes
        of old_match are not checked

        * pango/fonts.c: Improve docs.

svn path=/trunk/; revision=2763

15 years agoBug 564877 – pango-engine.h: PANGO_MODULE_PREFIX and G_MODULE_EXPORT
Behdad Esfahbod [Wed, 17 Dec 2008 20:18:59 +0000 (20:18 +0000)]
Bug 564877 – pango-engine.h: PANGO_MODULE_PREFIX and G_MODULE_EXPORT

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

        Bug 564877 – pango-engine.h: PANGO_MODULE_PREFIX and G_MODULE_EXPORT

        * pango/pango-engine.h: Don't add G_MODULE_EXPORT.  This
        roles back a change introduced in 1.22.4.

svn path=/trunk/; revision=2762

15 years ago=== Released 1.22.4 === PANGO_1_22_4
Behdad Esfahbod [Mon, 15 Dec 2008 20:52:39 +0000 (20:52 +0000)]
=== Released 1.22.4 ===

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

        * === Released 1.22.4 ===

        * configure.in: Version 1.22.4

        * NEWS: Updated.

svn path=/trunk/; revision=2760

15 years agoBug 564644 – Not complete description of the
Behdad Esfahbod [Mon, 15 Dec 2008 19:37:25 +0000 (19:37 +0000)]
Bug 564644 – Not complete description of the

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

        Bug 564644 – Not complete description of the
        pango_font_description_better_match function

        * pango/fonts.c: Improve docs even more.

svn path=/trunk/; revision=2759

15 years agoBug 564644 – Not complete description of the
Behdad Esfahbod [Mon, 15 Dec 2008 18:17:21 +0000 (18:17 +0000)]
Bug 564644 – Not complete description of the

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

        Bug 564644 – Not complete description of the
        pango_font_description_better_match function

        * pango/fonts.c: Improve docs.

svn path=/trunk/; revision=2758

15 years agoBug 563898 – Generated output is not deterministic
Behdad Esfahbod [Sun, 14 Dec 2008 18:22:53 +0000 (18:22 +0000)]
Bug 563898 – Generated output is not deterministic

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

        Bug 563898 – Generated output is not deterministic

        * docs/pango-querymodules.xml:
        * docs/pango_markup.sgml:
        Add section ids, such that generated HTML is deterministic.

svn path=/trunk/; revision=2757

15 years agoDon't call exit(). Let us crash.
Behdad Esfahbod [Tue, 9 Dec 2008 21:42:06 +0000 (21:42 +0000)]
Don't call exit(). Let us crash.

2008-12-09  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pangoxft-font.c (pango_xft_font_init),
        (load_fallback_font): Don't call exit().  Let us crash.

svn path=/trunk/; revision=2756

15 years agoBug 563803 – pango_renderer_finalize fails to call parent finalize
Behdad Esfahbod [Tue, 9 Dec 2008 10:09:30 +0000 (10:09 +0000)]
Bug 563803 – pango_renderer_finalize fails to call parent finalize

2008-12-09  Behdad Esfahbod  <behdad@gnome.org>

        Bug 563803 – pango_renderer_finalize fails to call parent finalize

        * pango/pango-renderer.c (pango_renderer_class_init),
        (pango_renderer_finalize): Call parent finalize.

        * pango/pango-renderer.c (add_strikethrough),
        (pango_renderer_default_draw_glyph_item),
        (pango_renderer_default_draw_error_underline):
        Clean up a bit.

svn path=/trunk/; revision=2755

15 years agoBug 499626 – Space should be optional after comma in
Behdad Esfahbod [Mon, 8 Dec 2008 03:59:49 +0000 (03:59 +0000)]
Bug 499626 – Space should be optional after comma in

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

        Bug 499626 – Space should be optional after comma in
        PangoFontDescription input string

        * pango/fonts.c (getword): Don't require space after comma.

svn path=/trunk/; revision=2754

15 years agoBug 499624 – Spaces around commas in PangoFontDescription family name
Behdad Esfahbod [Mon, 8 Dec 2008 03:53:12 +0000 (03:53 +0000)]
Bug 499624 – Spaces around commas in PangoFontDescription family name

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

        Bug 499624 – Spaces around commas in PangoFontDescription family name
        should be trimmed

        * pango/fonts.c (pango_font_description_from_string):
        * pango/pangofc-fontmap.c (pango_fc_make_pattern):
        Do it in pango_font_description_from_string() instead of pangofc
        backend.

svn path=/trunk/; revision=2753

15 years agoBug 499624 – Spaces around commas in PangoFontDescription family name
Behdad Esfahbod [Mon, 8 Dec 2008 03:41:22 +0000 (03:41 +0000)]
Bug 499624 – Spaces around commas in PangoFontDescription family name

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

        Bug 499624 – Spaces around commas in PangoFontDescription family name
        should be trimmed

        * pango/pangofc-fontmap.c (pango_fc_make_pattern): Trim family strings
        before adding to pattern.

svn path=/trunk/; revision=2752

15 years agoBug 563557 – set g_get_prgname() in fc pattern
Behdad Esfahbod [Mon, 8 Dec 2008 03:28:29 +0000 (03:28 +0000)]
Bug 563557 – set g_get_prgname() in fc pattern

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

        Bug 563557 – set g_get_prgname() in fc pattern

        * docs/pango-sections.txt:
        * pango/pangofc-fontmap.c (pango_fc_make_pattern):
        * pango/pangofc-fontmap.h:
        Add PANGO_FC_PRGNAME which is the fontconfig element "pangoprgname".
        Populate it on all our fontconfig search patterns using
        g_get_prgname().  See bug for sample use.

svn path=/trunk/; revision=2751

15 years agoAdd G_MODULE_EXPORT annotation for modules.
Behdad Esfahbod [Mon, 8 Dec 2008 01:01:40 +0000 (01:01 +0000)]
Add G_MODULE_EXPORT annotation for modules.

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

        * pango/pango-engine.h: Add G_MODULE_EXPORT annotation for modules.

svn path=/trunk/; revision=2750

15 years agoFix docs re NULL language. Also allow NULL desc.
Behdad Esfahbod [Sun, 7 Dec 2008 07:36:15 +0000 (07:36 +0000)]
Fix docs re NULL language. Also allow NULL desc.

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

        * pango/pango-context.c (pango_context_get_metrics):
        Fix docs re NULL language.  Also allow NULL desc.

svn path=/trunk/; revision=2749

15 years agoAdd more debug info if creating scaled font failed.
Behdad Esfahbod [Sat, 6 Dec 2008 22:17:16 +0000 (22:17 +0000)]
Add more debug info if creating scaled font failed.

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

        * pango/pangocairo-font.c
        (_pango_cairo_font_private_get_scaled_font):
        Add more debug info if creating scaled font failed.

svn path=/trunk/; revision=2748

15 years agoBug 563356 – The input area of firefox and the blank width after text in
Behdad Esfahbod [Sat, 6 Dec 2008 01:44:03 +0000 (01:44 +0000)]
Bug 563356 – The input area of firefox and the blank width after text in

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

        Bug 563356 – The input area of firefox and the blank width after text
        in gnome-menu was stretched too wide, under pango-1.22.3

        * docs/tmpl/fonts.sgml:
        * pango/pango-impl-utils.h:
        * pango/pangocairo-atsuifont.c
        (pango_cairo_atsui_font_create_metrics_for_context):
        * pango/pangocairo-win32font.c
        (pango_cairo_win32_font_create_metrics_for_context):
        * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
        For approximate_char_width calculation take each char's width into
        account.  That is, do a weighted average instead of uniform average.
        g_unichar_iszerowidth() chars count as 0, g_unichar_iswide() chars
        count 2, and the rest count as 1.  Pretty much wcwidth() behavior.
        See bug report for rationale.

svn path=/trunk/; revision=2747

15 years agoBug 562574 – Pangocariowin32 is leaking every cairo font it ever creates
Behdad Esfahbod [Fri, 28 Nov 2008 17:34:57 +0000 (17:34 +0000)]
Bug 562574 – Pangocariowin32 is leaking every cairo font it ever creates

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

        Bug 562574 – Pangocariowin32 is leaking every cairo font it ever
        creates

        * pango/pangocairo-atsuifont.c (pango_cairo_atsui_font_finalize):
        * pango/pangocairo-win32font.c (pango_cairo_win32_font_finalize):
        Finalize shared pangocairo font resources.  Oops!

        * pango/pangocairo-font.c (_pango_cairo_font_private_finalize):
        Protect against multiple calls to finalize.  This is practiced by the
        pangocairo-fcfont when a font is shutdown and then finalized.

svn path=/trunk/; revision=2746

15 years agoHandle close_path correctly.
Behdad Esfahbod [Wed, 26 Nov 2008 18:05:39 +0000 (18:05 +0000)]
Handle close_path correctly.

2008-11-26  Behdad Esfahbod  <behdad@gnome.org>

        * examples/cairotwisted.c (parametrize_path), (point_on_path):
        Handle close_path correctly.

svn path=/trunk/; revision=2745

15 years ago=== Released 1.22.3 === PANGO_1_22_3
Behdad Esfahbod [Sun, 23 Nov 2008 14:16:55 +0000 (14:16 +0000)]
=== Released 1.22.3 ===

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

        * === Released 1.22.3 ===

        * configure.in: Version 1.22.3

        * NEWS: Updated.

svn path=/trunk/; revision=2742

15 years agoMinor indentation fixes for previous commit.
Theppitak Karoonboonyanan [Sat, 22 Nov 2008 04:16:43 +0000 (04:16 +0000)]
Minor indentation fixes for previous commit.

2008-11-22  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* modules/thai/thai-lang.c (thai_engine_break):
Minor indentation fixes for previous commit.

svn path=/trunk/; revision=2741

15 years agoBug 561740 – Use stack allocation for thai_engine_break
Chris Wilson [Sat, 22 Nov 2008 00:10:07 +0000 (00:10 +0000)]
Bug 561740 – Use stack allocation for thai_engine_break

2008-11-22  Chris Wilson  <chris@chris-wilson.co.uk>

Bug 561740 – Use stack allocation for thai_engine_break

* modules/thai/thai-lang.c (utf8_to_tis), (thai_engine_break):
Small tweak to allocate small, temporary arrays on the stack.

svn path=/trunk/; revision=2740

15 years agoBug 561779 – incorrect calculations in pango_matrix_concat
Behdad Esfahbod [Fri, 21 Nov 2008 21:52:36 +0000 (21:52 +0000)]
Bug 561779 – incorrect calculations in pango_matrix_concat

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

        Bug 561779 – incorrect calculations in pango_matrix_concat
        implementation

        * pango/pango-matrix.c (pango_matrix_concat): Fix bug in y0
        computation.

svn path=/trunk/; revision=2739

15 years agoBug 560730 – pango 1.22.2 build failure on Solaris 10, too many array
Behdad Esfahbod [Wed, 19 Nov 2008 19:52:30 +0000 (19:52 +0000)]
Bug 560730 – pango 1.22.2 build failure on Solaris 10, too many array

2008-11-19  Behdad Esfahbod  <behdad@gnome.org>

        Bug 560730 – pango 1.22.2 build failure on Solaris 10, too many array
        initializers in pango-language.c

        * pango/pango-language.c: Don't use anonymous struct.

svn path=/trunk/; revision=2738

15 years agoWrite error code in capital hex.
Behdad Esfahbod [Wed, 19 Nov 2008 19:52:22 +0000 (19:52 +0000)]
Write error code in capital hex.

2008-11-19  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-ot-info.c (pango_ot_info_get_gdef),
        (pango_ot_info_get_gsub), (pango_ot_info_get_gpos):
        Write error code in capital hex.

svn path=/trunk/; revision=2737

15 years ago=== Released 1.22.2 === PANGO_1_22_2
Behdad Esfahbod [Tue, 28 Oct 2008 19:31:17 +0000 (19:31 +0000)]
=== Released 1.22.2 ===

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

        * === Released 1.22.2 ===

        * configure.in: Version 1.22.2

        * NEWS: Updated.

svn path=/trunk/; revision=2735

15 years agoBug 558254 – Internal reference handling messed up
Behdad Esfahbod [Tue, 28 Oct 2008 17:09:21 +0000 (17:09 +0000)]
Bug 558254 – Internal reference handling messed up

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

        Bug 558254 – Internal reference handling messed up

        * pango/pangofc-font.c (pango_fc_font_get_coverage):
        * pango/pangofc-fontmap.c (pango_fc_font_map_finalize):
        Make sure fonts->fontmap is set to NULL when fontmap finalizes.

svn path=/trunk/; revision=2734

15 years agoBug 558107 – is_monospace always returns FALSE in pangoatsui
Richard Hult [Tue, 28 Oct 2008 13:38:30 +0000 (13:38 +0000)]
Bug 558107 – is_monospace always returns FALSE in pangoatsui

2008-10-27  Richard Hult  <richard@imendio.com>

Bug 558107 – is_monospace always returns FALSE in pangoatsui

* pango/pangoatsui-fontmap.c: (pango_atsui_family_is_monospace),
(pango_atsui_font_map_init): Mark families whose faces have the
NSFixedPitchFontMask set as monospaced, and use this in the
is_monospace implementation.

svn path=/trunk/; revision=2733

15 years agoBug 557620 – pango_font_description_from_string not correct
Behdad Esfahbod [Thu, 23 Oct 2008 18:24:48 +0000 (18:24 +0000)]
Bug 557620 – pango_font_description_from_string not correct

2008-10-23  Behdad Esfahbod  <behdad@gnome.org>

        Bug 557620 – pango_font_description_from_string not correct

        * pango/fonts.c (find_field_any): Fix parsing of "normal" when
        not at the end of string.

svn path=/trunk/; revision=2732

15 years ago=== Released 1.22.1 ===
Behdad Esfahbod [Thu, 23 Oct 2008 18:24:38 +0000 (18:24 +0000)]
=== Released 1.22.1 ===

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

        * === Released 1.22.1 ===

        * configure.in: Version 1.22.1

        * NEWS: Updated.

svn path=/trunk/; revision=2731

15 years agoBug 528272 – "Error loading GPOS table 5503" when using katakana
Behdad Esfahbod [Wed, 15 Oct 2008 03:45:29 +0000 (03:45 +0000)]
Bug 528272 – "Error loading GPOS table 5503" when using katakana

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

        Bug 528272 – "Error loading GPOS table 5503" when using katakana
        characters

        * pango/opentype/harfbuzz-gpos.c (Load_Mark2Array): Skip parsing
        null anchor tables.

svn path=/trunk/; revision=2730

15 years agoBug 552107 – Small libtool fixes
Behdad Esfahbod [Fri, 10 Oct 2008 23:59:29 +0000 (23:59 +0000)]
Bug 552107 – Small libtool fixes

2008-10-10  Behdad Esfahbod  <behdad@gnome.org>

        Bug 552107 – Small libtool fixes

        * configure.in: Regenerate libtool early, quote $deplibs_check_method.
        Patch by Patryk Zawadzki

svn path=/trunk/; revision=2729

15 years agoFix a gcc warning.
Kjartan Maraas [Fri, 10 Oct 2008 20:21:24 +0000 (20:21 +0000)]
Fix a gcc warning.

2008-10-10  Kjartan Maraas  <kmaraas@gnome.org>

* pango/pangox.c: (get_context_info): Fix a gcc warning.

svn path=/trunk/; revision=2728

15 years agoBug 539623 – document that pango_color_parse accepts NULL
Christian Persch [Wed, 8 Oct 2008 20:49:25 +0000 (20:49 +0000)]
Bug 539623 – document that pango_color_parse accepts NULL

svn path=/trunk/; revision=2727

15 years agoBug 555219 – Memory leak when using pango_layout_iter_copy Patch from
Behdad Esfahbod [Mon, 6 Oct 2008 16:09:54 +0000 (16:09 +0000)]
Bug 555219 – Memory leak when using pango_layout_iter_copy Patch from

2008-10-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 555219 – Memory leak when using pango_layout_iter_copy
        Patch from Falk Rohsiepe

        * pango/pango-layout.c (pango_layout_iter_copy):  Use gslice, not
        memdup.  Oops!

svn path=/trunk/; revision=2726

15 years agoFix left-to-right positioning. Reported by Peter Hunter.
Behdad Esfahbod [Mon, 29 Sep 2008 22:28:47 +0000 (22:28 +0000)]
Fix left-to-right positioning. Reported by Peter Hunter.

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

        * pango/opentype/harfbuzz-gpos.c (Position_CursiveChain):
        Fix left-to-right positioning.  Reported by Peter Hunter.

svn path=/trunk/; revision=2725

15 years agoImprove Japanese text
Behdad Esfahbod [Tue, 23 Sep 2008 01:39:03 +0000 (01:39 +0000)]
Improve Japanese text

svn path=/trunk/; revision=2724

15 years ago=== Released 1.22.0 === PANGO_1_22_0
Behdad Esfahbod [Mon, 22 Sep 2008 22:34:34 +0000 (22:34 +0000)]
=== Released 1.22.0 ===

2008-09-22  Behdad Esfahbod  <behdad@gnome.org>

        * === Released 1.22.0 ===

        * configure.in: Version 1.22.0

        * NEWS: Updated.

svn path=/trunk/; revision=2722

15 years agoUpdate to cairo-1.7.6 API.
Behdad Esfahbod [Mon, 22 Sep 2008 22:34:24 +0000 (22:34 +0000)]
Update to cairo-1.7.6 API.

2008-09-22  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in:
        * pango/pangocairo-render.c
        (pango_cairo_renderer_show_text_glyphs), (save_current_point):
        Update to cairo-1.7.6 API.

svn path=/trunk/; revision=2721

15 years agoBug 552993 – Romanian pangram
Behdad Esfahbod [Sat, 20 Sep 2008 20:36:40 +0000 (20:36 +0000)]
Bug 552993 – Romanian pangram

2008-09-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 552993 – Romanian pangram

        * pango/pango-language-sample-table.h: New Romanian sample text
        from Misu Moldovan.

svn path=/trunk/; revision=2720

15 years agoDrop pango.aliases as we have a default such built-in nowadays.
Tor Lillqvist [Thu, 18 Sep 2008 20:25:25 +0000 (20:25 +0000)]
Drop pango.aliases as we have a default such built-in nowadays.

2008-09-18  Tor Lillqvist  <tml@novell.com>

* pango-zip.sh.in: Drop pango.aliases as we have a default such
built-in nowadays.

svn path=/trunk/; revision=2719

15 years agoDon't use the deprectated g_win32_get_package_installation_subdirectory().
Tor Lillqvist [Sat, 13 Sep 2008 19:57:37 +0000 (19:57 +0000)]
Don't use the deprectated g_win32_get_package_installation_subdirectory().

2008-09-13  Tor Lillqvist  <tml@novell.com>

* pango/pango-utils.c: Don't use the deprectated
g_win32_get_package_installation_subdirectory(). Use
g_win32_get_package_installation_directory_of_module()
instead. Also, don't use the deprecated silly
G_WIN32_DLLMAIN_FOR_DLL_NAME() macro, but an explicit minimal
DllMain() that just saves the DLL handle.

svn path=/trunk/; revision=2718

15 years agoBug 551865 – Can't change justification of a PangoLayout after first
Behdad Esfahbod [Thu, 11 Sep 2008 20:59:59 +0000 (20:59 +0000)]
Bug 551865 – Can't change justification of a PangoLayout after first

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

        Bug 551865 – Can't change justification of a PangoLayout after first
        draw

        * pango/pango-layout.c (pango_layout_set_attributes),
        (pango_layout_set_font_description), (pango_layout_set_justify),
        (pango_layout_set_alignment), (pango_layout_set_tabs):
        Invalidate layout after property change.  Oops!

svn path=/trunk/; revision=2717

15 years agoBug 551416 - pangowin32-fontcache.c: argument is different type
Tor Lillqvist [Mon, 8 Sep 2008 20:19:49 +0000 (20:19 +0000)]
Bug 551416 - pangowin32-fontcache.c: argument is different type

2008-09-08  Tor Lillqvist  <tml@novell.com>

Bug 551416 - pangowin32-fontcache.c: argument is different type

* pango/pangowin32-fontcache.c: Pass address of int to
g_atomic_int_inc().

svn path=/trunk/; revision=2716

15 years ago=== Released 1.21.6 === PANGO_1_21_6
Behdad Esfahbod [Mon, 8 Sep 2008 19:23:09 +0000 (19:23 +0000)]
=== Released 1.21.6 ===

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

        * === Released 1.21.6 ===

        * configure.in: Version 1.21.6

        * NEWS: Updated.

svn path=/trunk/; revision=2714

15 years agoBug 550659 – configure.in ignores a win32 backend only scenario
Alberto Ruiz [Wed, 3 Sep 2008 14:26:57 +0000 (14:26 +0000)]
Bug 550659 – configure.in ignores a win32 backend only scenario

2008-09-03  Alberto Ruiz  <aruiz@gnome.org>

Bug 550659 – configure.in ignores a win32 backend only scenario

* configure.in: Added $have_win32 check

svn path=/trunk/; revision=2713

15 years agoBug 549758 – Swedish font sample text could use punctuation
Behdad Esfahbod [Thu, 28 Aug 2008 20:12:05 +0000 (20:12 +0000)]
Bug 549758 – Swedish font sample text could use punctuation

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

        Bug 549758 – Swedish font sample text could use punctuation

        * pango/pango-language-sample-table.h: Add final punctuation to many
        that were missing one.

svn path=/trunk/; revision=2712

15 years agoBug 549522 – New pt_BR pangram for pango
Behdad Esfahbod [Wed, 27 Aug 2008 14:30:40 +0000 (14:30 +0000)]
Bug 549522 – New pt_BR pangram for pango

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

        Bug 549522 – New pt_BR pangram for pango

        * pango/pango-language-sample-table.h: Change pt_BR string as per
        Leonardo Ferreira Fontenelle's suggestion.

svn path=/trunk/; revision=2711

15 years agoBug 549520 – fr sample string
Behdad Esfahbod [Tue, 26 Aug 2008 23:21:38 +0000 (23:21 +0000)]
Bug 549520 – fr sample string

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

        Bug 549520 – fr sample string

        * pango/pango-language-sample-table.h: Change French sample string
        as per Vincent Untz's suggestion.

svn path=/trunk/; revision=2710

15 years ago=== Released 1.21.5 === PANGO_1_21_5
Behdad Esfahbod [Tue, 26 Aug 2008 18:49:39 +0000 (18:49 +0000)]
=== Released 1.21.5 ===

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

        * === Released 1.21.5 ===

        * configure.in: Version 1.21.5

        * NEWS: Updated.

svn path=/trunk/; revision=2708

15 years agoBug 549003 – pango_layout_set_height(): layout should not be cleared
Behdad Esfahbod [Fri, 22 Aug 2008 16:41:14 +0000 (16:41 +0000)]
Bug 549003 – pango_layout_set_height(): layout should not be cleared

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

        Bug 549003 – pango_layout_set_height(): layout should not be cleared
        unless required

        * pango/pango-layout-private.h:
        * pango/pango-layout.c (pango_layout_init),
        (pango_layout_set_height), (pango_layout_get_line_count),
        (pango_layout_clear_lines), (add_line):
        Don't invalidate layout if the new height does not force
        ellipsization.

svn path=/trunk/; revision=2707

15 years agoFix build, small typo.
Richard Hult [Fri, 22 Aug 2008 07:28:04 +0000 (07:28 +0000)]
Fix build, small typo.

2008-08-22  Richard Hult  <richard@imendio.com>

* pango/pangoatsui.c: (_pango_atsui_font_set_font_map): Fix build,
small typo.

svn path=/trunk/; revision=2706

15 years agoUse atomic reference counting.
Behdad Esfahbod [Fri, 22 Aug 2008 07:20:04 +0000 (07:20 +0000)]
Use atomic reference counting.

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

        * pango/fonts.c (pango_font_metrics_ref),
        (pango_font_metrics_unref):
        * pango/pango-attributes.c (pango_attr_list_ref),
        (pango_attr_list_unref):
        * pango/pango-coverage.c (pango_coverage_ref),
        (pango_coverage_unref):
        * pango/pango-layout.c (pango_layout_line_ref),
        (pango_layout_line_unref):
        * pango/pangowin32-fontcache.c (cache_entry_unref),
        (pango_win32_font_cache_loadw):
        * pango/pangox-fontcache.c (cache_entry_unref),
        (pango_x_font_cache_load):
        Use atomic reference counting.

        Pango may not be thread safe yet, but fixing it little by little
        is easier than doing all in one round.

svn path=/trunk/; revision=2705

15 years agoBug 143542 – PangoFT2Fontmap leak
Behdad Esfahbod [Fri, 22 Aug 2008 07:01:35 +0000 (07:01 +0000)]
Bug 143542 – PangoFT2Fontmap leak

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

        Bug 143542 – PangoFT2Fontmap leak

        * pango/fonts.c:
        * pango/pangoatsui.c (pango_atsui_font_finalize),
        (_pango_atsui_font_set_font_map):
        * pango/pangocairo-font.c (_pango_cairo_font_get_metrics),
        (_pango_cairo_font_private_get_hex_box_info):
        * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new):
        * pango/pangofc-font.c (pango_fc_font_get_metrics):
        * pango/pangofc-fontmap.c (pango_fc_font_map_add),
        (_pango_fc_font_map_remove), (cleanup_font):
        * pango/pangowin32-fontmap.c (pango_win32_font_neww),
        (pango_win32_font_map_real_find_font):
        * pango/pangowin32.c (pango_win32_font_finalize):
        * pango/pangox-fontmap.c (pango_x_font_map_load_font):
        * pango/pangox.c (pango_x_font_new), (pango_x_font_finalize):
        Make the reference the font->fontmap reference weak.

        The code for setting the reference must look like this:

          g_assert (font->fontmap == NULL);
          font->fontmap = (PangoFontMap *) fontmap;
          g_object_add_weak_pointer (G_OBJECT (font->fontmap), (gpointer *) (gpointer) &font->fontmap);

        And releasing it like:

          g_assert (font->fontmap != NULL);
          g_object_remove_weak_pointer (G_OBJECT (font->fontmap), (gpointer *) (gpointer) &font->fontmap);
          font->fontmap = NULL;

        I have converted all fontmaps.  The win32 and atsui ones can
        use some simple testing.

        The PangoFc fonts actually don't need the weakref as the fontmap
        already provides a similar link by itself.

svn path=/trunk/; revision=2704

15 years agoMinor doc improvement.
Behdad Esfahbod [Wed, 20 Aug 2008 19:47:27 +0000 (19:47 +0000)]
Minor doc improvement.

svn path=/trunk/; revision=2703

15 years agoAdd a comma to Persian text.
Behdad Esfahbod [Wed, 20 Aug 2008 19:21:30 +0000 (19:21 +0000)]
Add a comma to Persian text.

svn path=/trunk/; revision=2702

15 years agoCache language information to avoid bsearch()ing all the time.
Behdad Esfahbod [Wed, 20 Aug 2008 18:59:54 +0000 (18:59 +0000)]
Cache language information to avoid bsearch()ing all the time.

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

        * pango/pango-language.c (pango_language_private_init),
        (pango_language_get_private), (pango_language_from_string),
        (find_best_lang_match), (find_best_lang_match_cached),
        (pango_language_get_sample_string), (pango_language_get_scripts):
        Cache language information to avoid bsearch()ing all the time.

svn path=/trunk/; revision=2701

15 years agoAdd a macro
Behdad Esfahbod [Wed, 20 Aug 2008 18:59:46 +0000 (18:59 +0000)]
Add a macro

svn path=/trunk/; revision=2700

15 years agoCleanup bsearching in language arrays.
Behdad Esfahbod [Wed, 20 Aug 2008 18:59:38 +0000 (18:59 +0000)]
Cleanup bsearching in language arrays.

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

        * pango/pango-language.c (find_best_lang_match),
        (pango_language_get_sample_string), (pango_language_get_scripts),
        (pango_script_get_sample_language):
        Cleanup bsearching in language arrays.

        Add some language codes for scripts.

svn path=/trunk/; revision=2699

15 years agopango_language_get_scripts(): Fix a tiny typo in the documentation.
Murray Cumming [Wed, 20 Aug 2008 08:05:30 +0000 (08:05 +0000)]
pango_language_get_scripts(): Fix a tiny typo in the documentation.

2008-08-20  Murray Cumming  <murrayc@murrayc.com>

* pango/pango-language.c: pango_language_get_scripts(): Fix a
tiny typo in the documentation.

svn path=/trunk/; revision=2698

15 years agoFix docs
Behdad Esfahbod [Wed, 20 Aug 2008 06:15:02 +0000 (06:15 +0000)]
Fix docs

svn path=/trunk/; revision=2697

15 years agoBug 314094 – Get rid of poutpourri default sample string
Behdad Esfahbod [Wed, 20 Aug 2008 05:58:19 +0000 (05:58 +0000)]
Bug 314094 – Get rid of poutpourri default sample string

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

        Bug 314094 – Get rid of poutpourri default sample string

        * pango/pango-language-sample-table.h:
        * pango/pango-language.c (pango_language_get_sample_string):
        Use default language if provided language to get_sample_string()
        is NULL.

svn path=/trunk/; revision=2696

15 years agoBug 473806 – Improve pango_language_get_sample_string()
Behdad Esfahbod [Wed, 20 Aug 2008 03:07:50 +0000 (03:07 +0000)]
Bug 473806 – Improve pango_language_get_sample_string()

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

        Bug 473806 – Improve pango_language_get_sample_string()

        * docs/Makefile.am:
        * pango/Makefile.am:
        * pango/pango-language-sample-table.h:
        * pango/pango-language.c (pango_language_get_sample_string):
        Add language sample texts that are actually usable.  Compiled from
        a variety of sources.  See pango-language-sample-table.h.

svn path=/trunk/; revision=2695

15 years agoVarious corrections.
Behdad Esfahbod [Wed, 20 Aug 2008 03:07:40 +0000 (03:07 +0000)]
Various corrections.

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

        * pango-view/GLASS.txt:
        * pango/pango-ot-tag.c:
        Various corrections.

svn path=/trunk/; revision=2694

15 years agoBug 473805 – Add API enumerating scripts for a language
Behdad Esfahbod [Wed, 20 Aug 2008 03:07:28 +0000 (03:07 +0000)]
Bug 473805 – Add API enumerating scripts for a language

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

        Bug 473805 – Add API enumerating scripts for a language

        * docs/Makefile.am:
        * docs/pango-sections.txt:
        * docs/tmpl/scripts.sgml:
        * docs/tmpl/text-attributes.sgml:
        * docs/tmpl/utils.sgml:
        * pango/pango-language.c (pango_language_get_scripts),
        (pango_language_includes_script),
        (pango_script_get_sample_language):
        * pango/pango-language.h:
        * pango/pango-script.c:
        * pango/pango.def:
        Add a minor new public API:

                pango_language_get_scripts()

        This is what pango_language_includes_script() has been using
        internally.  Previously one had to call that function over all
        possible script values to determine which scripts a language
        uses.  The new API makes that much easier.

svn path=/trunk/; revision=2693

15 years agoFix cyclic header ordering and move pango_language_* to pango-language.h
Behdad Esfahbod [Wed, 20 Aug 2008 03:07:18 +0000 (03:07 +0000)]
Fix cyclic header ordering and move pango_language_* to pango-language.h

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

        * pango/pango-language.h:
        * pango/pango-script.h:
        Fix cyclic header ordering and move pango_language_* to
        pango-language.h

svn path=/trunk/; revision=2692

15 years agoBug 470895 – Improve OpenType language tag list
Behdad Esfahbod [Mon, 18 Aug 2008 10:15:24 +0000 (10:15 +0000)]
Bug 470895 – Improve OpenType language tag list

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

        Bug 470895 – Improve OpenType language tag list

        * pango/pango-ot-tag.c: Update to OpenType 1.5 draft, intersected with
        ISO639-3 of 2008/08/04.

svn path=/trunk/; revision=2691

15 years ago=== Released 1.21.4 ===
Behdad Esfahbod [Mon, 18 Aug 2008 10:09:03 +0000 (10:09 +0000)]
=== Released 1.21.4 ===

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

        * === Released 1.21.4 ===

        * configure.in: Version 1.21.4

        * NEWS: Updated.

svn path=/trunk/; revision=2690