summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* === Released 1.22.0 ===PANGO_1_22_0Behdad Esfahbod2008-09-223-2/+22
| | | | | | | | | | | | 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
* Update to cairo-1.7.6 API.Behdad Esfahbod2008-09-223-3/+10
| | | | | | | | | | | 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
* Bug 552993 – Romanian pangramBehdad Esfahbod2008-09-202-5/+12
| | | | | | | | | | | 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
* Drop pango.aliases as we have a default such built-in nowadays.Tor Lillqvist2008-09-182-1/+5
| | | | | | | | | | 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
* Don't use the deprectated g_win32_get_package_installation_subdirectory().Tor Lillqvist2008-09-132-15/+43
| | | | | | | | | | | | | | 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
* Bug 551865 – Can't change justification of a PangoLayout after firstBehdad Esfahbod2008-09-112-11/+39
| | | | | | | | | | | | | | 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
* Bug 551416 - pangowin32-fontcache.c: argument is different typeTor Lillqvist2008-09-082-2/+9
| | | | | | | | | | | | 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
* === Released 1.21.6 ===PANGO_1_21_6Behdad Esfahbod2008-09-083-1/+19
| | | | | | | | | | | | 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
* Bug 550659 – configure.in ignores a win32 backend only scenarioAlberto Ruiz2008-09-032-1/+7
| | | | | | | | | | | 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
* Bug 549758 – Swedish font sample text could use punctuationBehdad Esfahbod2008-08-282-14/+21
| | | | | | | | | | | 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
* Bug 549522 – New pt_BR pangram for pangoBehdad Esfahbod2008-08-272-2/+10
| | | | | | | | | | | 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
* Bug 549520 – fr sample stringBehdad Esfahbod2008-08-262-3/+10
| | | | | | | | | | | 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
* === Released 1.21.5 ===PANGO_1_21_5Behdad Esfahbod2008-08-263-1/+49
| | | | | | | | | | | | 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
* Bug 549003 – pango_layout_set_height(): layout should not be clearedBehdad Esfahbod2008-08-223-2/+23
| | | | | | | | | | | | | | | | 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
* Fix build, small typo.Richard Hult2008-08-222-1/+6
| | | | | | | | | 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
* Use atomic reference counting.Behdad Esfahbod2008-08-227-22/+33
| | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 143542 – PangoFT2Fontmap leakBehdad Esfahbod2008-08-2211-20/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Minor doc improvement.Behdad Esfahbod2008-08-201-1/+2
| | | | svn path=/trunk/; revision=2703
* Add a comma to Persian text.Behdad Esfahbod2008-08-201-1/+1
| | | | svn path=/trunk/; revision=2702
* Cache language information to avoid bsearch()ing all the time.Behdad Esfahbod2008-08-202-7/+99
| | | | | | | | | | | | 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
* Add a macroBehdad Esfahbod2008-08-201-8/+10
| | | | svn path=/trunk/; revision=2700
* Cleanup bsearching in language arrays.Behdad Esfahbod2008-08-202-88/+82
| | | | | | | | | | | | | 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
* pango_language_get_scripts(): Fix a tiny typo in the documentation.Murray Cumming2008-08-202-1/+6
| | | | | | | | | 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
* Fix docsBehdad Esfahbod2008-08-202-4/+5
| | | | svn path=/trunk/; revision=2697
* Bug 314094 – Get rid of poutpourri default sample stringBehdad Esfahbod2008-08-203-20/+40
| | | | | | | | | | | | | 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
* Bug 473806 – Improve pango_language_get_sample_string()Behdad Esfahbod2008-08-205-34/+637
| | | | | | | | | | | | | | | 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
* Various corrections.Behdad Esfahbod2008-08-203-27/+31
| | | | | | | | | | 2008-08-19 Behdad Esfahbod <behdad@gnome.org> * pango-view/GLASS.txt: * pango/pango-ot-tag.c: Various corrections. svn path=/trunk/; revision=2694
* Bug 473805 – Add API enumerating scripts for a languageBehdad Esfahbod2008-08-2010-120/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix cyclic header ordering and move pango_language_* to pango-language.hBehdad Esfahbod2008-08-203-5/+14
| | | | | | | | | | | 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
* Bug 470895 – Improve OpenType language tag listBehdad Esfahbod2008-08-182-201/+416
| | | | | | | | | | | 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
* === Released 1.21.4 ===Behdad Esfahbod2008-08-183-3/+92
| | | | | | | | | | | | 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
* Bug 547432: Deprecation of pango_(backend)_font_map_create_context() notSven Herzberg2008-08-127-23/+31
| | | | | | | | | | | | | | | | | | | 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
* Bug 547303 – pango_layout_get_cursor_pos crashes on certain text buffersBehdad Esfahbod2008-08-112-0/+16
| | | | | | | | | | | | 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
* Fix cluster iteration.Behdad Esfahbod2008-08-062-2/+7
| | | | | | | | | 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
* Implement draw_glyph_item using cairo_show_text_glyphs().Behdad Esfahbod2008-08-062-85/+107
| | | | | | | | | | | | | | 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
* Implement draw_glyph_item using cairo_show_text_glyphs().Behdad Esfahbod2008-08-067-30/+33
| | | | | | | | | | | | | | 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
* Fedora Bug 457883 - Sindhi Characters are not supported in pangoBehdad Esfahbod2008-08-062-1/+9
| | | | | | | | | | | | 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
* Add missing bug reference.Behdad Esfahbod2008-08-061-0/+2
| | | | svn path=/trunk/; revision=2683
* Bug 441654 – prefix fails when more than one base characters (asBehdad Esfahbod2008-08-062-1/+11
| | | | | | | | | | | | | | 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
* Bug 546534 – pango_cairo_font_map_set_default(NULL) errsBehdad Esfahbod2008-08-062-3/+13
| | | | | | | | | | | 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
* Bug 431394 – Use pango_glyph_item_iter in more placesBehdad Esfahbod2008-08-062-36/+41
| | | | | | | | | | | 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
* Bug 377948 – Make pango_glyph_item_iter publicBehdad Esfahbod2008-08-0610-111/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Oops.Behdad Esfahbod2008-08-061-1/+1
| | | | svn path=/trunk/; revision=2678
* Improve docs.Behdad Esfahbod2008-08-062-2/+2
| | | | svn path=/trunk/; revision=2677
* Fix compiler warning.Behdad Esfahbod2008-08-061-2/+2
| | | | svn path=/trunk/; revision=2676
* Make the following API public:Behdad Esfahbod2008-08-0629-83/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* New public API:Behdad Esfahbod2008-08-0610-8/+299
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix doc build warning.Behdad Esfahbod2008-08-062-3/+7
| | | | | | | | 2008-07-30 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/text-attributes.sgml: Fix doc build warning. svn path=/trunk/; revision=2673
* Justify lines broken by U+2028 LINE SEPARATOR. Also affects return valueBehdad Esfahbod2008-08-062-9/+8
| | | | | | | | | 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
* Add a mkdir to be sure the destination directory exists before copyingTor Lillqvist2008-08-052-0/+4
| | | | | | | | | | 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