2007-01-17 Behdad Esfahbod * === Released 1.15.4 === * configure.in: Version 1.15.4 * NEWS: Updated. 2007-01-17 Behdad Esfahbod Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY * modules/basic/basic-atsui.c (set_glyph): Handle kATSDeletedGlyphcode. 2007-01-16 Behdad Esfahbod * pango-view/viewer-render.c (make_layout): Fix typo when rounding to points. 2007-01-16 Behdad Esfahbod Bug 397337 – Use is_ellipsized and is_wrapped to optimize property changes * pango/pango-layout.c (pango_layout_set_wrap), (pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped, only clear lines if wrap/ellipsize change has any effect on the lines. 2007-01-16 Behdad Esfahbod *.c, *.h: Removed spaces followed b tabs. 2007-01-16 Behdad Esfahbod *.c, *.h: Replace preceding sequences of 8 spaces with tabs. 2007-01-16 Behdad Esfahbod * examples/pangowin32tobmp.c (SaveBitmap): * modules/tibetan/tibetan-fc.c: Replace C++-style // comments with C-style /* */ ones. 2007-01-16 Behdad Esfahbod *.c, *.h: Drop trailing whitespace. 2007-01-16 Behdad Esfahbod Bug 328585 – Need to know if a layout has unknown glyphs Patch from LingNing Zhang * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_get_unknown_glyphs_count), (pango_layout_clear_lines): * pango/pango-layout.h: New public function: pango_layout_get_unknown_glyphs_count() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. 2007-01-16 Behdad Esfahbod Part of Bug 326693 – PangoLayouts should be query-able about their effective properties (width / wrapped / ellipsized / etc) * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_wrapped), (pango_layout_clear_lines), (process_line): * pango/pango-layout.h: New public function: pango_layout_is_wrapped() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. 2007-01-16 Behdad Esfahbod Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return a value * pango/pango-layout.c (pango_layout_is_ellipsized): Use g_return_val_if_fail() instead of g_return_if_fail(). 2007-01-16 Behdad Esfahbod * pango/ellipsize.c (get_cluster_width): Fix width calculation. Was causing ellipsization to stop at a zero-width glyph that was part of a bigger cluster. * pango/ellipsize.c (remove_one_span): Skip over zero-width clusters, otherwise ellipsization will stop at a zero-width cluster. * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster), (_pango_glyph_item_iter_prev_cluster): Fix yet another bug with in prev_cluster that was making it not work for any interesting cluster. 2007-01-16 Behdad Esfahbod * examples/cairotwisted.c (point_on_path), (draw_text), (draw_twisted), (draw_dream), (draw_wow), (main): Improve text-on-path example. 2007-01-16 Behdad Esfahbod * configure.in: Generate .bz2 tarball instead of .gz. 2007-01-16 Behdad Esfahbod * pango-view/Makefile.am: * pango-view/renderdemo.c: * pango-view/renderdemo.h: * pango-view/viewer-main.c: * pango-view/viewer-pangocairo.c: * pango-view/viewer-pangoft2.c: * pango-view/viewer-pangox.c: * pango-view/viewer-pangoxft.c: * pango-view/viewer-render.c: * pango-view/viewer-render.h: * pango-view/viewer-x.c: Rename renderdemo.[ch] to viewer-render.[ch]. 2007-01-16 Behdad Esfahbod * pango-view/Makefile.am: Rename HELLO.utf8 and GLASS.utf8 to HELLO.txt and GLASS.txt. 2007-01-16 Behdad Esfahbod * examples/pango-view.c: * examples/pangocairo-view.c: * examples/pangoft2-view.c: * examples/pangox-view.c: * examples/pangoxft-view.c: * examples/renderdemo.c: * examples/renderdemo.h: * examples/test-arabic.txt: * examples/test-chinese.txt: * examples/test-devanagari.txt: * examples/test-gurmukhi.txt: * examples/test-hebrew.txt: * examples/test-ipa.txt: * examples/test-lao.txt: * examples/test-latin.txt: * examples/test-mixed.txt: * examples/test-syriac.txt: * examples/test-tamil.txt: * examples/test-thai.txt: * examples/test-tibetan.txt: * examples/viewer-cairo.c: * examples/viewer-cairo.h: * examples/viewer-main.c: * examples/viewer-pangocairo.c: * examples/viewer-pangoft2.c: * examples/viewer-pangox.c: * examples/viewer-pangoxft.c: * examples/viewer-win32.c: * examples/viewer-x.c: * examples/viewer-x.h: * examples/viewer.h: Move into pango-view/ * Makefile.am: * configure.in: * examples/Makefile.am: * pango-view/Makefile.am: Update. 2007-01-16 Behdad Esfahbod * examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType. 2007-01-16 Behdad Esfahbod Bug 363510 – Ability to query whether a PangoLayout is effectively ellipsized (as opposed to the set_ellpisize()/get_ellipsize() methods which only set a request, or return the set request respectively) Patch from Milosz Derezynski * pango/pango-layout.h: * pango/ellipsize.c (_pango_layout_line_ellipsize): * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_ellipsized), (pango_layout_clear_lines), (pango_layout_line_postprocess): New public function: pango_layout_is_ellipsized() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. 2007-01-16 Behdad Esfahbod * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix background rendering being off in presence of rise attributes. 2007-01-16 Behdad Esfahbod * pango/pango-context.c (itemize_state_init), (itemize_state_update_for_new_run): Update centered_baseline in presence of gravity attributes. 2007-01-16 Behdad Esfahbod * examples/cairotwisted.c (draw_text): * pango/pangocairo-win32font.c (max_glyph_width): * pango/pangofc-font.c (max_glyph_width): * pango/pangowin32.c (max_glyph_width), (pango_win32_render_layout): * pango/pangox.c (pango_x_render_layout): Use pango_layout(_iter)?_get_line_readonly() instead of pango_layout(_iter)?_get_line(). 2007-01-16 Behdad Esfahbod * pango/pango-attributes.h: * pango/pango-attributes.c: New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New public functions: pango_attr_gravity_new() pango_attr_gravity_hint_new() * pango/pango-context.c (update_attr_iterator), (itemize_state_init), (itemize_state_add_character), (get_shaper_and_font), (itemize_state_update_for_new_run): Handle gravity and gravity_hint attributes. * pango/pango-utils.h: * pango/pango-utils.c: New public function: pango_parse_enum() * pango/pango-markup.c (span_parse_func): Parse gravity and gravity_hint attributes for . Optimize a bit. * pango/pango-markup.c (parse_absolute_size), (attr_strcmp), (span_parse_int), (span_parse_boolean), (span_parse_color), (span_parse_enum), (span_parse_func): Use pango_scan_int(), pango_color_parse(), and pango_parse_enum(). Also, ignore '-' and '_' differences when matching attribute names for . * examples/renderdemo.c (parse_enum), (parse_ellipsis), (parse_gravity), (parse_gravity_hint), (parse_hinting), (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum(). * modules/basic/basic-fc.c (basic_engine_shape): * pango/pangofc-fontmap.c (pango_fc_make_pattern): Use PANGO_GRAVITY_IS_VERTICAL(). * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: Update. 2007-01-15 Behdad Esfahbod Bug 323173 – Add layout of mixed direction text for vertical layout * pango/pango-gravity.h: * pango/pango-gravity.c: Moved gravity stuff here. New public API: PangoGravityHint pango_gravity_get_for_matrix() pango_gravity_get_for_script() * pango/pango-context.h: * pango/pango-context.c (pango_context_init), (update_resolved_gravity), (itemize_state_update_for_new_run): Support gravity hint. New public API: pango_context_set_gravity_hint() pango_context_get_gravity_hint() * pango/pango-utils.c: * pango/pango-matrix.c: * pango/pango-matrix.h: * pango/pango-types.h: Moved gravity and matrix stuff into its own header. pango-types.h includes both pango-matrix.h and pango-gravity.h * pango/pango.h: Include new headers. * pango/pango.def: * pango/Makefile.am: Update. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/tmpl/vertical.sgml: Add a section for Vertical Text. * examples/renderdemo.c (do_output), (parse_gravity_hint), (parse_options): Support gravity hint. * examples/test-mixed.txt: New test, mixed Latin, Arabic, Chinese text. 2007-01-15 Tor Lillqvist * configure.in: Don't check for X and don't warn about missing fontconfig on Win32. (#392628, Yevgen Muntyan) 2007-01-15 Tor Lillqvist * configure.in: Automatically use -mms-bitfields on Windows when building with gcc. (#394453) 2007-01-13 Hans Breuer * pango/makefile.msc pango/opentype/makefile.msc : updated