Behdad Esfahbod [Tue, 23 Sep 2008 01:39:03 +0000 (01:39 +0000)]
Improve Japanese text
svn path=/trunk/; revision=2724
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Behdad Esfahbod [Wed, 20 Aug 2008 19:47:27 +0000 (19:47 +0000)]
Minor doc improvement.
svn path=/trunk/; revision=2703
Behdad Esfahbod [Wed, 20 Aug 2008 19:21:30 +0000 (19:21 +0000)]
Add a comma to Persian text.
svn path=/trunk/; revision=2702
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
Behdad Esfahbod [Wed, 20 Aug 2008 18:59:46 +0000 (18:59 +0000)]
Add a macro
svn path=/trunk/; revision=2700
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
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
Behdad Esfahbod [Wed, 20 Aug 2008 06:15:02 +0000 (06:15 +0000)]
Fix docs
svn path=/trunk/; revision=2697
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
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
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
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
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
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
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
Sven Herzberg [Tue, 12 Aug 2008 15:08:16 +0000 (15:08 +0000)]
Bug 547432: Deprecation of pango_(backend)_font_map_create_context() not
2008-08-12 Sven Herzberg <sven@imendio.com>
Bug 547432: Deprecation of pango_(backend)_font_map_create_context()
not clean
reviewed by: Behdad Esfahbod
* pango/pangocairo-fontmap.c,
* pango/pangofc-fontmap.c,
* pango/pangoft2-fontmap.c,
* pango/pangowin32.c,
* pango/pangox.c,
* pango/pangoxft-fontmap.c: use "Deprecated:" for deprecation messages;
fix the deprecation version number
svn path=/trunk/; revision=2689
Behdad Esfahbod [Mon, 11 Aug 2008 18:17:23 +0000 (18:17 +0000)]
Bug 547303 – pango_layout_get_cursor_pos crashes on certain text buffers
2008-08-11 Behdad Esfahbod <behdad@gnome.org>
Bug 547303 – pango_layout_get_cursor_pos crashes on certain text
buffers
* pango/pango-layout.c (pango_layout_get_cursor_pos): Handle cursor
position in the middle of a "\r\n" cluster.
svn path=/trunk/; revision=2688
Behdad Esfahbod [Wed, 6 Aug 2008 09:17:11 +0000 (09:17 +0000)]
Fix cluster iteration.
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyph_item):
Fix cluster iteration.
svn path=/trunk/; revision=2687
Behdad Esfahbod [Wed, 6 Aug 2008 09:09:46 +0000 (09:09 +0000)]
Implement draw_glyph_item using cairo_show_text_glyphs().
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c
(pango_cairo_renderer_show_text_glyphs),
(pango_cairo_renderer_draw_glyphs),
(pango_cairo_renderer_draw_glyph_item):
Implement draw_glyph_item using cairo_show_text_glyphs().
* configure.in: Require cairo >= 1.7.1
svn path=/trunk/; revision=2686
Behdad Esfahbod [Wed, 6 Aug 2008 09:09:36 +0000 (09:09 +0000)]
Implement draw_glyph_item using cairo_show_text_glyphs().
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c
(pango_cairo_renderer_show_text_glyphs),
(pango_cairo_renderer_draw_glyphs),
(pango_cairo_renderer_draw_glyph_item):
Implement draw_glyph_item using cairo_show_text_glyphs().
* configure.in: Require cairo >= 1.7.1
svn path=/trunk/; revision=2685
Behdad Esfahbod [Wed, 6 Aug 2008 08:40:35 +0000 (08:40 +0000)]
Fedora Bug 457883 - Sindhi Characters are not supported in pango
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
Fedora Bug 457883 - Sindhi Characters are not supported in
pango [U+097B-U+097F]
Patch from Pravin Satpute
* modules/indic/indic-ot-class-tables.c: Add [U+097B-U+097F].
svn path=/trunk/; revision=2684
Behdad Esfahbod [Wed, 6 Aug 2008 08:40:23 +0000 (08:40 +0000)]
Add missing bug reference.
svn path=/trunk/; revision=2683
Behdad Esfahbod [Wed, 6 Aug 2008 08:40:12 +0000 (08:40 +0000)]
Bug 441654 – prefix fails when more than one base characters (as
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
Bug 441654 – prefix fails when more than one base characters (as
conjuncts) present after a half form the next prefix renders
incorrectly
Patch from Rahul Bhalerao
* modules/indic/mprefixups.c (indic_mprefixups_apply):
Do what I was told to do.
svn path=/trunk/; revision=2682
Behdad Esfahbod [Wed, 6 Aug 2008 08:40:03 +0000 (08:40 +0000)]
Bug 546534 – pango_cairo_font_map_set_default(NULL) errs
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
Bug 546534 – pango_cairo_font_map_set_default(NULL) errs
* pango/pangocairo-fontmap.c (pango_cairo_font_map_set_default):
Allow NULL.
svn path=/trunk/; revision=2681
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:53 +0000 (08:39 +0000)]
Bug 431394 – Use pango_glyph_item_iter in more places
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
Bug 431394 – Use pango_glyph_item_iter in more places
* pango/glyphstring.c (pango_glyph_string_get_logical_widths):
Use pango_glyph_item_iter for cluster iteration.
svn path=/trunk/; revision=2680
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:43 +0000 (08:39 +0000)]
Bug 377948 – Make pango_glyph_item_iter public
2008-08-06 Behdad Esfahbod <behdad@gnome.org>
Bug 377948 – Make pango_glyph_item_iter public
* pango/pango-glyph-item.c (pango_glyph_item_iter_copy),
(pango_glyph_item_iter_free), (pango_glyph_item_iter_get_type),
(pango_glyph_item_iter_next_cluster),
(pango_glyph_item_iter_prev_cluster),
(pango_glyph_item_iter_init_start),
(pango_glyph_item_iter_init_end), (pango_glyph_item_apply_attrs),
(pango_glyph_item_letter_space):
* pango/pango-glyph-item.h:
New public API, for iterating a PangoGlyphItem:
PangoGlyphItemIter
PANGO_TYPE_GLYPH_ITEM_ITER
pango_glyph_item_iter_copy()
pango_glyph_item_iter_free()
pango_glyph_item_iter_init_start()
pango_glyph_item_iter_init_end()
pango_glyph_item_iter_next_cluster()
pango_glyph_item_iter_prev_cluster()
* pango/pango.def:
* docs/tmpl/glyphs.sgml:
* docs/pango-sections.txt:
* pango/Makefile.am:
* pango/ellipsize.c (line_iter_next_cluster),
(line_iter_prev_cluster), (find_initial_span):
* pango/pango-layout.c (justify_words):
Update.
* pango/pango-glyph-item-private.h:
Remove.
svn path=/trunk/; revision=2679
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:32 +0000 (08:39 +0000)]
Oops.
svn path=/trunk/; revision=2678
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:23 +0000 (08:39 +0000)]
Improve docs.
svn path=/trunk/; revision=2677
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:13 +0000 (08:39 +0000)]
Fix compiler warning.
svn path=/trunk/; revision=2676
Behdad Esfahbod [Wed, 6 Aug 2008 08:39:01 +0000 (08:39 +0000)]
Make the following API public:
2008-08-05 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c:
* pango/pango-context.h:
Make the following API public:
pango_context_new()
pango_context_set_font_map()
* pango/pango-fontmap.c (pango_font_map_create_context):
* pango/pango-fontmap.h:
New public API:
pango_font_map_create_context()
* pango/pangocairo-context.c (pango_cairo_create_context):
* pango/pangocairo-font.c (_pango_cairo_font_get_metrics),
(_pango_cairo_font_private_get_hex_box_info):
* pango/pangocairo-fontmap.c (pango_cairo_font_map_create_context):
* pango/pangocairo.h:
Deprecate pango_cairo_font_map_create_context().
* pango/pangofc-font.c (pango_fc_font_get_metrics):
* pango/pangofc-fontmap.c (pango_fc_font_map_create_context):
* pango/pangofc-fontmap.h:
Deprecate pango_fc_font_map_create_context().
* pango/pangoft2-fontmap.c (pango_ft2_font_map_create_context),
(pango_ft2_get_context):
* pango/pangoft2.h:
Deprecate pango_ft2_font_map_create_context().
* pango/pangowin32.c (pango_win32_get_context),
(pango_win32_font_get_metrics):
* pango/pangowin32.h:
Deprecate pango_win32_get_context().
* pango/pangoxft-font.c (_pango_xft_font_get_mini_font):
* pango/pangoxft-fontmap.c (pango_xft_get_context):
* pango/pangoxft.h:
Deprecate pango_xft_get_context().
* pango/pangox-fontmap.c (pango_x_font_map_for_display):
* pango/pangox.c (get_context_info), (pango_x_get_context),
(pango_x_context_set_funcs), (pango_x_render_layout_line):
Deprecate pango_x_get_context(), again.
* docs/pango-sections.txt:
* docs/tmpl/fonts.sgml:
* pango-view/viewer-pangocairo.c (pangocairo_view_get_context):
* pango-view/viewer-pangoft2.c (pangoft2_view_get_context):
* pango-view/viewer-pangox.c (pangox_view_get_context):
* pango-view/viewer-pangoxft.c (pangoxft_view_get_context):
* pango/check.defs:
* pango/pango.def:
Update.
svn path=/trunk/; revision=2675
Behdad Esfahbod [Wed, 6 Aug 2008 08:38:47 +0000 (08:38 +0000)]
New public API:
2008-07-30 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/pango-renderer.sgml:
* pango/pango-renderer.c:
* pango/pango-renderer.h:
New public API:
PangoRenderer::draw_glyph_item()
pango_renderer_draw_glyph_item()
Make layout and layout-line default renderers go through
draw_glyph_item(), which then by default falls back to
draw_glyphs(). The advantage in draw_glyph_item() is that it
has access to the text and cluster information.
* pango/pangocairo.h:
* pango/pangocairo-render.c:
New public API:
pango_cairo_show_glyph_item()
svn path=/trunk/; revision=2674
Behdad Esfahbod [Wed, 6 Aug 2008 08:35:26 +0000 (08:35 +0000)]
Fix doc build warning.
2008-07-30 Behdad Esfahbod <behdad@gnome.org>
* docs/tmpl/text-attributes.sgml: Fix doc build warning.
svn path=/trunk/; revision=2673
Behdad Esfahbod [Wed, 6 Aug 2008 08:35:12 +0000 (08:35 +0000)]
Justify lines broken by U+2028 LINE SEPARATOR. Also affects return value
2008-07-19 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (process_line): Justify lines broken by U+2028
LINE SEPARATOR. Also affects return value of pango_layout_is_wrapped().
svn path=/trunk/; revision=2672
Tor Lillqvist [Tue, 5 Aug 2008 23:45:03 +0000 (23:45 +0000)]
Add a mkdir to be sure the destination directory exists before copying
2008-08-06 Tor Lillqvist <tml@novell.com>
* pango/Makefile.am (install-def-files): Add a mkdir to be sure
the destination directory exists before copying files there.
svn path=/trunk/; revision=2671
Tor Lillqvist [Tue, 5 Aug 2008 23:12:13 +0000 (23:12 +0000)]
On Windows set LIB_EXE_MACHINE_FLAG to X86 or X64 depending on host
2008-08-06 Tor Lillqvist <tml@novell.com>
* configure.in: On Windows set LIB_EXE_MACHINE_FLAG to X86 or X64
depending on host architecture.
* pango/Makefile.am: Use it when running lib.exe.
svn path=/trunk/; revision=2670
Tor Lillqvist [Sun, 3 Aug 2008 21:06:43 +0000 (21:06 +0000)]
Don't attempt to build the MS import libraries for libpangoft2 unless
2008-08-04 Tor Lillqvist <tml@novell.com>
* pango/Makefile.am: Don't attempt to build the MS import
libraries for libpangoft2 unless HAVE_FREETYPE.
svn path=/trunk/; revision=2669
Tor Lillqvist [Sun, 3 Aug 2008 21:00:33 +0000 (21:00 +0000)]
Include <string.h> for strlen() prototype.
2008-08-03 Tor Lillqvist <tml@novell.com>
* pango/pango-bidi-type.c: Include <string.h> for strlen()
prototype.
svn path=/trunk/; revision=2668
Behdad Esfahbod [Fri, 4 Jul 2008 18:02:48 +0000 (18:02 +0000)]
Minor
svn path=/trunk/; revision=2667
Behdad Esfahbod [Sun, 29 Jun 2008 18:30:14 +0000 (18:30 +0000)]
Bug 540592 – Crash in HB_GSUB_Apply_String with Linux-Libertine font
2008-06-29 Behdad Esfahbod <behdad@gnome.org>
Bug 540592 – Crash in HB_GSUB_Apply_String with Linux-Libertine font
* pango/opentype/harfbuzz-gsub.c (GSUB_Do_String_Lookup): Fix reverse
loops for type 8 lookups.
svn path=/trunk/; revision=2661
Kristian Rietveld [Thu, 26 Jun 2008 15:30:30 +0000 (15:30 +0000)]
require glib trunk (for newer glib-mkenums).
2008-06-26 Kristian Rietveld <kris@imendio.com>
* configure.in: require glib trunk (for newer glib-mkenums).
* pango/Makefile.am: when generating pango-enum-types.h use
@ENUMPREFIX@ instead of hard coding the prefix.
svn path=/trunk/; revision=2660
Behdad Esfahbod [Tue, 24 Jun 2008 20:44:10 +0000 (20:44 +0000)]
Bug 540036 – Doesn't link to fontconfig
2008-06-24 Behdad Esfahbod <behdad@gnome.org>
Bug 540036 – Doesn't link to fontconfig
* pango/Makefile.am: Explicitly include FREETYPE_LIBS for pangoxft.
svn path=/trunk/; revision=2659
Behdad Esfahbod [Mon, 23 Jun 2008 21:30:09 +0000 (21:30 +0000)]
Bug 380094 – Fix split matra rendering bug for Kannada language
2008-06-23 Behdad Esfahbod <behdad@gnome.org>
Bug 380094 – Fix split matra rendering bug for Kannada language
* modules/indic/indic-ot-class-tables.c: Fix Indic class for
U+0C8D and U+0C8E.
svn path=/trunk/; revision=2658
Johan Dahlin [Sun, 22 Jun 2008 15:18:49 +0000 (15:18 +0000)]
Include "config.h" instead of <config.h> Command used: find -name
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Behdad
svn path=/trunk/; revision=2657
Behdad Esfahbod [Wed, 18 Jun 2008 21:31:22 +0000 (21:31 +0000)]
Bug 536017 – Remove SF_MPRE_FIXUP from Sinhala script flags Patch by
2008-06-18 Behdad Esfahbod <behdad@gnome.org>
Bug 536017 – Remove SF_MPRE_FIXUP from Sinhala script flags
Patch by Harshula
* modules/indic/indic-ot-class-tables.c: Just freakin' do it.
I have no idea if it's right or wrong. Just that I've been
pestered enough to do it. Time will tell...
svn path=/trunk/; revision=2656
Behdad Esfahbod [Mon, 16 Jun 2008 20:40:23 +0000 (20:40 +0000)]
=== Released 1.21.3 ===
2008-06-16 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.21.3 ===
* configure.in: Version 1.21.3
* NEWS: Updated.
svn path=/trunk/; revision=2654
Behdad Esfahbod [Mon, 16 Jun 2008 20:08:21 +0000 (20:08 +0000)]
Bug 538661 – Improve pango_cairo_context_update_context()
2008-06-16 Behdad Esfahbod <behdad@gnome.org>
Bug 538661 – Improve pango_cairo_context_update_context()
* pango/pangocairo-context.c (_pango_cairo_update_context):
Relayout only if merged options changed.
svn path=/trunk/; revision=2653
Behdad Esfahbod [Tue, 10 Jun 2008 00:39:07 +0000 (00:39 +0000)]
Bug 536190 – Make pango_fc_font_map_clear_cache() public?
2008-06-09 Behdad Esfahbod <behdad@gnome.org>
Bug 536190 – Make pango_fc_font_map_clear_cache() public?
* pango/pangofc-fontmap.c:
* pango/pangofc-fontmap.h:
Make pango_fc_font_map_clear_cache() public.
svn path=/trunk/; revision=2652
Behdad Esfahbod [Mon, 9 Jun 2008 19:53:20 +0000 (19:53 +0000)]
Bug 537258 – Add a pango_language_to_string() function
2008-06-09 Behdad Esfahbod <behdad@gnome.org>
Bug 537258 – Add a pango_language_to_string() function
* docs/tmpl/text-attributes.sgml:
* pango/pango-language.c (pango_language_to_string):
* pango/pango-language.h:
* pango/pango.def:
Add a function implementation of pango_language_to_string().
The macro is still available. To be removed in a cycle or two from
now. (bug #537466)
svn path=/trunk/; revision=2651
Behdad Esfahbod [Mon, 9 Jun 2008 19:39:24 +0000 (19:39 +0000)]
Bug 537257 – pango_language_from_string(NULL) not happy
2008-06-09 Behdad Esfahbod <behdad@gnome.org>
Bug 537257 – pango_language_from_string(NULL) not happy
* pango/pango-language.c (pango_language_from_string):
Allow NULL.
svn path=/trunk/; revision=2650
Behdad Esfahbod [Mon, 9 Jun 2008 05:51:27 +0000 (05:51 +0000)]
Bug 537186 – Make PangoFcFont pattern property readable
2008-06-09 Behdad Esfahbod <behdad@gnome.org>
Bug 537186 – Make PangoFcFont pattern property readable
* pango/pangofc-font.c (pango_fc_font_class_init),
(pango_fc_font_get_property): Make it readable.
svn path=/trunk/; revision=2649
Behdad Esfahbod [Mon, 2 Jun 2008 21:40:53 +0000 (21:40 +0000)]
=== Released 1.21.2 ===
2008-06-02 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.21.2 ===
* configure.in: Version 1.21.2
* NEWS: Updated.
svn path=/trunk/; revision=2647
Behdad Esfahbod [Wed, 28 May 2008 16:43:46 +0000 (16:43 +0000)]
Bug 510299 – OpenType font variants are broken with ATSUI/Cairo
2008-05-28 Behdad Esfahbod <behdad@gnome.org>
Bug 510299 – OpenType font variants are broken with ATSUI/Cairo
* pango/fonts.c (field_matches), (find_field): Ignore dashes when
matching fong description fields.
svn path=/trunk/; revision=2646
Tor Lillqvist [Tue, 27 May 2008 23:21:56 +0000 (23:21 +0000)]
Forgot to mention Normal.
svn path=/trunk/; revision=2645
Tor Lillqvist [Tue, 27 May 2008 23:12:56 +0000 (23:12 +0000)]
Map words that indicate weight and slant in the font name into the
2008-05-28 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c
(pango_win32_font_description_from_logfont)
(pango_win32_font_description_from_logfontw):
Map words that indicate weight and slant in the font name into the
corresponding Pango font description settings, and strip those
words from the family name. This maps for instance the DejaVu
Sans, DejaVu Sans Condensed and DejaVu Sans Light fonts into a
single DejaVu Sans family with styles Ultra-Light, Condensed,
Oblique Condensed, Oblique, Bold Condensed, Bold, Bold Oblique
Condensed, and Bold Oblique, which is nice.
svn path=/trunk/; revision=2644
Tor Lillqvist [Tue, 27 May 2008 21:14:00 +0000 (21:14 +0000)]
Detail.
svn path=/trunk/; revision=2643
Tor Lillqvist [Tue, 27 May 2008 21:13:36 +0000 (21:13 +0000)]
Rework face synthesis once again. Code is simpler now, and we don't
2008-05-28 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c (synthesize_foreach)
(_pango_win32_font_map_init): Rework face synthesis once
again. Code is simpler now, and we don't needlessly synthesize
bold weights for fonts that have a real semi-bold weight, like
Lucida Sans. (The bold weight ended up looking like the semi-bold
anyway.)
(pango_win32_font_description_from_logfont): Recognize the
semi-bold weight interval.
svn path=/trunk/; revision=2642
Tor Lillqvist [Tue, 27 May 2008 09:17:24 +0000 (09:17 +0000)]
After the change to how the standard pseudo font families are set up
2008-05-27 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c (pango_win32_family_list_faces):
After the change to how the standard pseudo font families are set
up below, we don't need to prune out duplicate face names any
longer.
svn path=/trunk/; revision=2641
Tor Lillqvist [Tue, 27 May 2008 00:38:19 +0000 (00:38 +0000)]
Add bug reference to last entry.
svn path=/trunk/; revision=2640
Tor Lillqvist [Tue, 27 May 2008 00:29:10 +0000 (00:29 +0000)]
Synthesize also Bold and Bold Italic (or Oblique) faces when feasible.
2008-05-27 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c: Synthesize also Bold and Bold Italic
(or Oblique) faces when feasible. Don't synthesize these for
decorative or script fonts. Kill the magic code snippet mentioned
below. Instead, explicitly create font families for the standard
pseudo fonts that correspond to the first existing font of the
corresponding built-in alias list. Use the face style name Oblique
for slanted sans and monospace fonts, not Italic.
svn path=/trunk/; revision=2639
Tor Lillqvist [Mon, 26 May 2008 21:30:59 +0000 (21:30 +0000)]
Prune duplicated face names. Makes the GTK+ font selector look a bit saner
2008-05-27 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c (pango_win32_family_list_faces):
Prune duplicated face names. Makes the GTK+ font selector look a
bit saner for the "sans", "serif" and "monospace" standard pseudo
font families with just one instance of each style.
That we get duplicated styles in the first place is because of the
magic code snippet in pango_win32_insert_font() that sets up the
list of faces for the standard pseudo font families. I don't like
that code but without it these families wouldn't currently show up
in the font selector at all.
A problem is still that the magic code blindly adds all random
fonts that claim to be FF_ROMAN to the list of faces for the
"serif" family, etc. I think it would be preferrable to do it only
for well-known sensible fonts. That would be those that are listed
in builtin_aliases in pango-utils.c, I guess.
svn path=/trunk/; revision=2638
Tor Lillqvist [Mon, 26 May 2008 20:55:39 +0000 (20:55 +0000)]
pango/pangowin32-private.h Drop the PangoWin32FontMap::n_fonts field which
2008-05-26 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-private.h
* pango/pangowin32-fontmap.c: Drop the PangoWin32FontMap::n_fonts
field which wasn't really used for anything. Rename the field
PangoWin32Family::font_entries to faces. Rename some local
variables to be more consistently named.
svn path=/trunk/; revision=2637
Tor Lillqvist [Mon, 26 May 2008 16:26:59 +0000 (16:26 +0000)]
pango/pangowin32.c Some whitespace cleanup.
2008-05-26 Tor Lillqvist <tml@novell.com>
* pango/pangowin32.c
* pango/pangowin32-fontmap.c: Some whitespace cleanup.
svn path=/trunk/; revision=2636
Tor Lillqvist [Mon, 26 May 2008 16:21:55 +0000 (16:21 +0000)]
pango/pangowin32-private.h Drop the PangoWin32SizeInfo struct and the hash
2008-05-26 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-private.h
* pango/pangowin32-fontmap.c: Drop the PangoWin32SizeInfo struct
and the hash table mapping from the relevant part of a
LOGFONTW struct to a list of PangoWin32SizeInfos in
PangoWin32FontMap. It seems that each list was always of length
one anyway, so instead just map directly to each such single list
member, also a LOGFONTW struct. Actually I wonder whether this map
is needed at all, will have to experiment.
svn path=/trunk/; revision=2635
Tor Lillqvist [Fri, 23 May 2008 17:37:44 +0000 (17:37 +0000)]
Revert the addition of the alias "sansserif". The correct name is
2008-05-23 Tor Lillqvist <tml@novell.com>
* pango/pango-utils.c: Revert the addition of the alias
"sansserif". The correct name is "sans-serif", and "sans" should
also be accepted. If something uses "sansserif" it is wrong. (I
saw it in some sample svg files in librsvg.)
svn path=/trunk/; revision=2632
Tor Lillqvist [Tue, 20 May 2008 18:33:50 +0000 (18:33 +0000)]
Add alias "sansserif" to the builtin aliases on Win32. Same contents as
2008-05-20 Tor Lillqvist <tml@novell.com>
* pango/pango-utils.c: Add alias "sansserif" to the builtin
aliases on Win32. Same contents as "sans" and "sans-serif".
svn path=/trunk/; revision=2630
Tor Lillqvist [Tue, 20 May 2008 18:31:28 +0000 (18:31 +0000)]
Bug 523193 - Vista Hebrew, CJK fonts to builtin win32 pango aliases
2008-05-20 Tor Lillqvist <tml@novell.com>
Bug 523193 - Vista Hebrew, CJK fonts to builtin win32 pango aliases
Patch by Daniel Atallah.
* pango/pango-utils.c: Add fonts from Vista to the builtin
aliases. Also add Lucida Sans Unicode and Lucida Console.
svn path=/trunk/; revision=2629
Behdad Esfahbod [Tue, 13 May 2008 20:26:39 +0000 (20:26 +0000)]
Fix typo.
svn path=/trunk/; revision=2628
Behdad Esfahbod [Tue, 13 May 2008 17:03:34 +0000 (17:03 +0000)]
=== Released 1.21.1 ===
2008-05-13 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.21.1 ===
* configure.in: Version 1.21.1
* NEWS: Updated.
svn path=/trunk/; revision=2626
Behdad Esfahbod [Tue, 13 May 2008 16:44:13 +0000 (16:44 +0000)]
Remove Unicode test files from dist
svn path=/trunk/; revision=2625
Behdad Esfahbod [Sat, 3 May 2008 16:26:18 +0000 (16:26 +0000)]
Bug 531242 – Leak when calculating win32 font coverage Patch from Daniel
2008-05-03 Behdad Esfahbod <behdad@gnome.org>
Bug 531242 – Leak when calculating win32 font coverage
Patch from Daniel Atallah
* pango/pangowin32.c (pango_win32_font_calc_coverage): Plug leak.
svn path=/trunk/; revision=2623
Behdad Esfahbod [Wed, 30 Apr 2008 18:13:15 +0000 (18:13 +0000)]
Bug 530757 – Docs build breaks because of hash sign in URL in <ulink...>
2008-04-30 Behdad Esfahbod <behdad@gnome.org>
Bug 530757 – Docs build breaks because of hash sign in URL in <ulink...>
* docs/tmpl/main.sgml: Make it build.
svn path=/trunk/; revision=2622
Behdad Esfahbod [Wed, 30 Apr 2008 16:59:52 +0000 (16:59 +0000)]
Bug 530685 – Pango no longer using cairo as a backend as of pango 1.19.4
2008-04-30 Behdad Esfahbod <behdad@gnome.org>
Bug 530685 – Pango no longer using cairo as a backend as of pango 1.19.4
* configure.in: Be more verbose about cairo font backends found.
svn path=/trunk/; revision=2621
Behdad Esfahbod [Mon, 28 Apr 2008 16:42:55 +0000 (16:42 +0000)]
Wait for convert(1) to finish. Patch by Jamie Guinan.
2008-04-28 Behdad Esfahbod <behdad@gnome.org>
* pango-view/viewer-main.c (main): Wait for convert(1) to finish.
Patch by Jamie Guinan.
svn path=/trunk/; revision=2620
Behdad Esfahbod [Fri, 25 Apr 2008 00:35:50 +0000 (00:35 +0000)]
Minor.
svn path=/trunk/; revision=2619
Behdad Esfahbod [Fri, 25 Apr 2008 00:33:29 +0000 (00:33 +0000)]
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
* docs/tmpl/main.sgml:
* pango/break.c (pango_default_break):
* pango/pango-break.h:
* tests/testboundaries_ucd.c (main):
Add new PangoLogAttr member is_word_boundary, that implements UAX#29's
Word Boundaries semantics. Test fully passes for it.
svn path=/trunk/; revision=2618
Behdad Esfahbod [Thu, 24 Apr 2008 20:00:41 +0000 (20:00 +0000)]
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29 Patch
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
Patch from Noah Levitt
* tests/Makefile.am:
* tests/runtests.sh.in:
* tests/testboundaries_ucd.c (count_attrs), (parse_line),
(attrs_equal), (make_test_string), (do_test), (main):
Add test driver for UAX#14 and UAX#29 test data from Unicode Character
Databse. Just drop the following four files in pango/tests for it to
use them:
GraphemeBreakTest.txt
LineBreakTest.txt
SentenceBreakTest.txt
WordBreakTest.txt
svn path=/trunk/; revision=2617
Behdad Esfahbod [Thu, 24 Apr 2008 17:35:31 +0000 (17:35 +0000)]
Minor optimization.
svn path=/trunk/; revision=2616
Behdad Esfahbod [Thu, 24 Apr 2008 17:21:03 +0000 (17:21 +0000)]
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
* pango/break.c (pango_default_break): Make Grapheme Boundary code
exactly follow UAX#29 of Unicode 5.1.0
svn path=/trunk/; revision=2615
Behdad Esfahbod [Thu, 24 Apr 2008 15:59:50 +0000 (15:59 +0000)]
Update GraphemeBoundary to Unicode 5.1.0. Pretty close now. Passes the
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Update GraphemeBoundary to
Unicode 5.1.0. Pretty close now. Passes the TR14 test.
svn path=/trunk/; revision=2614
Behdad Esfahbod [Thu, 24 Apr 2008 05:28:35 +0000 (05:28 +0000)]
Allow line break at the end of string. UAX#14 rule LB3 says "Always break
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Allow line break at the end of
string. UAX#14 rule LB3 says "Always break at the end of text."
With this test, Pango passes the LineBreakTest.txt, sans the bug in
the test file that I've already reported to unicoRe.
svn path=/trunk/; revision=2613
Behdad Esfahbod [Thu, 24 Apr 2008 04:44:21 +0000 (04:44 +0000)]
Minor.
svn path=/trunk/; revision=2612
Behdad Esfahbod [Tue, 22 Apr 2008 00:32:25 +0000 (00:32 +0000)]
=== Released 1.21.0 ===
2008-04-21 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.21.0 ===
* configure.in: Version 1.21.0
* NEWS: Updated.
svn path=/trunk/; revision=2610
Behdad Esfahbod [Tue, 22 Apr 2008 00:20:12 +0000 (00:20 +0000)]
Wrap ChangeLog.
2008-04-21 Behdad Esfahbod <behdad@gnome.org>
* ChangeLog.pre-1-20:
* Makefile.am:
Wrap ChangeLog.
svn path=/trunk/; revision=2609