Behdad Esfahbod [Tue, 24 Jan 2006 15:51:57 +0000 (15:51 +0000)]
Change cwfont to cafont in a couple places.
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-atsuifont.c: Change cwfont to cafont in a couple
places.
Behdad Esfahbod [Tue, 24 Jan 2006 15:33:36 +0000 (15:33 +0000)]
Removed, not used for quite a while.
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/pango-indic-script.h: Removed, not used for quite a
while.
Behdad Esfahbod [Tue, 24 Jan 2006 15:12:30 +0000 (15:12 +0000)]
Removed based on an old ChangeLog entry saying: Remove pangoft2.aliases
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* examples/pangoft2.aliases: Removed based on an old ChangeLog entry
saying: Remove pangoft2.aliases from CVS/distribution; it is
no longer used. (#82736, Sven Neumann.)
Behdad Esfahbod [Mon, 23 Jan 2006 16:27:21 +0000 (16:27 +0000)]
Make tests/examples do use generated pango.modules. (bug #328291)
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
Make tests/examples do use generated pango.modules. (bug #328291)
* examples/pangorc, tests/pangorc: Removed. Moved to modules/.
* examples/pangox.aliases: Removed. Moved to pango/.
* examples/Makefile.am, tests/Makefile.am: Remove pango.modules
creation stuff, copy pangorc from $(srcdir)/../modules/pangorc
insteadd.
* examples/renderdemo.c: Add --pangorc option, default to ./pangorc.
Setenv PANGO_RC_FILE to whatever pangorc file decided.
* tests/*.c: Setenv PANGO_RC_FILE to ./pangorc.
* pango/pangox.aliases: Added.
* pango/Makefile.am: Install pangox.aliases.
* modules/pangorc: Added.
* modules/Makefile.am: Create pango.modules. Added pangorc.
* modules/.cvsignore, examples/.cvsignore, tests/.cvsignore: Updated.
Behdad Esfahbod [Mon, 23 Jan 2006 12:43:36 +0000 (12:43 +0000)]
Set cluster only on base chars, like the Arabic module does.
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c: Set cluster only on base chars, like the
Arabic module does.
* modules/indic/indic-fc.c: Draw an unknown glyph on missing glyphs,
like other modules do. (part of bug #326960, LingNing Zhang)
Behdad Esfahbod [Sun, 22 Jan 2006 19:21:02 +0000 (19:21 +0000)]
Added "Since:" in the doc example.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* docs/TEXT/coding-style: Added "Since:" in the doc example.
Behdad Esfahbod [Sun, 22 Jan 2006 18:06:41 +0000 (18:06 +0000)]
Removed old file. Filed some bugs out of it.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* TODO.xml: Removed old file. Filed some bugs out of it.
* Makefile.am (EXTRA_DIST): Removed TODO.xml.
Behdad Esfahbod [Sun, 22 Jan 2006 17:18:03 +0000 (17:18 +0000)]
Removed old file. Filed some bugs out of it.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* TODO: Removed old file. Filed some bugs out of it.
Behdad Esfahbod [Sat, 21 Jan 2006 20:19:46 +0000 (20:19 +0000)]
Added.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* MAINTAINERS: Added.
* AUTHORS: Added myself to contributors.
* Makefile.am: Added MAINTAINERS to EXTRA_DIST.
Behdad Esfahbod [Sat, 21 Jan 2006 20:02:23 +0000 (20:02 +0000)]
Fix typo in docs.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fontmap.c (pango_cairo_context_get_font_options):
Fix typo in docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:58:28 +0000 (19:58 +0000)]
Fix docs.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.c (pango_matrix_get_font_scale_factor): Fix docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:51:25 +0000 (19:51 +0000)]
Make matrix parameter const.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h, pango/pango-utils.h
(pango_matrix_get_font_scale_factor): Make matrix parameter const.
* pango/fonts.c, pango/pango-context.c, pango/pango-coverage.c,
pango/pango-fontset.c, pango/pango-layout.c, pango/pango-renderer.c,
pango/pango-types.h, pango/pango-utils.c,
pango/pangocairo-atsuifont.c, pango/pangofc-font.c,
pango/pangoft2-fontmap.c, pango/pangowin32-fontmap.c,
pango/pangowin32.c, pango/pangox-fontmap.c, pango/pangoxft-font.c:
Replace "Returns:" with "Return value:" in docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:40:08 +0000 (19:40 +0000)]
Finish ATSUI module work. Bug #322022, Matthias Clasen.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
Finish ATSUI module work. Bug #322022, Matthias Clasen.
* docs/tmpl/atsui-fonts.sgml: Added.
* docs/pango-docs.sgml: Updated to reflect above change.
* docs/pango-sections.txt: Updated to reflect above change and
also document Standard ATSUI symbols.
* pango/pangocairo-atsuifont.c
(pango_cairo_atsui_font_get_atsu_font_id): Add docs.
* pango/pangoatsui-fontmap.c: Register included ATSUI modules.
Behdad Esfahbod [Sat, 21 Jan 2006 19:39:08 +0000 (19:39 +0000)]
Small fixes.
2006-01-20 Behdad Esfahbod <behdad@gnome.org>
* examples/cairosimple.c: Small fixes.
Behdad Esfahbod [Fri, 20 Jan 2006 06:04:42 +0000 (06:04 +0000)]
Add a comment about using cairo_scaled_font_text_extents instead of
2006-01-20 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c (_pango_cairo_get_hex_box_info): Add a
comment about using cairo_scaled_font_text_extents instead of
cairo_text_extents.
Behdad Esfahbod [Mon, 16 Jan 2006 11:49:38 +0000 (11:49 +0000)]
=== Released 1.11.2 ===
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.2 ===
* configure.in: Version 1.11.2
* NEWS: Updated.
Behdad Esfahbod [Mon, 16 Jan 2006 10:53:28 +0000 (10:53 +0000)]
Move GLIB_CFLAGS before external libraries' CFLAGS. Some formatting
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am: Move GLIB_CFLAGS before external libraries'
CFLAGS. Some formatting changes too.
Behdad Esfahbod [Mon, 16 Jan 2006 10:43:44 +0000 (10:43 +0000)]
Adjust the order of *_CFLAGS to the same order known to work. (Fixes bug
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* docs/Makefile.am, examples/Makefile.am, pango/Makefile.am,
tests/Makefile.am: Adjust the order of *_CFLAGS to the same order
known to work. (Fixes bug #325588)
Behdad Esfahbod [Mon, 16 Jan 2006 10:28:12 +0000 (10:28 +0000)]
Fixes bug #314675, Brian Cameron.
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
Fixes bug #314675, Brian Cameron.
* configure.in: Handle uninstalled cairo.
* pangocairo-uninstalled.pc.in: Fix typo: libpangoxft->libpangocairo.
Behdad Esfahbod [Mon, 16 Jan 2006 10:14:24 +0000 (10:14 +0000)]
Remove unused variable clusterSave that was leaking too. (bug #316466,
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/mprefixups.c (indic_mprefixups_apply): Remove unused
variable clusterSave that was leaking too. (bug #316466, Steve Grubbs)
Behdad Esfahbod [Mon, 16 Jan 2006 10:10:23 +0000 (10:10 +0000)]
Fixes bug #71414, allowing to disable building/installing modules.
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
Fixes bug #71414, allowing to disable building/installing modules.
* configure.in: Add support for --with-dynamic-modules.
* */Makefile.am: Adapt to the above change.
Behdad Esfahbod [Sat, 14 Jan 2006 13:28:52 +0000 (13:28 +0000)]
Draw hexbox for cairo backend. Bug #313551. Based on patch by LingNing
2006-01-14 Behdad Esfahbod <behdad@gnome.org>
Draw hexbox for cairo backend. Bug #313551. Based on patch by
LingNing Zhang.
* pango/pangocairo-private.h (_PangoCairoFontIface): Add new methods:
get_font_face and get_scaled_font, and getters:
_pango_cairo_font_get_font_face, _pango_cairo_font_get_scaled_font.
* pango/pangocairo-private.h: Add _PangoCairoHexBoxInfo, and getter
_pango_cairo_get_hex_box_info, and
_pango_cairo_get_glyph_extents_missing.
* pango/pangocairo-fcfont.c, pango/pangocairo-atsuifont.c,
* pango/pangocairo-win32font.c: Export get_font_face and
get_scaled_font methods.
* pango/pangocairo-fcfont.c: Use
* _pango_cairo_get_glyph_extents_missing
on missing glyphs.
* pango/pangocairo-font.c: Implement _pango_cairo_font_get_font_face,
_pango_cairo_font_get_scaled_font, _pango_cairo_get_hex_box_info, and
_pango_cairo_get_glyph_extents_missing.
* pango/pangocairo-render.c
* (_pango_cairo_renderer_draw_unknown_glyph):
Added.
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
Cleaned up to use the added function above.
Behdad Esfahbod [Sat, 14 Jan 2006 07:00:13 +0000 (07:00 +0000)]
Make sure #include <config.h> is the first include in the file. (bug
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)
Behdad Esfahbod [Sat, 14 Jan 2006 06:37:44 +0000 (06:37 +0000)]
Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95.
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)
Behdad Esfahbod [Thu, 5 Jan 2006 16:14:49 +0000 (16:14 +0000)]
pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,
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)
Behdad Esfahbod [Wed, 4 Jan 2006 08:19:19 +0000 (08:19 +0000)]
Add pangocairo-atsui.h and pangoatsui-private.h.
2006-01-04 Behdad Esfahbod <behdad@gnome.org>
* docs/Makefile.am (IGNORE_HFILES): Add pangocairo-atsui.h and
pangoatsui-private.h.
* docs/pango-sections.txt: Add pango_matrix_get_font_scale_factor and
pango_layout_index_to_line_x that were missing.
* docs/tmpl/glyphs.sgml: Add pango_matrix_get_font_scale_factor where
other pango_matrix functions reside.
* docs/tmpl/layout.sgml: Add pango_layout_index_to_line_x.
Behdad Esfahbod [Wed, 4 Jan 2006 07:37:39 +0000 (07:37 +0000)]
Use g_slice for ShaperFontElement allocation. (bug #325728, Matthias
2006-01-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c: Use g_slice for ShaperFontElement
allocation. (bug #325728, Matthias Clasen)
Behdad Esfahbod [Sun, 1 Jan 2006 11:42:07 +0000 (11:42 +0000)]
Use g_slice for various attribute types allocations. (bug #325040,
2006-01-01 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-attributes.c: Use g_slice for various attribute types
allocations. (bug #325040, Matthias Clasen)
Behdad Esfahbod [Tue, 27 Dec 2005 12:46:27 +0000 (12:46 +0000)]
Use pango_font_description_set_family_static. (bug #325013, Matthias
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)
Behdad Esfahbod [Tue, 27 Dec 2005 09:55:48 +0000 (09:55 +0000)]
Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)
2005-12-27 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer
allocation. (bug #325026, Matthias Clasen)
Behdad Esfahbod [Mon, 26 Dec 2005 07:13:02 +0000 (07:13 +0000)]
modules/arabic/arabic-fc.c, modules/basic/basic-fc.c,
2005-12-26 Behdad Esfahbod <behdad@gnome.org>
* modules/arabic/arabic-fc.c,
* modules/basic/basic-fc.c,
* modules/hebrew/hebrew-fc.c,
* modules/syriac/syriac-fc.c: Use pango_is_zero_width() to not draw
zero-width characters in the OpenType shapers. (Fixes bug #324621)
Behdad Esfahbod [Wed, 14 Dec 2005 09:28:43 +0000 (09:28 +0000)]
Add pango_matrix_get_font_scale_factor. (bug #323978, J. Ali Harlow)
2005-12-14 Behdad Esfahbod <behdad@gnome.org>
* pango/pango.def: Add pango_matrix_get_font_scale_factor. (bug
#323978, J. Ali Harlow)
Behdad Esfahbod [Wed, 14 Dec 2005 09:16:00 +0000 (09:16 +0000)]
Pass G_MODULE_BIND_LOCAL to g_module_open. (Pointed by Federico)
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)
Behdad Esfahbod [Tue, 13 Dec 2005 00:10:34 +0000 (00:10 +0000)]
Bumpled glib version.
Behdad Esfahbod [Tue, 13 Dec 2005 00:08:48 +0000 (00:08 +0000)]
=== Released 1.11.1 ===
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.
Behdad Esfahbod [Mon, 12 Dec 2005 23:25:47 +0000 (23:25 +0000)]
Fix bug #323540.
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.
Behdad Esfahbod [Sun, 11 Dec 2005 14:22:32 +0000 (14:22 +0000)]
Undo last change. 2.9.1 has the revised g_slice_free_chain api and 2.9.2
2005-12-11 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Undo last change. 2.9.1 has the revised
g_slice_free_chain api and 2.9.2 is not released yet!
Behdad Esfahbod [Sat, 10 Dec 2005 09:37:44 +0000 (09:37 +0000)]
Bump required glib version to 2.9.2 now that it's released. We are relying
2005-12-10 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Bump required glib version to 2.9.2 now that it's
released. We are relying on the revised g_slice_free_chain api.
Behdad Esfahbod [Sat, 10 Dec 2005 07:42:18 +0000 (07:42 +0000)]
Update on missing-box drawing change. Add (!glyph) to the conditional.
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.
Behdad Esfahbod [Thu, 8 Dec 2005 07:33:49 +0000 (07:33 +0000)]
Date of last change fixed.
Behdad Esfahbod [Thu, 8 Dec 2005 07:25:08 +0000 (07:25 +0000)]
Free ->fontset_hash. (#323498, Morten Welinder)
2005-12-05 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_font_map_finalize): Free
->fontset_hash. (#323498, Morten Welinder)
Behdad Esfahbod [Tue, 6 Dec 2005 01:20:46 +0000 (01:20 +0000)]
Draw an empty dashed box on missing glyphs for cairo-fc backend.
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.
Behdad Esfahbod [Mon, 5 Dec 2005 20:22:24 +0000 (20:22 +0000)]
Use new g_slice API for TypeLink allocation, instead of GMemChunks.
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.
Behdad Esfahbod [Sun, 4 Dec 2005 08:50:07 +0000 (08:50 +0000)]
Return NULL, not FALSE!
2005-12-04 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c: Return NULL, not FALSE!
* modules/arabic-arabic-fc.c: Add 'cswh' (swash) OpenType feature, as
per the Arabic OpenType spec.
Behdad Esfahbod [Wed, 30 Nov 2005 22:16:56 +0000 (22:16 +0000)]
Add GLIB_LIBS to examples explicitly. (#322885, Manish Singh)
2005-11-30 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am: Add GLIB_LIBS to examples explicitly. (#322885,
Manish Singh)
Behdad Esfahbod [Tue, 29 Nov 2005 14:43:15 +0000 (14:43 +0000)]
Add a constact fixed-size (256) cache for caching glyph extents, instead
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.
Behdad Esfahbod [Fri, 25 Nov 2005 09:22:02 +0000 (09:22 +0000)]
Tiny doc improvement.
Anders Carlsson [Fri, 25 Nov 2005 08:22:12 +0000 (08:22 +0000)]
Forgot to add this
Matthias Clasen [Thu, 24 Nov 2005 05:36:22 +0000 (05:36 +0000)]
Fix a typo
Behdad Esfahbod [Wed, 23 Nov 2005 19:55:23 +0000 (19:55 +0000)]
Remove cast to double in things like a = b / c where a, b, and c are all
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)
Behdad Esfahbod [Wed, 23 Nov 2005 19:48:10 +0000 (19:48 +0000)]
Fix typo in docs.
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* pango/opentyp/pango-ot-buffer.c: Fix typo in docs.
Behdad Esfahbod [Wed, 23 Nov 2005 19:14:54 +0000 (19:14 +0000)]
Tiny clean up. Simpler way to suppress gcc strict-aliasing warning. (part
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)
Behdad Esfahbod [Wed, 23 Nov 2005 17:54:55 +0000 (17:54 +0000)]
Added "Since:" tags to all interfaces added after Pango 1.0. (#319116,
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)
Behdad Esfahbod [Wed, 23 Nov 2005 16:46:18 +0000 (16:46 +0000)]
Fix typo when checking libtool config deplibs_check_method. Moreover,
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* configure.in (enable_explicit_deps): Fix typo when checking
libtool config deplibs_check_method. Moreover, enable explicit
deps if we get anything other than pass_all from libtool. (part of
#318750)
Behdad Esfahbod [Wed, 23 Nov 2005 15:49:50 +0000 (15:49 +0000)]
Link libpangoxft with -lm. (#318210)
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am: Link libpangoxft with -lm. (#318210)
Behdad Esfahbod [Wed, 23 Nov 2005 15:41:17 +0000 (15:41 +0000)]
Free used memory. (#316467, Steve Grubb)
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* pango/querymodules.c: Free used memory. (#316467, Steve Grubb)
Behdad Esfahbod [Wed, 23 Nov 2005 15:32:59 +0000 (15:32 +0000)]
Fix incorrect bounds check. (#316469, Steve Grubb) Moreover, increase
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* modules/hangul/hangul-fc.c (hangul_engine_shape): Fix incorrect
bounds check. (#316469, Steve Grubb) Moreover, increase max_jamos
eight at a time instead of three.
Behdad Esfahbod [Wed, 23 Nov 2005 15:19:48 +0000 (15:19 +0000)]
Protect against possible division by zeros (#316468, Steve Grubb)
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.
Behdad Esfahbod [Wed, 23 Nov 2005 14:27:13 +0000 (14:27 +0000)]
Remove excess "the" in docs. (#319175, Masao Mutoh)
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)
Behdad Esfahbod [Wed, 23 Nov 2005 11:53:03 +0000 (11:53 +0000)]
Reworked basic shaper with OpenType support. (#101079, based on patch from
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.
Behdad Esfahbod [Tue, 22 Nov 2005 22:22:11 +0000 (22:22 +0000)]
Finish previous patch. Use GType private data, cache it into fcfont->priv.
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.
Federico Mena Quintero [Tue, 22 Nov 2005 21:38:41 +0000 (21:38 +0000)]
Fixes #322174:
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.
Behdad Esfahbod [Tue, 22 Nov 2005 20:19:15 +0000 (20:19 +0000)]
Load a font suitable for viewing English text when creating mini font for
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)
Anders Carlsson [Tue, 22 Nov 2005 09:56:26 +0000 (09:56 +0000)]
Silent cvs
Anders Carlsson [Tue, 22 Nov 2005 09:12:05 +0000 (09:12 +0000)]
Add checks for ATSUI.
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.
Behdad Esfahbod [Tue, 22 Nov 2005 02:17:37 +0000 (02:17 +0000)]
Only update static mid on a match.
2005-11-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-script.c (pango_script_for_unichar_bsearch): Only update
static mid on a match.
Behdad Esfahbod [Mon, 21 Nov 2005 19:39:27 +0000 (19:39 +0000)]
Fixed Sebastien's name spelling.
Behdad Esfahbod [Mon, 21 Nov 2005 12:51:13 +0000 (12:51 +0000)]
Return double instead of int. (#321891, Sebastian Bacher)
2005-11-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (get_scaled_size): Return double instead of
int. (#321891, Sebastian Bacher)
Behdad Esfahbod [Mon, 21 Nov 2005 09:31:09 +0000 (09:31 +0000)]
Make the Kermit notice a "no warranty" clause, to comply with LPGL.
2005-11-21 Behdad Esfahbod <behdad@gnome.org>
* examples/GLASS.utf8: Make the Kermit notice a "no warranty" clause,
to comply with LPGL.
Behdad Esfahbod [Fri, 18 Nov 2005 23:46:16 +0000 (23:46 +0000)]
=== Released 1.11.0 ===
2005-11-18 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.0 ===
* configure.in: Version 1.11.0
* NEWS: Updated.
Behdad Esfahbod [Fri, 18 Nov 2005 23:05:15 +0000 (23:05 +0000)]
Use the new support for negative offsets in g_utf8_pointer_to_offset. So
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.
Behdad Esfahbod [Fri, 18 Nov 2005 05:43:39 +0000 (05:43 +0000)]
Documentation improvements. (#321731)
2005-11-17 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-renderer.c: Documentation improvements. (#321731)
Behdad Esfahbod [Fri, 18 Nov 2005 04:16:12 +0000 (04:16 +0000)]
General cleanup. (pango_font_description_unset_fields): Set fields being
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.
Matthias Clasen [Thu, 17 Nov 2005 13:20:25 +0000 (13:20 +0000)]
const correctness fixes
Behdad Esfahbod [Thu, 17 Nov 2005 12:15:24 +0000 (12:15 +0000)]
Compare language too. (#318168)
2005-11-17 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (fontset_hash_key_equal): Compare language
too. (#318168)
Behdad Esfahbod [Thu, 17 Nov 2005 11:51:33 +0000 (11:51 +0000)]
Remove g_utf8_strlen that was only used to give a warning.
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.
Behdad Esfahbod [Thu, 17 Nov 2005 08:02:09 +0000 (08:02 +0000)]
More documentation improvements.
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.
Behdad Esfahbod [Thu, 17 Nov 2005 06:28:11 +0000 (06:28 +0000)]
Part of #101079:
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.
Behdad Esfahbod [Thu, 17 Nov 2005 04:56:14 +0000 (04:56 +0000)]
Various documentation improvements.
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.
Behdad Esfahbod [Wed, 16 Nov 2005 10:07:37 +0000 (10:07 +0000)]
Added % to PANGO_DIRECTION_LTR in doc comments.
2005-11-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h: Added % to PANGO_DIRECTION_LTR in doc comments.
Behdad Esfahbod [Wed, 16 Nov 2005 09:52:37 +0000 (09:52 +0000)]
Added % to PANGO_DIRECTION_LTR in doc comments.
2005-11-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h: Added % to PANGO_DIRECTION_LTR in doc comments.
Behdad Esfahbod [Tue, 15 Nov 2005 20:10:03 +0000 (20:10 +0000)]
Added redistribution permission.
2005-11-15 Behdad Esfahbod <behdad@gnome.org>
* examples/GLASS.utf8: Added redistribution permission.
Behdad Esfahbod [Tue, 15 Nov 2005 09:41:56 +0000 (09:41 +0000)]
Fixed bug in khmer module state table. (#320569, Jens Herden)
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
* modules/khmer/khmer/khmer-fc.c: Fixed bug in khmer module state
table. (#320569, Jens Herden)
Behdad Esfahbod [Tue, 15 Nov 2005 09:02:41 +0000 (09:02 +0000)]
Updated Tibetan shaper from Pema Geyleg. (#313513)
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
Updated Tibetan shaper from Pema Geyleg. (#313513)
* examples/tibetan.utf: Added.
* examples/Makefile.am (EXTRA_DIST): tibetan.utf added.
* modules/tibetan/tibetan-fc.c: Updated Tibetan shaper that is
rewritten from scratch. Supports the number pre-combining mark,
illegal sequence detection, etc.
Behdad Esfahbod [Tue, 15 Nov 2005 08:27:41 +0000 (08:27 +0000)]
Added. The infamous "I Can Eat Glass" in vairous languages. Adopted from
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
* examples/GLASS.utf8: Added. The infamous "I Can Eat Glass" in
vairous languages. Adopted from
http://www.columbia.edu/kermit/utf8.html#glass
* examples/Makefile.am (EXTRA_DIST): GLASS.utf8 added.
Behdad Esfahbod [Tue, 15 Nov 2005 07:44:25 +0000 (07:44 +0000)]
Respect fontconfig reassignment of pixelsize. (#317121, Funda Wang)
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c: Respect fontconfig reassignment of
pixelsize. (#317121, Funda Wang)
Behdad Esfahbod [Mon, 14 Nov 2005 23:30:41 +0000 (23:30 +0000)]
Updates from #320666:
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.
Behdad Esfahbod [Mon, 14 Nov 2005 23:20:40 +0000 (23:20 +0000)]
Add X_CFLAGS to INCLUDES. We normally are picking them up from XFT_CFLAGS,
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am: Add X_CFLAGS to INCLUDES. We normally are
picking them up from XFT_CFLAGS, but we don't require Xft any more
for X11. (#320576)
Behdad Esfahbod [Mon, 14 Nov 2005 07:38:25 +0000 (07:38 +0000)]
Remove g_utf8_strlen and work around the logic. Patch by Owen Taylor.
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.
Behdad Esfahbod [Mon, 14 Nov 2005 07:22:31 +0000 (07:22 +0000)]
Include string.h, needed for memset.
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.
Behdad Esfahbod [Fri, 11 Nov 2005 18:16:58 +0000 (18:16 +0000)]
Fix get/set typo in docs. (#321247, Masao Mutoh)
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)
Behdad Esfahbod [Thu, 10 Nov 2005 04:23:43 +0000 (04:23 +0000)]
Call get_context_info after g_return_if_fail.
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.
Behdad Esfahbod [Thu, 10 Nov 2005 04:00:30 +0000 (04:00 +0000)]
Do not call strlen when length < 0. Leave it to language engines to handle
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.
Behdad Esfahbod [Thu, 10 Nov 2005 00:37:04 +0000 (00:37 +0000)]
Short-circuit on LTR-only or RTL-only text.
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* pango/mini-fribidi/README, pango/mini-fribidi/fribidi.patch,
pango/mini-fribidi/fribidi.c: Short-circuit on LTR-only or RTL-only
text.
Behdad Esfahbod [Wed, 9 Nov 2005 23:30:00 +0000 (23:30 +0000)]
Remove debug line that got in accidentally.
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c: Remove debug
line that got in accidentally.
Behdad Esfahbod [Wed, 9 Nov 2005 08:48:24 +0000 (08:48 +0000)]
Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (make_layout): Set layout wrapping to
PANGO_WRAP_WORD_CHAR if width is set for the layout. Setting width
didn't have any effect previously.
* pango/pango-layout.c (process_item): Remove the excess
letter_spacing adjustment on the item width. (#168593, Damon Chaplin)
* pango/pango-markup.c (pango_parse_markup), pango/querymodules.c:
Replace g_string_new ("") with g_string_new (NULL).
* pango/pangoft2.c: Use g_malloc'ed memory for unknown FreeType2
error, instead of static buffer.
Behdad Esfahbod [Wed, 9 Nov 2005 07:43:09 +0000 (07:43 +0000)]
Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (make_layout): Set layout wrapping to
PANGO_WRAP_WORD_CHAR if width is set for the layout. Setting width
didn't have any effect previously.
* pango/pango-layout.c (process_item): Remove the excess
letter_spacing adjustment on the item width. (#168593, Damon Chaplin)
* pango/pango-markup.c (pango_parse_markup), pango/querymodules.c:
Replace g_string_new ("") with g_string_new (NULL).
* pango/pangoft2.c: Use g_malloc'ed memory for unknown FreeType2
error, instead of static buffer.
Behdad Esfahbod [Wed, 9 Nov 2005 07:29:20 +0000 (07:29 +0000)]
Minor clean up and adjustment.
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* modules/hebrew/.cvsignore, modules/khmer/.cvsignore,
modules/tibetan/.cvsignore: Minor clean up and adjustment.
Federico Mena Quintero [Tue, 8 Nov 2005 04:36:11 +0000 (04:36 +0000)]
Fixes bug #320666:
2005-11-07 Federico Mena Quintero <federico@ximian.com>
Fixes bug #320666:
Instead of doing a bsearch() for every gunichar to map it to a
PangoScript, use a precomputed table for the first 8192 code
points. Also, remember the last script that we computed on each
invocation; this will also help CJK and the other scripts above
U+2000.
This table also holds information on whether the characters in it
are paired characters. We can use this to avoid doing the
expensive get_pair_index() call most of the time.
Many thanks to Matthias Clasen for his suggestions for this patch.
* tools/gen-easy-scripts-table.c: New program to generate
pango_easy_scripts_table.
* tools/Makefile.am: Build gen-easy-scripts-table.
* pango/pango-easy-scripts-table.h: New file with a mapping of the
first 8192 Unicode characters to their corresponding scripts. The
table also says whether each character has a paired char or not.
* pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-easy-scripts-table.h.
* pango/pango-script-table.h: Remove everything below U+2000, and
add a note to that effect.
* pango/pango-script.c (pango_script_for_unichar_with_last_index):
New function. This is the old pango_script_for_unichar(), but it
lets the caller keep around the computed index in
pango_script_table. This works under the assumption that a
character is likely to be in the same script block as the
preceding character in a string.
(pango_script_for_unichar): First, do a quick check against the
pango_easy_scripts_table. Then, do the expensive check with
pango_script_for_unichar_with_last_index().
(pango_script_iter_next): If the character is within the easy
script range, find out if it is a paired character by using
PANGO_PAIRED_CHAR_FLAG.
(struct _PangoScriptIter): Add a last_index_for_script_lookup
field. We use this to maintain the last-lookup index from
pango_script_for_unichar_with_last_index().
(pango_script_iter_next): If the character is not within the easy
script range, use pango_script_for_unichar_with_last_index(), and
store the index in the last_index_for_script_lookup field of the
PangoScriptIter.
Behdad Esfahbod [Sat, 5 Nov 2005 00:57:51 +0000 (00:57 +0000)]
Removed. Not used for a long time, and were out of date.
2005-11-04 Behdad Esfahbod <behdad@gnome.org>
* pango-config.in, pango.spec.in: Removed. Not used for a long time,
and were out of date.
* .cvsignore: Remove pango-config and pango.spec.