summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Initialize the describe_absolute method pointer correctly.Tor Lillqvist2006-05-232-2/+12
| | | | | | | | | | | | 2006-05-23 Tor Lillqvist <tml@novell.com> * pango/pangowin32.c (pango_win32_font_class_init): Initialize the describe_absolute method pointer correctly. (pango_win32_font_describe): Scale size to points which is what pango_font_description_set_size() wants. There has been several bugs opened around this issue, with more or less misleading guesses. See for instance #314114. Thanks to Behdad for finally noticing the real problem here.
* Bug 342525 – With PangoFc and PangoWin32, approximate digit width is notBehdad Esfahbod2006-05-224-9/+99
| | | | | | | | | | | | | | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not what it says * pango/pangocairo-win32font.c (max_glyph_width), (create_metrics_for_context): Use max digit width instead of average. Reverted the following changes: * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context): Likewise for PangoFc. Compute average instead of max. (max_glpyh_with): Now unused, drop. * pango/pangowin32.c (pango_win32_font_get_metrics): Calculate average digit width correctly, not as max of the digit widths. (#342525) Note that this code doesn't really get much used currently (instead the code in pangocairo-win32font.c is used), fixed only for completeness. (max_glpyh_with): Now unused, drop.
* New function pango_font_describe_with_absolute_size().Behdad Esfahbod2006-05-2210-17/+96
| | | | | | | | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> * pango/pango-font.h, pango/fonts.c: New function pango_font_describe_with_absolute_size(). * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): * pango/pangocairo-win32font.c (create_metrics_for_context): * pango/pangofc-font.c (pango_fc_font_class_init), (pango_fc_font_describe_absolute), (pango_fc_font_create_metrics_for_context): * pango/pangowin32.c (pango_win32_font_class_init), (pango_win32_font_get_metrics), (pango_win32_font_describe), (pango_win32_font_describe_absolute): Implement and use PangoFontClass->describe_absolute.
* Bug 339730 – Pango needlessly falls back away from a Type 1 font into aBehdad Esfahbod2006-05-222-1/+9
| | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 339730 – Pango needlessly falls back away from a Type 1 font into a TTF font * pango/fonts.c (find_field): Fix strncmp usage.
* Bug 342562 – Support absolute sizes inBehdad Esfahbod2006-05-222-5/+27
| | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 342562 – Support absolute sizes in pango_font_description_to/from_string * pango/fonts.c (parse_size), (pango_font_description_from_string), (pango_font_description_to_string): Accept and generate a "px" suffix to identify absolute font sizes.
* Bug 341922 – pango should handle more characters as zero width PatchBehdad Esfahbod2006-05-222-4/+32
| | | | | | | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 341922 – pango should handle more characters as zero width Patch from Roozbeh Pournader * pango/pango-utils.c (pango_is_zero_width): Handle the following too: U+00AD SOFT HYPHEN U+034F COMBINING GRAPHEME JOINER U+2060 WORD JOINER U+2061 FUNCTION APPLICATION U+2062 INVISIBLE TIMES U+2063 INVISIBLE SEPARATOR
* Minor.Behdad Esfahbod2006-05-221-2/+2
|
* Bug 342525 – With PangoFc and PangoWin32, approximate digit width is notBehdad Esfahbod2006-05-222-28/+15
| | | | | | | | | | | 2006-05-21 Behdad Esfahbod <behdad@gnome.org> Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not what it says * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context): Likewise for PangoFc. Compute average instead of max. (max_glpyh_with): Now unused, drop.
* Calculate average digit width correctly, not as max of the digit widths.Tor Lillqvist2006-05-212-25/+12
| | | | | | | | | | | 2006-05-22 Tor Lillqvist <tml@novell.com> * pango/pangowin32.c (pango_win32_font_get_metrics): Calculate average digit width correctly, not as max of the digit widths. (#342525) Note that this code doesn't really get much used currently (instead the code in pangocairo-win32font.c is used), fixed only for completeness. (max_glpyh_with): Now unused, drop.
* Remove unused struct _cairo_font_options.Behdad Esfahbod2006-05-212-7/+5
| | | | | | | 2006-05-21 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fontmap.c: Remove unused struct _cairo_font_options.
* Minor.Behdad Esfahbod2006-05-181-12/+1
|
* Bug 342079 – pangoatsui-private.h missing from releaseBehdad Esfahbod2006-05-172-0/+8
| | | | | | | | | 2006-05-17 Behdad Esfahbod <behdad@gnome.org> Bug 342079 – pangoatsui-private.h missing from release * pango/Makefile.am (libpangocairo_1_0_la_SOURCES): Include pangoatsui-private.h.
* === Released 1.13.1 ===PANGO_1_13_1Behdad Esfahbod2006-05-153-2/+41
| | | | | | | | | | 2006-05-15 Behdad Esfahbod <behdad@gnome.org> * === Released 1.13.1 === * configure.in: Version 1.13.1 * NEWS: Updated.
* Add some bug links.Behdad Esfahbod2006-05-151-0/+9
|
* Add the necessary frameworks to make this build with -no-undefined.Richard Hult2006-05-152-0/+6
| | | | | | | 2006-05-15 Richard Hult <richard@imendio.com> * pango/Makefile.am (libpangocairo_1_0_la_LDFLAGS): Add the necessary frameworks to make this build with -no-undefined.
* Don't copy item before g_return_if_fail'ing it for NULL. (Coverity issueBehdad Esfahbod2006-05-132-2/+8
| | | | | | | 2006-05-13 Behdad Esfahbod <behdad@gnome.org> * 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)
* Fix possible NULL dereference. (Coverity found)Behdad Esfahbod2006-05-132-1/+7
| | | | | | | 2006-05-13 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_face_list_sizes): Fix possible NULL dereference. (Coverity found)
* Update docs to note a size value of zero may have been set explicitly.Behdad Esfahbod2006-05-118-10/+34
| | | | | | | | | | | | | | | | | | 2006-05-11 Behdad Esfahbod <behdad@gnome.org> * 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.
* Bug 340229 – pango_font_description_from_string does not do boundBehdad Esfahbod2006-05-013-2/+14
| | | | | | | | | | | | 2006-05-01 Behdad Esfahbod <behdad@gnome.org> 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.
* Require cairo >= 1.1.2. Also pass -no-undefined on all systems.Behdad Esfahbod2006-04-293-88/+118
| | | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> * 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.
* Bug 329664 – Move gunichar_to_glyph cache from PangoCairoFcFont toBehdad Esfahbod2006-04-293-157/+66
| | | | | | | | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> 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
* Bug 329547 – pango_layout_get_pixel_extents andBehdad Esfahbod2006-04-297-25/+65
| | | | | | | | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> 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.
* Oops.Behdad Esfahbod2006-04-292-10/+1
|
* Doc updates.Behdad Esfahbod2006-04-2928-170/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> * 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: * examples/Makefile.am: * pango/modules.c: * pango/pango-coverage.c: Doc updates.
* Bug 337594 – pango_glyph_string_extents_range possible bugBehdad Esfahbod2006-04-292-2/+9
| | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> Bug 337594 – pango_glyph_string_extents_range possible bug * pango/glyphstring.c (pango_glyph_string_extents_range): Add offset for first glyph too.
* Bug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 inBehdad Esfahbod2006-04-292-1/+9
| | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> 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.
* Bug 307196 – Unhinted fonts are measured incorrectly and drawingBehdad Esfahbod2006-04-294-8/+61
| | | | | | | | | | | | | | | 2006-04-29 Behdad Esfahbod <behdad@gnome.org> 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.
* Bug 339749 – pango_language_from_string issues Patch from MortenBehdad Esfahbod2006-04-282-6/+15
| | | | | | | | | 2006-04-28 Behdad Esfahbod <behdad@gnome.org> Bug 339749 – pango_language_from_string issues Patch from Morten Welinder. * pango/pango-utils.c (lang_equal): Make the equal function symmetric.
* Don't use is_hinted. Metrics are always hinted now.Behdad Esfahbod2006-04-283-43/+17
| | | | | | | | | | | 2006-04-28 Behdad Esfahbod <behdad@gnome.org> * 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.
* Remove CAIRO_CFLAGS from Cflags, as we Require cairo already.Behdad Esfahbod2006-04-283-2/+7
| | | | | | | 2006-04-27 Behdad Esfahbod <behdad@gnome.org> * pangocairo.pc.in, pangocairo-uninstalled.pc.in: Remove CAIRO_CFLAGS from Cflags, as we Require cairo already.
* Add more warning_history items and handle more font failures, to make sureBehdad Esfahbod2006-04-274-10/+69
| | | | | | | | | | | | | 2006-04-27 Behdad Esfahbod <behdad@gnome.org> * 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.
* Bug 339747 – pango_font_metrics_get_approximate_digit_width docsBehdad Esfahbod2006-04-262-2/+8
| | | | | | | | 2006-04-26 Behdad Esfahbod <behdad@gnome.org> Bug 339747 – pango_font_metrics_get_approximate_digit_width docs * pango/fonts.c: Fix typo in docs.
* Bug 339749 – pango_language_from_string issuesBehdad Esfahbod2006-04-262-5/+14
| | | | | | | | | 2006-04-26 Behdad Esfahbod <behdad@gnome.org> Bug 339749 – pango_language_from_string issues * pango/pango-utils.c (pango_language_from_string): Avoid lookup that we know fails...
* === Released 1.13.0 ===PANGO_1_13_0Behdad Esfahbod2006-04-233-1/+25
| | | | | | | | | | 2006-04-23 Behdad Esfahbod <behdad@gnome.org> * === Released 1.13.0 === * configure.in: Version 1.13.0 * NEWS: Updated.
* Add Sinhala. (patch from Harshula)Behdad Esfahbod2006-04-142-0/+5
| | | | | | 2006-04-14 Behdad Esfahbod <behdad@gnome.org> * examples/HELLO.utf8: Add Sinhala. (patch from Harshula)
* Bug 338343 – Bad castBehdad Esfahbod2006-04-142-1/+7
| | | | | | | | 2006-04-14 Behdad Esfahbod <behdad@gnome.org> Bug 338343 – Bad cast * pango/pango-layout.c (pango_layout_set_text): Fix cast.
* Check for nullity somewhere else.Behdad Esfahbod2006-04-132-21/+29
| | | | | | | 2006-04-13 Behdad Esfahbod <behdad@gnome.org> * pango/pangox.c (get_font_metrics_from_subfonts): Check for nullity somewhere else.
* Fix loop variables. (coverity found bug.)Behdad Esfahbod2006-04-122-3/+8
| | | | | | | 2006-04-12 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-gpos.c: Fix loop variables. (coverity found bug.)
* Bug 337924 – cleanups for issues reported by various compilers PatchBehdad Esfahbod2006-04-1126-72/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-11 Behdad Esfahbod <behdad@gnome.org> Bug 337924 – cleanups for issues reported by various compilers Patch from Kjartan Maraas. * examples/viewer-x.c (update): * modules/arabic/arabic-fc.c (fallback_shape), (arabic_engine_shape): * modules/basic/basic-fc.c (fallback_shape), (basic_engine_shape): * modules/basic/basic-x.c: * modules/hangul/hangul-fc.c: * modules/hebrew/hebrew-fc.c (hebrew_engine_shape): * modules/indic/indic-fc.c: * modules/khmer/khmer-fc.c: * modules/syriac/syriac-fc.c: * modules/thai/thai-fc.c: * modules/tibetan/tibetan-fc.c: * pango/break.c: * pango/modules.c: * pango/opentype/ftglue.c (_hb_ftglue_face_goto_table): * pango/pango-attributes.c (pango_attr_list_filter): * pango/pango-engine.c: * pango/pango-fontset.c: * pango/pango-layout.c (pango_layout_set_text), (pango_layout_xy_to_index), (pango_layout_get_cursor_pos): * pango/pango-markup.c (text_handler): * pango/pango-utils.c (read_alias_file): * pango/pangocairo-fcfont.c (G_DEFINE_TYPE_WITH_CODE): * pango/pangocairo-fcfontmap.c (G_DEFINE_TYPE_WITH_CODE): * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): * pango/pangox-fontmap.c (pango_x_make_matching_xlfd): * tests/dump-boundaries.c (fail): Remove unused variables. Remove excess semicolon after DEFINE_TYPE macros.
* Removed. Have not been updated since Feb 2001.Behdad Esfahbod2006-04-104-74/+5
| | | | | | | 2006-04-10 Behdad Esfahbod <behdad@gnome.org> * config.h.win32, examples/makefile.msc: Removed. Have not been updated since Feb 2001.
* Fix broken changes I made :).Behdad Esfahbod2006-04-102-40/+46
| | | | | | 2006-04-10 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c: Fix broken changes I made :).
* Fix minor bugs reported by the Coverity scan report.Behdad Esfahbod2006-04-105-53/+82
| | | | | | | | | | | | | | | | | | | | | | | 2006-04-10 Behdad Esfahbod <behdad@gnome.org> Fix minor bugs reported by the Coverity scan report. * pango/opentype/harfbuzz-gdef.c (HB_GDEF_Build_ClassDefinition): * pango/opentype/harfbuzz-gpos.c (HB_GPOS_Query_Scripts), (HB_GPOS_Query_Languages), (HB_GPOS_Query_Features): Do not access structs before we check them for nullity. * pango/pango-layout.c (pango_layout_index_to_line), (pango_layout_index_to_line_and_extents), (pango_layout_index_to_pos): Check for invalid iterators outside the loop, so we don't crash. * pango/pango-layout.c (pango_layout_line_x_to_index): Set char_trailing instead of trailing in one of too many paths. Should have been a typo. * pango/pangox.c (get_font_metrics_from_subfonts): Check for nullity somewhere.
* Fix typo in doc comment.Tor Lillqvist2006-04-092-2/+7
| | | | | | | 2006-04-09 Tor Lillqvist <tml@novell.com> * pango/pango-utils.c (pango_quantize_line_geometry): Fix typo in doc comment.
* Bug 337821 – invisible unicode chars are visible next to hebrew charsBehdad Esfahbod2006-04-093-52/+20
| | | | | | | | | | | | 2006-04-09 Behdad Esfahbod <behdad@gnome.org> Bug 337821 – invisible unicode chars are visible next to hebrew chars * modules/hebrew/hebrew-fc.c: Handle zero_width chars in fallback shaper too. * modules/hebrew/hebrew-shaper.c: Remove unused Unicode<->ISO8859 tables.
* Incorrect text rendering when in x86 64-bit precision modeBehdad Esfahbod2006-04-072-7/+22
| | | | | | | | | | 2006-04-07 Behdad Esfahbod <behdad@gnome.org> Incorrect text rendering when in x86 64-bit precision mode https://bugs.freedesktop.org/show_bug.cgi?id=5200 * pango/pangocairo-fcfont.c:Round metrics when converting to Pango units.
* Bug 337502 – Win32 build fix Patch from Alexander Larsson.Behdad Esfahbod2006-04-063-2/+13
| | | | | | | | | | | | 2006-04-06 Behdad Esfahbod <behdad@gnome.org> Bug 337502 – Win32 build fix Patch from Alexander Larsson. * pango/pangocairo-fontmap.c: Fix order of checking for freetype and win32 cairo backends to match the constructor. * pango/pangoft2.def: Add missing symbol
* Update from HarfBuzz. Lars Knoll fixed all the warnings.Behdad Esfahbod2006-04-065-113/+184
| | | | | | | 2006-04-06 Behdad Esfahbod <behdad@gnome.org> * pango/opentype: Update from HarfBuzz. Lars Knoll fixed all the warnings.
* Fix a few warnings.Behdad Esfahbod2006-04-043-4/+8
| | | | | | 2006-04-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c, pango/querymodules.c: Fix a few warnings.
* Make sure TTAG_GDEF and frineds are defined, needed for FreeType <= 2.1.7Behdad Esfahbod2006-04-035-9/+16
| | | | | | | 2006-04-03 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-impl.h: Make sure TTAG_GDEF and frineds are defined, needed for FreeType <= 2.1.7 (pointed by Tim Janik).
* Bug 337029 – pango/fonts.c: Illegal structure initializationBehdad Esfahbod2006-04-032-5/+12
| | | | | | | | | 2006-04-03 Behdad Esfahbod <behdad@gnome.org> Bug 337029 – pango/fonts.c: Illegal structure initialization * pango/fonts.c: Change NULL's to ""'s after previous change, and fix code to follow.