2007-06-18 Behdad Esfahbod * === Released 1.17.3 === * configure.in: Version 1.17.3 * NEWS: Updated. 2007-06-18 Behdad Esfahbod Bug 448342 – pango_layout_index_to_line_x() counts lines from 1 * pango/pango-layout.c (pango_layout_index_to_line): Count lines from zero, not one! 2007-06-18 Behdad Esfahbod * configure.in: * tests/cxx-test.C: Include pangocairo.h too. 2007-06-18 Behdad Esfahbod Bug 447568 – improve docs on what absolute size means * pango/fonts.c: Improve docs. 2007-06-15 Hans Breuer * pango/makefile.msc : updated 2007-06-14 Behdad Esfahbod * pango/pangocairo-font.c (_pango_cairo_font_private_scaled_font_data_destroy): Check for NULL before dereferencing. Patch from Keith Packard. 2007-06-13 Behdad Esfahbod Bug 447189 – fonts.c: pango_font_face_is_synthesized returns NULL * pango/fonts.c (pango_font_face_is_synthesized): Fix return value. 2007-06-12 Behdad Esfahbod * pango/pango-attributes.c (pango_attr_font_desc_equal): Compare set fields of two font descriptions for equality too, as pango_font_description_equal() doesn't check the mask. 2007-06-12 Richard Hult * pango/pangocairo-atsuifontmap.c: Implement get_font_type(). 2007-06-12 Tor Lillqvist * pango/pangocairo-win32fontmap.c: Implement PangoCairoWin32FontMap::get_font_type(). 2007-06-12 Tor Lillqvist * pango/pangowin32-private.h (struct PangoWin32Face): Add is_synthetic field. * pango/pangowin32-fontmap.c: Implement PangoWin32Face::is_synthesized(). * pango/pangocairo-win32font.c * pango/pangocairo-win32fontmap.c: Update for the changes to PangoCairoFontMap and PangoCairoFont. 2007-06-12 Behdad Esfahbod Bug 445832 – pango_cairo_update_layout() always invalidates layout * pango/pangocairo-context.c (_pango_cairo_update_context), (pango_cairo_update_context), (pango_cairo_update_layout): Don't invalidate layout if matrix and font options didn't change. 2007-06-11 Behdad Esfahbod * pango/pango-attributes.h: * pango/pango-font.h: * pango/pango-glyph.h: * pango/pango-gravity.h: * pango/pango-language.h: * pango/pango-layout.h: * pango/pango-matrix.h: * pango/pango-ot-private.h: * pango/pango-ot.h: * pango/pango-renderer.h: * pango/pango-script.h: * pango/pango-tabs.h: * pango/pango-utils.h: * pango/pangoatsui-private.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.h: * pango/pangocairo-fc.h: * pango/pangocairo-private.h: * pango/pangocairo-win32.h: * pango/pangocairo.h: * pango/pangofc-decoder.h: * pango/pangofc-font.h: * pango/pangofc-fontmap.h: * pango/pangoft2-private.h: * pango/pangoft2.h: * pango/pangowin32-private.h: * pango/pangox-private.h: * pango/pangoxft-render.h: * pango/pangoxft.h: Add G_GNUC_CONST and G_GNUC_PURE annotations. 2007-06-11 Behdad Esfahbod * pango/pango-ot.h: New engine public macros: PANGO_OT_TAG_MAKE() PANGO_OT_TAG_MAKE_FROM_STRING() * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. 2007-06-11 Behdad Esfahbod Bug 446018 – Bus error in the pango_ot_tag_from_language() * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_to_script), (pango_ot_tag_from_language), (pango_ot_tag_to_language): Make sure int access is aligned. 2007-06-12 Richard Hult * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized): Implement is_synthesized for the ATSUI backend. 2007-06-11 Behdad Esfahbod Bug 440588 – Add pango_font_face_is_synthesized() * pango/pango-font.h: * pango/fonts.c: New PangoFontFace method is_synthesized. New public API: pango_font_face_is_synthesized() * pango/pangofc-fontmap.c (pango_fc_face_is_synthesized): Implement new method. * docs/pango-sections.txt: * docs/tmpl/fonts.sgml: * pango/pango.def: Update. 2007-06-12 Richard Hult * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifontmap.c: Update for the changes to PangoCairoFontMap and PangoCairoFont. 2007-06-11 Behdad Esfahbod Bug 446355 – the parsing with pango_parse_markup is not coherent * pango/pango-markup.c (pango_parse_markup): Use pango_attr_list_insert() instead of pango_attr_list_change() as merging adjacent attributes of the same kind is not a safe operation and can change the derived font of a segment in an unexpected and incorrect way. 2007-06-11 Behdad Esfahbod * pango/pangocairo-fontmap.c: Make sure all enabled font backends included (reported by Vincent Isambart). 2007-06-11 Behdad Esfahbod * docs/pango_markup.sgml: Add 'gravity', 'gravity_hint', and 'letter_spacing' span attributes. 2007-06-11 Behdad Esfahbod Bug 438801 – underline should add "error" type. * docs/pango_markup.sgml: Add "error" underline type to docs. 2007-06-10 Behdad Esfahbod Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 347235 – Add pango_cairo_font_map_get_font_type Bug 353291 – Provide pango_cairo_font_map_new_for_font_type * pango/pangocairo-font.c: New public API: pango_cairo_font_get_scaled_font() * pango/pangocairo-fontmap.c: New public API: pango_cairo_font_map_new_for_font_type() pango_cairo_font_map_get_font_type() * pango/pangocairo-fcfontmap.c: Implement get_font_type() method. * pango/pangocairo.h: * pango/pangocairo-private.h: * docs/pango-sections.txt: * docs/tmpl/pangocairo.sgml: * pango/pangocairo.def: Update. 2007-06-09 Behdad Esfahbod Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.c into pangocairo-font.c * pango/pangocairo-fontmap.c: * pango/pangocairo-fcfontmap.c: Remove per-fontmap renderer. We've not been using it for a while and there is no reason to use it. * pango/pangocairo-font.c * pango/pangocairo-fcfont.c: Most most code (including glyph extents caching) from fcfont.c to font.c. Simplifies individual backends a lot. ATSUI and Win32 cairo backends should adapt. * pango/pangocairo-render.c * pango/pangocairo-private.h: Update to reflect above changes. 2007-06-05 Behdad Esfahbod * pango/fonts.c (pango_font_description_merge), (pango_font_description_merge_static), (pango_font_description_copy), (pango_font_description_copy_static), (pango_font_description_hash), (pango_font_description_to_string), (pango_font_description_to_filename): Add missing g_return_if_fail()s. Pointed out by fcrozat. 2007-06-04 Behdad Esfahbod * pango/shape.c (pango_shape): Zero glyphs->num_glyphs before calling into shape engine. * pango/pango-engine.c (fallback_engine_shape): Improve, to support clusters and what not. * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Use "pango_script_get_sample_language (PANGO_SCRIPT_LATIN)" instead of hardcoding "en". Handle cairo_scaled_font_extents() failure.