2008-08-11 Behdad Esfahbod * === Released 1.21.4 === * configure.in: Version 1.21.4 * NEWS: Updated. 2008-08-11 Behdad Esfahbod 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. 2008-08-06 Behdad Esfahbod * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyph_item): Fix cluster iteration. 2008-08-06 Behdad Esfahbod * 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 2008-08-06 Behdad Esfahbod 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]. 2008-08-06 Behdad Esfahbod 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. 2008-08-06 Behdad Esfahbod Bug 546534 – pango_cairo_font_map_set_default(NULL) errs * pango/pangocairo-fontmap.c (pango_cairo_font_map_set_default): Allow NULL. 2008-08-06 Behdad Esfahbod 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. 2008-08-06 Behdad Esfahbod 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. 2008-08-05 Behdad Esfahbod * 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. 2008-07-30 Behdad Esfahbod Bug 472625 – Add draw_glyph_item() to PangoRenderer * 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. 2008-07-30 Behdad Esfahbod * docs/tmpl/text-attributes.sgml: Fix doc build warning. 2008-07-19 Behdad Esfahbod * pango/pango-layout.c (process_line): Justify lines broken by U+2028 LINE SEPARATOR. Also affects return value of pango_layout_is_wrapped(). 2008-08-06 Tor Lillqvist * pango/Makefile.am (install-def-files): Add a mkdir to be sure the destination directory exists before copying files there. * 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. 2008-08-04 Tor Lillqvist * pango/Makefile.am: Don't attempt to build the MS import libraries for libpangoft2 unless HAVE_FREETYPE. 2008-08-03 Tor Lillqvist * pango/pango-bidi-type.c: Include for strlen() prototype. 2008-06-29 Behdad Esfahbod 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. 2008-06-26 Kristian Rietveld * 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. 2008-06-24 Behdad Esfahbod Bug 540036 – Doesn't link to fontconfig * pango/Makefile.am: Explicitly include FREETYPE_LIBS for pangoxft. 2008-06-23 Behdad Esfahbod 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. 2008-06-21 Johan Dahlin * *.[ch]: Include "config.h" instead of Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include /#include "config.h"/g' Rubberstamped by Behdad 2008-06-18 Behdad Esfahbod 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...