summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Make sure #include <config.h> is the first include in the file. (bugBehdad Esfahbod2006-01-1465-22/+85
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * */*.c, */*/*.c: Make sure #include <config.h> is the first include in the file. (bug #158870, based on patch by Luis Menina)
* Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95.Behdad Esfahbod2006-01-141-1/+1
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.h (pango_is_zero_width): Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95. (bug #326847)
* pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,Behdad Esfahbod2006-01-0520-29/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-05 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am, * pango/fonts.c, * pango/glyphstring.c, * pango/pango-attributes.c, * pango/pango-color.c, * pango/pango-impl-utils.h, * pango/pango-item.c, * pango/pango-layout.c, * pango/pango-tabs.c, * pango/pango-utils.c, * pango/pango-utils.h, * pango/pangoatsui-fontmap.c, * pango/pangocairo-font.c, * pango/pangocairo-fontmap.c, * pango/pangofc-fontmap.c, * pango/pangowin32-fontmap.c, * pango/pangox-fontmap.c, * pango/pangox.c, * pango/opentype/pango-ot-info.c, * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid unnecessary strdups in the type system. (bug #325832, Matthias Clasen)
* Use g_slice for ShaperFontElement allocation. (bug #325728, MatthiasBehdad Esfahbod2006-01-041-2/+2
| | | | | | | 2006-01-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c: Use g_slice for ShaperFontElement allocation. (bug #325728, Matthias Clasen)
* Use g_slice for various attribute types allocations. (bug #325040,Behdad Esfahbod2006-01-011-23/+35
| | | | | | | 2006-01-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.c: Use g_slice for various attribute types allocations. (bug #325040, Matthias Clasen)
* Use pango_font_description_set_family_static. (bug #325013, MatthiasBehdad Esfahbod2005-12-271-1/+1
| | | | | | | | 2005-12-27 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (pango_context_init): Use pango_font_description_set_family_static. (bug #325013, Matthias Clasen)
* Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)Behdad Esfahbod2005-12-271-2/+2
| | | | | | | 2005-12-27 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)
* Add pango_matrix_get_font_scale_factor. (bug #323978, J. Ali Harlow)Behdad Esfahbod2005-12-141-0/+1
| | | | | | | 2005-12-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango.def: Add pango_matrix_get_font_scale_factor. (bug #323978, J. Ali Harlow)
* Pass G_MODULE_BIND_LOCAL to g_module_open. (Pointed by Federico)Behdad Esfahbod2005-12-142-2/+2
| | | | | | | 2005-12-14 Behdad Esfahbod <behdad@gnome.org> * pango/modules.c (pango_module_load), pango/querymodules.c: Pass G_MODULE_BIND_LOCAL to g_module_open. (Pointed by Federico)
* === Released 1.11.1 ===Behdad Esfahbod2005-12-131-1/+4
| | | | | | | | | | | | | | 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.1 === * configure.in: Version 1.11.1 * NEWS: Updated. 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Handle module-defs-atsui.c.
* Fix bug #323540.Behdad Esfahbod2005-12-124-43/+63
| | | | | | | | | | | | | | | | 2005-12-12 Behdad Esfahbod <behdad@gnome.org> Fix bug #323540. * pangofc-fontmap.c (get_scaled_size): The logic in there is moved and renamed into pango-utils. * pango/pango-types.h, * pango/pango-utils.c (pango_matrix_get_font_scale_factor): New function. * pango/pangocairo-fcfont.c (get_font_size): Divide pixel-size by matrix font-scale-factor, since pixel-size is scaled.
* Update on missing-box drawing change. Add (!glyph) to the conditional.Behdad Esfahbod2005-12-101-1/+1
| | | | | | | 2005-12-10 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_glyph_extents): Update on missing-box drawing change. Add (!glyph) to the conditional.
* Free ->fontset_hash. (#323498, Morten Welinder)Behdad Esfahbod2005-12-081-0/+3
| | | | | | | 2005-12-05 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c (pango_fc_font_map_finalize): Free ->fontset_hash. (#323498, Morten Welinder)
* Draw an empty dashed box on missing glyphs for cairo-fc backend.Behdad Esfahbod2005-12-063-10/+33
| | | | | | | | 2005-12-05 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfont.c, pango/pangocairo-private.h, pango/pangocairo-render.c: Draw an empty dashed box on missing glyphs for cairo-fc backend.
* Use new g_slice API for TypeLink allocation, instead of GMemChunks.Behdad Esfahbod2005-12-053-110/+89
| | | | | | | | | | 2005-12-05 Behdad Esfahbod <behdad@gnome.org> * pango/mini-fribidi/fribidi.c, pango/mini-fribidi/fribidi_config.h, pango/mini-fribidi/fribidi.patch: Use new g_slice API for TypeLink allocation, instead of GMemChunks. * configure.in: Bump required glib version to 2.9.1.
* Add a constact fixed-size (256) cache for caching glyph extents, insteadBehdad Esfahbod2005-11-291-113/+169
| | | | | | | | | 2005-11-29 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfont.c: Add a constact fixed-size (256) cache for caching glyph extents, instead of the growing g_hash_table. The cache itself is very similar to the recent gunichar->glyph cache done by Federico. Reviewed by Matthias Clasen.
* Tiny doc improvement.Behdad Esfahbod2005-11-251-1/+1
|
* Fix a typoMatthias Clasen2005-11-241-1/+1
|
* Remove cast to double in things like a = b / c where a, b, and c are allBehdad Esfahbod2005-11-232-8/+7
| | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/mapping.c (pango_glyph_string_index_to_x), pango/pango-layout.c (pango_layout_iter_get_char_extents): Remove cast to double in things like a = b / c where a, b, and c are all ints. (#312469, Sven Neumann)
* Fix typo in docs.Behdad Esfahbod2005-11-231-1/+3
| | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/opentyp/pango-ot-buffer.c: Fix typo in docs.
* Tiny clean up. Simpler way to suppress gcc strict-aliasing warning. (partBehdad Esfahbod2005-11-231-20/+8
| | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/querymodules.c: Tiny clean up. Simpler way to suppress gcc strict-aliasing warning. (part of #123307)
* Added "Since:" tags to all interfaces added after Pango 1.0. (#319116,Behdad Esfahbod2005-11-2311-0/+104
| | | | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c pango/pango-attributes.c pango/pango-context.c pango/pango-glyph-item.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-font.c pango/pangoft2-fontmap.c pango/opentype/pango-ot-buffer.c pango/opentype/pango-ot-ruleset.c: Added "Since:" tags to all interfaces added after Pango 1.0. (#319116, Brian Cameron)
* Link libpangoxft with -lm. (#318210)Behdad Esfahbod2005-11-231-1/+1
| | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Link libpangoxft with -lm. (#318210)
* Free used memory. (#316467, Steve Grubb)Behdad Esfahbod2005-11-231-0/+4
| | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/querymodules.c: Free used memory. (#316467, Steve Grubb)
* Protect against possible division by zeros (#316468, Steve Grubb)Behdad Esfahbod2005-11-233-14/+28
| | | | | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> Protect against possible division by zeros (#316468, Steve Grubb) * pango/pango-context.c (update_metrics_from_items), pango/pango-fontset.c (pango_fontset_real_get_metrics): If count is zero, do not alter approximate_{char,digit}_width. * pango/opentype/disasm.c: Err on invalid DeltaFormat.
* Remove excess "the" in docs. (#319175, Masao Mutoh)Behdad Esfahbod2005-11-231-1/+1
| | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_get_absolute_size): Remove excess "the" in docs. (#319175, Masao Mutoh)
* Reworked basic shaper with OpenType support. (#101079, based on patch fromBehdad Esfahbod2005-11-231-3/+3
| | | | | | | | | | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * modules/basic/basic-fc.c: Reworked basic shaper with OpenType support. (#101079, based on patch from Denis Jacquerye and Noah Levitt) * modules/basic/basic-fc.c (basic_scripts): Added Unicode 4.1 addition script PANGO_SCRIPT_GLAGOLITIC that is a "simple" script. * modules/arabic/arabic-fc.c, modules/syriac/syriac-fc.c: Replace g_utf8_to_ucs4_fast() with g_utf8_strlen()! * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_add_feature): Remove reference in docs to pango_ot_ruleset_shape() that was removed long ago.
* Finish previous patch. Use GType private data, cache it into fcfont->priv.Behdad Esfahbod2005-11-222-19/+14
| | | | | | | | | | | | 2005-11-22 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-font.c: Finish previous patch. Use GType private data, cache it into fcfont->priv. Get rid of PANGO_FC_FONT_GET_PRIVATE (fcfont) and access fcfont->priv. (#322174, Christian Persch) * pango/pangofc-fontmap.c (pango_fc_font_map_init): Remove redundant priv = fcfontmap->priv initialization.
* Fixes #322174:Federico Mena Quintero2005-11-224-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-22 Federico Mena Quintero <federico@ximian.com> Fixes #322174: * pango/pangofc-font.h (struct _PangoFcFont): Replace the "gpointer context_key" field with "gpointer priv". This way we can access the private data quickly, instead of using g_type_instance_get_private(). * pango/pangofc-private.h: Added prototypes for _pango_fc_font_{get,set}_context_key(). * pango/pangofc-font.c (struct _PangoFcFontPrivate): Moved the "context_key" field to here. (PANGO_FC_FONT_GET_PRIVATE): Use the "priv" field instead of GType private data. (pango_fc_font_class_init): Don't register GType private data. (pango_fc_font_init): Initialize the private data here. (pango_fc_font_finalize): Free the private data. (_pango_fc_font_get_context_key): Implement. (_pango_fc_font_set_context_key): Implement. (pango_fc_font_get_glyph): Remove the g_return_val_if_fail(); it was appearing quite high in the profile. * pango/pangofc-fontmap.c (pango_fc_font_map_add): Call _pango_fc_font_set_context_key() instead of setting the fcfont->context_key directly. (_pango_fc_font_map_remove): Likewise; also use _pango_fc_font_get_context_key() instead of accessing the field directly.
* Load a font suitable for viewing English text when creating mini font forBehdad Esfahbod2005-11-222-18/+25
| | | | | | | | 2005-11-22 Behdad Esfahbod <behdad@gnome.org> * pango/pangoxft-font.c (_pango_xft_font_get_mini_font): Load a font suitable for viewing English text when creating mini font for hex boxes. (#312477)
* Silent cvsAnders Carlsson2005-11-221-0/+1
|
* Add checks for ATSUI.Anders Carlsson2005-11-2210-2/+1433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-21 Anders Carlsson <andersca@imendio.com> * configure.in: Add checks for ATSUI. * examples/Makefile.am: Only build pango-cairoview if freetype is detected. * modules/basic/Makefile.am: Add basic ATSUI module. * pango/Makefile.am: Add ATSUI files for cairo backend. * pango/pangocairo-fontmap.c: (pango_cairo_font_map_new): Support creating ATSUI font maps here. * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangoatsui.c: * pango/pangoatsui.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifont.h: * pango/pangocairo-atsuifontmap.c: Add.
* Only update static mid on a match.Behdad Esfahbod2005-11-221-2/+3
| | | | | | | 2005-11-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script.c (pango_script_for_unichar_bsearch): Only update static mid on a match.
* Return double instead of int. (#321891, Sebastian Bacher)Behdad Esfahbod2005-11-211-2/+2
| | | | | | | 2005-11-21 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c (get_scaled_size): Return double instead of int. (#321891, Sebastian Bacher)
* Use the new support for negative offsets in g_utf8_pointer_to_offset. SoBehdad Esfahbod2005-11-181-2/+5
| | | | | | | | | | | 2005-11-18 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (pango_layout_move_cursor_visually): Use the new support for negative offsets in g_utf8_pointer_to_offset. So now, we simply do: offset += g_utf8_pointer_to_offset(text+oldindex, text+newindex), instead of doing offset = g_utf8_pointer_to_offset(text, text+index) as we did before.
* Documentation improvements. (#321731)Behdad Esfahbod2005-11-181-13/+13
| | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * pango/pango-renderer.c: Documentation improvements. (#321731)
* General cleanup. (pango_font_description_unset_fields): Set fields beingBehdad Esfahbod2005-11-181-96/+73
| | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_*): General cleanup. (pango_font_description_unset_fields): Set fields being unset to their default value. (pango_font_description_hash, pango_font_description_equal): Do not use mask in these. Use all other fields unconditionally.
* Compare language too. (#318168)Behdad Esfahbod2005-11-171-0/+1
| | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c (fontset_hash_key_equal): Compare language too. (#318168)
* Remove g_utf8_strlen that was only used to give a warning.Behdad Esfahbod2005-11-171-10/+1
| | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * pango/break.c (pango_get_log_attrs): Remove g_utf8_strlen that was only used to give a warning. * pango/break.c (pango_default_break): Add gcc-suggested parantheses around boolean expression.
* More documentation improvements.Behdad Esfahbod2005-11-1711-116/+128
| | | | | | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/coverage-maps.sgml docs/tmpl/fonts.sgml docs/tmpl/glyphs.sgml docs/tmpl/layout.sgml docs/tmpl/main.sgml docs/tmpl/scripts.sgml docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml pango/break.c pango/fonts.c pango/pango-fontset.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-decoder.c pango/pangofc-decoder.h pango/pangofc-font.c pango/pangofc-font.h pango/pangoxft-font.c: More documentation improvements.
* Part of #101079:Behdad Esfahbod2005-11-172-2/+10
| | | | | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> Part of #101079: * pango/opentype/ftxopen.c (Load_Lookup): In extension subtables, offset is relative to the extension subtable, not the original table. (Greg Aumann) * pango/opentype/ftxgpos.c (Load_BaseArray): When reading BaseAnchor, skip offsets that are zero. Works around bug in Doulos SIL Regular.
* Various documentation improvements.Behdad Esfahbod2005-11-1717-72/+73
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-16 Behdad Esfahbod <behdad@gnome.org> * docs/pango_markup.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/win32-fonts.sgml docs/tmpl/x-fonts.sgml docs/tmpl/xft-fonts.sgml pango/break.c pango/ellipsize.c pango/fonts.c pango/pango-attributes.c pango/pango-color.c pango/pango-context.c pango/pango-coverage.c pango/pango-fontmap.c pango/pango-glyph-item.c pango/pango-layout.c pango/pango-markup.c pango/pango-tabs.c pango/pango-types.h pango/pango-utils.c pango/pangoft2-render.c pango/pangox.c pango/pangoxft-render.c: Various documentation improvements.
* Added % to PANGO_DIRECTION_LTR in doc comments.Behdad Esfahbod2005-11-161-1/+1
| | | | | | 2005-11-15 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h: Added % to PANGO_DIRECTION_LTR in doc comments.
* Respect fontconfig reassignment of pixelsize. (#317121, Funda Wang)Behdad Esfahbod2005-11-151-3/+24
| | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfont.c: Respect fontconfig reassignment of pixelsize. (#317121, Funda Wang)
* Updates from #320666:Behdad Esfahbod2005-11-144-8246/+2752
| | | | | | | | | | | | | | | | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> Updates from #320666: * pango/Makefile.am: Remove pango-easy-scripts-table.h. * pango/pango-easy-scripts-table.h: Removed. The "easy" table goes into pango-scripts-table.h too. * pango/pango-script-table.h: Include "easy" table. * pango/pango-script.c: Change gunichar->script last_index caching mechanism. The caching is simply done by making int mid in the bsearch static. * tools/Makefile.am: Remove gen-easy-scripts-table.c. * tools/gen-easy-scripts-table.c: Removed. The "easy" table is generated in gen-scripts-table.pl too. * tools/gen-script-table.h: Generate "easy" table.
* Remove g_utf8_strlen and work around the logic. Patch by Owen Taylor.Behdad Esfahbod2005-11-141-16/+10
| | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> * pango/break.c (pango_default_break): Remove g_utf8_strlen and work around the logic. Patch by Owen Taylor.
* Include string.h, needed for memset.Behdad Esfahbod2005-11-141-3/+10
| | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> * pango/mini-fribidi/fribidi.c): Include string.h, needed for memset. * pango/mini-fribidi/fribidi.c (fribidi_analyse_string_utf8): Handle short-circuiting of the case when there are ltr letters, no rtl strongs, and base dir is weak rtl. Pointed out by Owen Taylor.
* Fix get/set typo in docs. (#321247, Masao Mutoh)Behdad Esfahbod2005-11-111-1/+1
| | | | | | | 2005-11-11 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (pango_layout_get_alignment): Fix get/set typo in docs. (#321247, Masao Mutoh)
* Call get_context_info after g_return_if_fail.Behdad Esfahbod2005-11-101-1/+3
| | | | | | | 2005-11-09 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fontmap.c (pango_cairo_update_context): Call get_context_info after g_return_if_fail.
* Do not call strlen when length < 0. Leave it to language engines to handleBehdad Esfahbod2005-11-101-3/+0
| | | | | | | 2005-11-09 Behdad Esfahbod <behdad@gnome.org> * pango/break.c (pango_break): Do not call strlen when length < 0. Leave it to language engines to handle NULL-terminated strings.