2006-05-15 Behdad Esfahbod * === Released 1.13.1 === * configure.in: Version 1.13.1 * NEWS: Updated. 2006-05-15 Richard Hult Bug 322374 – Examples does not build on MacOS X * pango/Makefile.am (libpangocairo_1_0_la_LDFLAGS): Add the necessary frameworks to make this build with -no-undefined. 2006-05-13 Behdad Esfahbod * pango/pango-item.c (pango_item_split): Don't copy item before g_return_if_fail'ing it for NULL. (Coverity issue id=18509&runid=43) 2006-05-13 Behdad Esfahbod * pango/fonts.c (pango_font_face_list_sizes): Fix possible NULL dereference. (Coverity issues id=17770&runid=43) 2006-05-11 Behdad Esfahbod Bug 71033 – make size 0 fonts work * pango/fonts.c (pango_font_description_set_size): Update docs to note a size value of zero may have been set explicitly. * pango/pango-context.c (pango_context_load_font): Don't warn if font size if zero. * pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font): * pango/pangox-fontmap.c (pango_x_font_map_load_font): Don't return if size is zero (probably will fail with no fonts found.) * pango/pangoxft-fontmap.c (pango_xft_font_map_default_substitute): Xft chokes on size zero. Reassing PIXEL_SIZE to 1.0 if it's zero. 2006-05-01 Behdad Esfahbod Bug 340229 – pango_font_description_from_string does not do bound checking * pango/fonts.c (pango_font_description_set_size), (pango_font_description_set_absolute_size), (parse_size): * pango/pango-markup.c (span_parse_func): Don't accept negative font sizes, and make sure sizes don't overflow. 2006-04-29 Behdad Esfahbod Bug 329483 – hinting hexbox in cairo backend doesn't handle absolute font size Bug 340040 – pangocairo hex box hinting falls apart with PS/PDF backends * configure.in: Require cairo >= 1.1.2. Also pass -no-undefined on all systems. * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Fix hexbox info to respect absolute sizes and no metrics hinting settings. 2006-04-29 Behdad Esfahbod Bug 329664 – Move gunichar_to_glyph cache from PangoCairoFcFont to PangoFcFont Patch from LingNing Zhang. * pango/pangocairo-fcfont.c (pango_cairo_fc_font_finalize), (pango_cairo_fc_font_glyph_extents_cache_init), (pango_cairo_fc_font_get_glyph_extents_cache_entry), (pango_cairo_fc_font_class_init), (pango_cairo_fc_font_init): * pango/pangofc-font.c (pango_fc_font_finalize), (pango_fc_font_real_get_glyph): Move gunichar->glyph cache to pangofc-font.c 2006-04-29 Behdad Esfahbod Bug 329547 – pango_layout_get_pixel_extents and pango_layout_get_pixel_size cause off-by-one metrics * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * pango/pango-types.h: Define PANGO_PIXELS_FLOOR and PANGO_PIXELS_CEIL. * pango/pango-layout.c (pango_layout_get_pixel_extents), (pango_layout_get_pixel_size): Make sure logical rects are consistent and ink rects are inclusive. 2006-04-29 Behdad Esfahbod * docs/tmpl/atsui-fonts.sgml: * docs/tmpl/coverage-maps.sgml: * docs/tmpl/engines.sgml: * docs/tmpl/fonts.sgml: * docs/tmpl/freetype-fonts.sgml: * docs/tmpl/glyphs.sgml: * docs/tmpl/layout.sgml: * docs/tmpl/main.sgml: * docs/tmpl/modules.sgml: * docs/tmpl/opentype.sgml: * docs/tmpl/pango-engine-lang.sgml: * docs/tmpl/pango-engine-shape.sgml: * docs/tmpl/pango-renderer.sgml: * docs/tmpl/pangocairo.sgml: * docs/tmpl/pangofc-decoder.sgml: * docs/tmpl/pangofc-font.sgml: * docs/tmpl/pangofc-fontmap.sgml: * docs/tmpl/scripts.sgml: * docs/tmpl/tab-stops.sgml: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: * docs/tmpl/win32-fonts.sgml: * docs/tmpl/x-fonts.sgml: * docs/tmpl/xft-fonts.sgml: * pango/modules.c: * pango/pango-coverage.c: Doc updates. 2006-04-29 Behdad Esfahbod Bug 337594 – pango_glyph_string_extents_range possible bug * pango/glyphstring.c (pango_glyph_string_extents_range): Add offset for first glyph too. 2006-04-29 Behdad Esfahbod Bug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 in pango-uninstalled.pc.in * pango-uninstalled.pc.in: Require gmodule-no-export-2.0, like pango.pc.in does. 2006-04-29 Behdad Esfahbod Bug 307196 – Unhinted fonts are measured incorrectly and drawing problems occur as a result * pango/pangofc-font.c (get_face_metrics), (pango_fc_font_get_raw_extents): * pango/pangoxft-font.c (_pango_xft_font_new): Rollback previous change that forced metrics hinting always on. * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Set fcfont metrics hinting based on cairo font options. 2006-04-28 Behdad Esfahbod Bug 339749 – pango_language_from_string issues Patch from Morten Welinder. * pango/pango-utils.c (lang_equal): Make the equal function symmetric. 2006-04-28 Behdad Esfahbod * pango/pangofc-font.c (get_face_metrics), (pango_fc_font_get_raw_extents): Don't use is_hinted. Metrics are always hinted now. * pango/pangoxft-font.c (_pango_xft_font_new): Remove hack that forced is_hinted to TRUE. 2006-04-27 Behdad Esfahbod * pangocairo.pc.in, pangocairo-uninstalled.pc.in: Remove CAIRO_CFLAGS from Cflags, as we Require cairo already. 2006-04-27 Behdad Esfahbod * pango/pango-impl-utils.h: * pango/fonts.c (pango_font_get_glyph_extents), (pango_font_get_metrics), (pango_font_get_font_map): * pango/pangocairo-render.c (pango_cairo_show_glyph_string), (pango_cairo_glyph_string_path): Add more warning_history items and handle more font failures, to make sure that instead of crashing, gedit runs and draws empty boxes when pango.modules is not set properly. 2006-04-26 Behdad Esfahbod Bug 339747 – pango_font_metrics_get_approximate_digit_width docs * pango/fonts.c: Fix typo in docs. 2006-04-26 Behdad Esfahbod Bug 339749 – pango_language_from_string issues * pango/pango-utils.c (pango_language_from_string): Avoid lookup that we know fails...