Behdad Esfahbod [Tue, 28 Nov 2006 21:47:51 +0000 (21:47 +0000)]
Revert two of the cast changes from last commit, to make sure the
2006-11-28 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c (_pango_cairo_font_install),
(_pango_cairo_font_get_font_face),
(_pango_cairo_font_get_scaled_font):
* pango/pangocairo-private.h:
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
Revert two of the cast changes from last commit, to make sure the
test-pangocairo-fontmap-mismatch test doesn't crash.
Behdad Esfahbod [Tue, 28 Nov 2006 21:17:39 +0000 (21:17 +0000)]
Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the object
2006-11-28 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_font_face),
(pango_cairo_fc_font_install), (pango_cairo_fc_font_finalize),
(pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_shutdown),
(_pango_cairo_fc_font_new):
* pango/pangocairo-fcfontmap.c
(pango_cairo_fc_font_map_set_resolution),
(pango_cairo_fc_font_map_get_resolution_cairo),
(pango_cairo_fc_font_map_get_renderer),
(pango_cairo_fc_font_map_finalize),
(pango_cairo_fc_font_map_get_resolution_fc),
(pango_cairo_fc_font_map_create_font):
* pango/pangocairo-font.c (_pango_cairo_font_install),
(_pango_cairo_font_get_font_face),
(_pango_cairo_font_get_scaled_font),
(_pango_cairo_font_get_hex_box_info):
* pango/pangocairo-fontmap.c (pango_cairo_create_layout):
* pango/pangocairo-render.c (set_color),
(_pango_cairo_renderer_draw_unknown_glyph),
(pango_cairo_renderer_draw_glyphs),
(pango_cairo_renderer_draw_rectangle),
(pango_cairo_renderer_draw_error_underline):
Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the
object cannot have reached us if it wasn't of the right type.
Behdad Esfahbod [Mon, 27 Nov 2006 22:01:53 +0000 (22:01 +0000)]
Bug 371388 – Add Thai langauage engine Patch from Theppitak
2006-11-27 Behdad Esfahbod <behdad@gnome.org>
Bug 371388 – Add Thai langauage engine
Patch from Theppitak Karoonboonyanan
* configure.in: Look for libthai and enable thai-lang module.
* modules/thai/Makefile.am: Hook thai-lang module.
* modules/thai/thai-lang.c: New Thai language engine that uses libthai
to do dictionary-based Thai line-breaking.
* examples/test-thai.txt: Improved.
Behdad Esfahbod [Sat, 25 Nov 2006 05:10:11 +0000 (05:10 +0000)]
Make renderer-cache really thread-safe this time. Last try was not quite
2006-11-25 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c (acquire_renderer), (release_renderer),
(_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
(_pango_cairo_do_layout): Make renderer-cache really thread-safe this
time. Last try was not quite thread-safe theoretically, because
pointer assignments are not necessarily atomic on some archs. Anyway,
this one should do it.
Behdad Esfahbod [Wed, 22 Nov 2006 23:05:26 +0000 (23:05 +0000)]
Add Lao text samples from Anousak Souphavanh.
2006-11-22 Behdad Esfahbod <behdad@gnome.org>
* examples/HELLO.utf8:
* examples/Makefile.am:
* examples/test-lao.txt:
Add Lao text samples from Anousak Souphavanh.
Behdad Esfahbod [Wed, 22 Nov 2006 20:36:54 +0000 (20:36 +0000)]
Bug 377975 – bug in _pango_glyph_item_iter_next_cluster
2006-11-22 Behdad Esfahbod <behdad@gnome.org>
Bug 377975 – bug in _pango_glyph_item_iter_next_cluster
* pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
(_pango_glyph_item_iter_prev_cluster): Fix condition for ending a
cluster.
Behdad Esfahbod [Tue, 21 Nov 2006 23:24:41 +0000 (23:24 +0000)]
Fix typo in private docs.
2006-11-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-glyph-item.c: Fix typo in private docs.
Behdad Esfahbod [Mon, 20 Nov 2006 19:05:42 +0000 (19:05 +0000)]
Bug 356666 – pango is not thread-safe, nautilus does not honour that
2006-11-20 Behdad Esfahbod <behdad@gnome.org>
Bug 356666 – pango is not thread-safe, nautilus does not honour that
* pango/pangocairo-render.c (acquire_renderer), (release_renderer),
(_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
(_pango_cairo_do_layout): Instead of using a per-fontmap renderer, use
a locally cached one, but make sure only one thread uses the cached
renderer. Fixes the raciest point in pangocairo.
Behdad Esfahbod [Tue, 14 Nov 2006 20:03:33 +0000 (20:03 +0000)]
Bug 352795 – configure.in: Bug in "checking Whether to write
2006-11-14 Behdad Esfahbod <behdad@gnome.org>
Bug 352795 – configure.in: Bug in "checking Whether to write
dependencies into .pc files"
* configure.in: Make libtool magic robust.
Behdad Esfahbod [Tue, 14 Nov 2006 17:09:18 +0000 (17:09 +0000)]
Choose shaper/font for unassigned Unicode codepoints too. This is needed
2006-11-14 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Choose
shaper/font for unassigned Unicode codepoints too. This is needed to
be able to render scripts being encoded before next version of Unicode
is out.
Roozbeh Pournader [Wed, 8 Nov 2006 12:00:44 +0000 (12:00 +0000)]
Bug 350132 – backspacing doesn't work properly for Arabic
2006-11-08 Roozbeh Pournader <roozbeh@farsiweb.info>
Bug 350132 – backspacing doesn't work properly for Arabic
* modules/arabic/arabic-lang.c: Add more backspace_deletes_character
cases.
Behdad Esfahbod [Wed, 8 Nov 2006 00:07:09 +0000 (00:07 +0000)]
Bug 369670 – Crash when selecting text using the keyboard
2006-11-08 Behdad Esfahbod <behdad@gnome.org>
Bug 369670 – Crash when selecting text using the keyboard
* pango/pango-layout.c (pango_layout_move_cursor_visually): Don't
index vis2log_map[] with a negative value.
Behdad Esfahbod [Thu, 2 Nov 2006 22:49:40 +0000 (22:49 +0000)]
Bug 369670 – Checked g_free calls
2006-11-02 Behdad Esfahbod <behdad@gnome.org>
Bug 369670 – Checked g_free calls
* pango/pango-coverage.c (pango_coverage_unref):
* pango/pango-layout.c (pango_layout_finalize),
(pango_layout_set_text):
* pango/pangofc-font.c (pango_fc_font_finalize):
* pango/pangox-fontmap.c (pango_x_font_map_read_alias_file):
Remove redundant checks before g_free() calls.
Behdad Esfahbod [Tue, 24 Oct 2006 19:54:26 +0000 (19:54 +0000)]
Do not require pangoft2 unconditionally.
2006-10-24 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am (cairosimple_LDADD): Do not require pangoft2
unconditionally.
Behdad Esfahbod [Tue, 24 Oct 2006 19:37:00 +0000 (19:37 +0000)]
Implement get_resolution for FT2 fontmaps.
2006-10-24 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoft2-fontmap.c (pango_ft2_font_map_class_init),
(pango_ft2_font_map_get_resolution): Implement get_resolution for FT2
fontmaps.
Behdad Esfahbod [Wed, 18 Oct 2006 20:04:31 +0000 (20:04 +0000)]
Do not include arabic-ot.h.
2006-10-18 Behdad Esfahbod <behdad@gnome.org>
* modules/arabic/arabic-lang.c: Do not include arabic-ot.h.
Behdad Esfahbod [Wed, 18 Oct 2006 15:12:38 +0000 (15:12 +0000)]
Replace by a better one.
2006-10-18 Behdad Esfahbod <behdad@gnome.org>
* examples/test-thai.txt: Replace by a better one.
Behdad Esfahbod [Tue, 17 Oct 2006 22:21:33 +0000 (22:21 +0000)]
Added.
2006-10-17 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am:
* examples/test-thai.txt: Added.
Behdad Esfahbod [Mon, 16 Oct 2006 20:12:41 +0000 (20:12 +0000)]
=== Released 1.15.0 ===
2006-10-16 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.15.0 ===
* configure.in: Version 1.15.0
* NEWS: Updated.
Behdad Esfahbod [Mon, 16 Oct 2006 13:47:32 +0000 (13:47 +0000)]
Bug 330407 – Multiple dependant vowel signs (indic) displayed as one
2006-10-16 Behdad Esfahbod <behdad@gnome.org>
Bug 330407 – Multiple dependant vowel signs (indic) displayed as one
Patch from LingNing Zhang
* modules/indic/indic-ot-class-tables.c: Change state transition for
cn to dv.
Behdad Esfahbod [Fri, 13 Oct 2006 17:23:39 +0000 (17:23 +0000)]
Make TypeInfo structs not static. Reduces relocations.
2006-10-13 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-ot-info.c (pango_ot_info_get_type):
* pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type):
* pango/pangoatsui-fontmap.c (pango_atsui_family_get_type),
(pango_atsui_face_get_type):
* pango/pangocairo-font.c (pango_cairo_font_get_type):
* pango/pangocairo-fontmap.c (pango_cairo_font_map_get_type):
* pango/pangofc-fontmap.c (pango_fc_face_get_type),
(pango_fc_family_get_type):
* pango/pangowin32-fontmap.c (pango_win32_family_get_type),
(pango_win32_face_get_type):
* pango/pangox-fontmap.c (pango_x_font_map_get_type),
(pango_x_face_get_type), (pango_x_family_get_type):
* pango/pangox.c (pango_x_font_get_type):
Make TypeInfo structs not static. Reduces relocations.
Behdad Esfahbod [Fri, 13 Oct 2006 17:20:41 +0000 (17:20 +0000)]
Bug 361938 – Can't include *-lang modules (./configure
2006-10-13 Behdad Esfahbod <behdad@gnome.org>
Bug 361938 – Can't include *-lang modules (./configure
--with-included-modules fails)
* configure.in:
* modules/Makefile.am:
* pango/.cvsignore:
* pango/Makefile.am:
* pango/modules.c (init_modules):
* pango/modules.h:
Make included language engines work.
Behdad Esfahbod [Thu, 12 Oct 2006 18:45:09 +0000 (18:45 +0000)]
Bug 353877 – Sinhala is_cursor_position and backspace_deletes_character
2006-10-12 Behdad Esfahbod <behdad@gnome.org>
Bug 353877 – Sinhala is_cursor_position and
backspace_deletes_character issues
Patch from Akira TAGOH
* configure.in:
* modules/indic/Makefile.am:
* modules/indic/indic-lang.c: Add a simple Indic language engine.
Behdad Esfahbod [Thu, 12 Oct 2006 18:24:49 +0000 (18:24 +0000)]
Fix comment about PangoGlyphUnit being a 1000th of a char.
Behdad Esfahbod [Thu, 12 Oct 2006 18:23:05 +0000 (18:23 +0000)]
Bug 358224 – Telugu Character U+0C31 does not render its below-base
2006-10-12 Behdad Esfahbod <behdad@gnome.org>
Bug 358224 – Telugu Character U+0C31 does not render its below-base
form.
Patch from Rahul Bhalerao
* modules/indic/indic-ot-class-tables.c: Change the class of U+0C31
from '_ct' to '_bb'.
Behdad Esfahbod [Thu, 12 Oct 2006 18:20:20 +0000 (18:20 +0000)]
Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
2006-10-12 Behdad Esfahbod <behdad@gnome.org>
Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
not rendered.
Patch from Rahul Bhalerao
* modules/indic/indic-ot-class-tables.c: Change the class bit of
U+09F0 from '_ct' to '_rv'.
Behdad Esfahbod [Sat, 7 Oct 2006 15:11:25 +0000 (15:11 +0000)]
Add part of Jabberwocky as Latin test text.
2006-10-07 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am:
* examples/test-latin.txt: Add part of Jabberwocky as Latin test text.
Behdad Esfahbod [Mon, 2 Oct 2006 21:37:06 +0000 (21:37 +0000)]
Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong Patch
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong
Patch from Rahul Bhalerao
* modules/indic/indic-ot-class-tables.c: Change _ct to _bb for
various Orya characters.
Behdad Esfahbod [Mon, 2 Oct 2006 21:27:40 +0000 (21:27 +0000)]
Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)
* modules/indic/indic-ot-class-tables.c:
* modules/indic/indic-ot.c (indic_ot_reorder):
Fix.
Behdad Esfahbod [Mon, 2 Oct 2006 20:06:15 +0000 (20:06 +0000)]
.
Behdad Esfahbod [Mon, 2 Oct 2006 20:05:44 +0000 (20:05 +0000)]
Bug 359043 – PangoRenderer does not show in API docs
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 359043 – PangoRenderer does not show in API docs
* docs/pango-docs.sgml: Hook PangoRenderer docs.
Behdad Esfahbod [Mon, 2 Oct 2006 18:14:17 +0000 (18:14 +0000)]
Bug 359046 – renderdemo.c unconditionally use GLib 2.12
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 359046 – renderdemo.c unconditionally use GLib 2.12
* configure.in: Require glib 2.12, for Unicode 5.0 data files.
Behdad Esfahbod [Mon, 2 Oct 2006 18:13:50 +0000 (18:13 +0000)]
Require glib 2.12, for Unicode 5.0 data files.
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Require glib 2.12, for Unicode 5.0 data files.
Behdad Esfahbod [Mon, 25 Sep 2006 21:02:33 +0000 (21:02 +0000)]
Bug 357686 – pangocairo-font.c: illegal g_object_unref in
2006-09-25 Behdad Esfahbod <behdad@gnome.org>
Bug 357686 – pangocairo-font.c: illegal g_object_unref in
pango_cairo_font_get_hex_box_info
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Remove
wrong g_object_unref (fontmap).
Behdad Esfahbod [Fri, 22 Sep 2006 18:54:03 +0000 (18:54 +0000)]
Bug 357228 – Remove aix specific hack from configure.in
2006-09-22 Behdad Esfahbod <behdad@gnome.org>
Bug 357228 – Remove aix specific hack from configure.in
* configure.in: Remove hack added back 2002 that is not required
anymore.
Behdad Esfahbod [Mon, 18 Sep 2006 22:20:15 +0000 (22:20 +0000)]
Step module interface version to 1.6.0 because of the script_break()
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Step module interface version to 1.6.0 because of the
script_break() slight change of behavior and anticipated changes to
the module interface this cycle.
Behdad Esfahbod [Mon, 18 Sep 2006 22:11:32 +0000 (22:11 +0000)]
Part of Bug 350132 – backspacing doesn't work properly for Arabic
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 350132 – backspacing doesn't work properly for Arabic
* configure.in:
* modules/arabic/Makefile.am:
* modules/arabic/arabic-lang.c:
Add a simple Arabic language engine. Currently it just makes sure
that backspace_deletes_character is not set on ALEF-MADDA
combinations.
Behdad Esfahbod [Mon, 18 Sep 2006 21:29:37 +0000 (21:29 +0000)]
Minor simplification.
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
* tools/gen-script-table.pl:
* pango/pango-script-table.h:
* pango/pango-script.c (pango_script_for_unichar): Minor
simplification.
* tests/testscript.c (test_script_lookup): Update to pass.
Behdad Esfahbod [Mon, 18 Sep 2006 20:56:45 +0000 (20:56 +0000)]
Remove a couple of unnecessary static variables.
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoft2-render.c (pango_ft2_font_render_glyph): Remove a
couple of unnecessary static variables.
Behdad Esfahbod [Mon, 18 Sep 2006 19:57:16 +0000 (19:57 +0000)]
Bug 356194 – more pango_get_log_attrs problems
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
Bug 356194 – more pango_get_log_attrs problems
* pango/break.c (tailor_break): New function. Simply calls the
script_break() function of the language engine, if any.
* pango/break.c (pango_break): Call pango_default_break()
unconditionally. Call tailor_break() on top of the result to tailor
it using the language engines, if any.
* pango/break.c (tailor_segment): Call tailor_break() on the segment,
and make sure the log_attrs for the first position are not corrupted.
* pango/break.c (pango_get_log_attrs): Call pango_default_break() on
the entire paragraph, and call tailor_segment on each segment.
* pango/pango-engine.h: Update docs about *script_break()'s behavior.
Behdad Esfahbod [Fri, 15 Sep 2006 22:10:58 +0000 (22:10 +0000)]
Bug 355820 – pango_get_log_attrs broken
2006-09-15 Behdad Esfahbod <behdad@gnome.org>
Bug 355820 – pango_get_log_attrs broken
* pango/break.c (break_it), (pango_get_log_attrs): Use PangoScriptIter
to itemize text, instead of pango_script_for_unichar().
Behdad Esfahbod [Fri, 15 Sep 2006 19:19:36 +0000 (19:19 +0000)]
Oops Ooops Oooops, I did it again! Revert accidentally committed stuff :-(
Behdad Esfahbod [Fri, 15 Sep 2006 19:18:24 +0000 (19:18 +0000)]
Unset gravity on the resulting font description. We want gravity to be set
2006-09-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_face_describe): Unset gravity on
the resulting font description. We want gravity to be set on all
fonts described, but not font faces.
Behdad Esfahbod [Thu, 14 Sep 2006 22:04:18 +0000 (22:04 +0000)]
Change enums to macros, to get in synch with ICU shaper. No functional
2006-09-14 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/indic-ot-class-tables.c: Change enums to macros, to
get in synch with ICU shaper. No functional changes.
Behdad Esfahbod [Thu, 14 Sep 2006 22:02:46 +0000 (22:02 +0000)]
Change some enums to macros, to get in synch with ICU shaper. No
2006-09-14 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/indic-ot.h: Change some enums to macros, to get in
synch with ICU shaper. No functional changes.
Behdad Esfahbod [Wed, 13 Sep 2006 23:06:14 +0000 (23:06 +0000)]
Bug 351223 – the conjuction of Con + 0x0d4d +0x0d31 of Malayalam is
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 351223 – the conjuction of Con + 0x0d4d +0x0d31 of Malayalam is
wrong
Patch from LingNing Zhang
* modules/indic/indic-ot.c (swapChars), (indic_ot_reorder): Special
case the above case.
Behdad Esfahbod [Wed, 13 Sep 2006 22:47:48 +0000 (22:47 +0000)]
Bug 355750 – The glyphs of the conjuctions about Cons+0x0d4d+0x0d32 of
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 355750 – The glyphs of the conjuctions about Cons+0x0d4d+0x0d32 of
Malayalm are wrong.
Patch from LingNing Zhang
* modules/indic/indic-ot-class-tables.c (mlymCharClasses): Change
U+0D32 from _bb to _ct.
Behdad Esfahbod [Wed, 13 Sep 2006 22:44:51 +0000 (22:44 +0000)]
Bug 349876 – U+0x0904 of Devanagari need be "independent vowel", but it
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 349876 – U+0x0904 of Devanagari need be "independent vowel", but
it is "reserved" in Pango
Patch from LingNing Zhang
* modules/indic/indic-ot-class-tables.c (devaCharClasses): Change
U+0904 from _xx to _iv.
Behdad Esfahbod [Wed, 13 Sep 2006 22:06:32 +0000 (22:06 +0000)]
Bug 355550 – Miscalculation of logical attributes in
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 355550 – Miscalculation of logical attributes in
pango_get_log_attrs()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
pango_break().
Behdad Esfahbod [Wed, 13 Sep 2006 21:32:09 +0000 (21:32 +0000)]
Err about failing to load engine only once per module.
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
* pango/modules.c (pango_engine_pair_get_engine): Err about failing to
load engine only once per module.
Behdad Esfahbod [Wed, 13 Sep 2006 21:30:51 +0000 (21:30 +0000)]
Bug 355697 – The IndicOTClassTable of Oriya has a error.
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 355697 – The IndicOTClassTable of Oriya has a error.
* modules/indic/indic-ot-class-tables.c: Compute lastChar from
charClasses table size to avoid out-of-synch.
Behdad Esfahbod [Wed, 13 Sep 2006 20:31:02 +0000 (20:31 +0000)]
Part of Bug 355782 – Misaligned extents in pango
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 355782 – Misaligned extents in pango
* pango/pango-layout.c (pango_layout_get_extents_internal),
(pango_layout_get_extents), (pango_layout_iter_copy),
(pango_layout_get_iter), (pango_layout_iter_get_line_extents):
Add a new internal member layout_width to PangoLayoutIter. Set it up
in pango_layout_get_extents_internal and use in
pango_layout_iter_get_line_extents to fix misalignment of ink link
extents.
Behdad Esfahbod [Wed, 13 Sep 2006 19:16:53 +0000 (19:16 +0000)]
"Thou shalt not touch code that does not fit in thy brain."
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
"Thou shalt not touch code that does not fit in thy brain."
* pango/pango-layout.c (update_cluster): Add cluster_start_index
parameter back in.
Behdad Esfahbod [Wed, 13 Sep 2006 18:56:21 +0000 (18:56 +0000)]
Remove unnecessary 'static' in type definition that causes a relocation.
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-engine.h: Remove unnecessary 'static' in type definition
that causes a relocation.
* pango/shape.c (pango_shape): Make sure last_cluster is invalid.
Behdad Esfahbod [Wed, 13 Sep 2006 18:53:50 +0000 (18:53 +0000)]
Oops, undo stuff that were committed accidentally.
Behdad Esfahbod [Wed, 13 Sep 2006 18:51:02 +0000 (18:51 +0000)]
Part of Bug 355782 – Misaligned extents in pango
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 355782 – Misaligned extents in pango
* pango/pango-layout.c (cluster_width): Rewrite based on
is_cluster_start instead of accessing log_clusters directly. This is
more robust as next_cluster uses that, so the two match now.
* pango/pango-layout.c (update_cluster): Remove the
cluster_start_index parameter and use iter->cluster_start instead.
* pango/pango-layout.c (pango_layout_iter_copy): Fix typo in copying
iter->cluster_width.
* pango/pango-layout.c (pango_layout_iter_get_cluster_extents): Add
an assert to make sure iter->cluster_width is correctly set.
* pango/pango-layout.c (pango_layout_iter_get_char_extents): Remove
assert that was readded above to check more cases.
Behdad Esfahbod [Tue, 12 Sep 2006 17:07:58 +0000 (17:07 +0000)]
Bug 355605 – hexbox with 0000 in it
2006-09-12 Behdad Esfahbod <behdad@gnome.org>
Bug 355605 – hexbox with 0000 in it
* modules/hangul/hangul-fc.c (render_syllable): If decomposition
fails, backup and add a single hexbox glyph for the original
character.
Behdad Esfahbod [Mon, 11 Sep 2006 21:03:30 +0000 (21:03 +0000)]
Bug 355435 – Invalid calls to pango_map_get_engine() Patch from
2006-09-11 Behdad Esfahbod <behdad@gnome.org>
Bug 355435 – Invalid calls to pango_map_get_engine()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs):
* pango/pango-renderer.c (add_underline):
* pango/pangofc-font.c (pango_fc_font_find_shaper):
* pango/pangowin32.c (pango_win32_font_find_shaper):
* pango/pangox.c (pango_x_font_find_shaper):
Pass a PangoScript to pango_map_get_engine, not a gunichar!
Behdad Esfahbod [Mon, 11 Sep 2006 16:22:33 +0000 (16:22 +0000)]
Bug 347146 – underline/overstrike spaces
2006-09-11 Behdad Esfahbod <behdad@gnome.org>
Bug 347146 – underline/overstrike spaces
* pango/pango-renderer.c (add_underline), (add_strikethrough),
(pango_renderer_draw_layout_line): Use logical extents for
x and width of underline/strikethrough, such that trailing spaces are
correctly handled.
* pango/pango-layout.c (pango_layout_run_get_extents): Use logical
rect for underline/strikethrough, and reflect that in run ink extents.
* pango/pango-layout.c (pango_layout_line_get_extents): Don't
let runs with empty ink extents affect total ink extents.
Behdad Esfahbod [Mon, 11 Sep 2006 02:02:35 +0000 (02:02 +0000)]
Bug 352535 – Ink extents of empty glyph
2006-09-10 Behdad Esfahbod <behdad@gnome.org>
Bug 352535 – Ink extents of empty glyph
* pango/pangocairo-fcfont.c
(pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for
PANGO_GLYPH_EMPTY.
Behdad Esfahbod [Fri, 8 Sep 2006 14:29:53 +0000 (14:29 +0000)]
A simple text-on-path example using pangocairo.
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c: A simple text-on-path example using
pangocairo.
* examples/Makefile.am: Update.
Behdad Esfahbod [Fri, 8 Sep 2006 14:28:05 +0000 (14:28 +0000)]
Parse style. It was dropped when I was adding support for gravity.
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (find_field_any): Parse style. It was dropped when
I was adding support for gravity.
Behdad Esfahbod [Thu, 31 Aug 2006 20:03:53 +0000 (20:03 +0000)]
Minor doc syntax update.
2006-08-31 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c, pango/pangox-fontmap.c, pango/pangox.c:
Minor doc syntax update.
Behdad Esfahbod [Wed, 30 Aug 2006 21:59:53 +0000 (21:59 +0000)]
Bug 148732 – cursor movenmet is not correct in gedit when I type Arabic
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 148732 – cursor movenmet is not correct in gedit when I type
Arabic text.
* pango/pango-layout.c (pango_layout_move_cursor_visually): Update
locally cached line properties upon line change.
Behdad Esfahbod [Wed, 30 Aug 2006 18:23:43 +0000 (18:23 +0000)]
Improve the conditional to ignore included modules.
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
* modules/Makefile.am (pango.modules): Improve the conditional to
ignore included modules.
Behdad Esfahbod [Wed, 30 Aug 2006 18:20:13 +0000 (18:20 +0000)]
Bug 352811 – SIGSEGV with pango(cairo)-view on HP-UX
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 352811 – SIGSEGV with pango(cairo)-view on HP-UX
* modules/Makefile.am (pango.modules): Don't hardcode .so extension.
Look for .la instead.
Behdad Esfahbod [Wed, 30 Aug 2006 15:30:52 +0000 (15:30 +0000)]
Bug 353525 – libpangoft2-1.0.so.0: undefined reference to
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 353525 – libpangoft2-1.0.so.0: undefined reference to
`pango_font_description_get_gravity'
* examples/Makefile.am: Explicitly link to the just built pangoft2 for
pangocairo uses, like we already do for pangoxft.
Tor Lillqvist [Sun, 27 Aug 2006 22:47:38 +0000 (22:47 +0000)]
Have basic-win32.c instead of basic-win32.lo depend on usp10.h so things
2006-08-28 Tor Lillqvist <tml@novell.com>
* modules/basic/Makefile.am: Have basic-win32.c instead of
basic-win32.lo depend on usp10.h so things work out also in case
the basic-win32 module is compiled in.
Behdad Esfahbod [Sat, 26 Aug 2006 21:38:18 +0000 (21:38 +0000)]
Bug 349813 – typo in docs for pango_layout_move_cursor_visually
2006-08-26 Behdad Esfahbod <behdad@gnome.org>
Bug 349813 – typo in docs for pango_layout_move_cursor_visually
* pango/pango-layout.c (pango_layout_move_cursor_visually): Fix typo.
Tor Lillqvist [Wed, 23 Aug 2006 01:54:27 +0000 (01:54 +0000)]
pango/Makefile.am examples/Makefile.am pango/testfonts.c Rename
2006-08-23 Tor Lillqvist <tml@novell.com>
* pango/Makefile.am
* examples/Makefile.am
* pango/testfonts.c
* examples/pangowin32tobmp.c: Rename pango/testfonts.c to
examples/pangowin32tobmp.c. (#104151)
Behdad Esfahbod [Tue, 22 Aug 2006 23:27:34 +0000 (23:27 +0000)]
Replace (!isgraph && !isspace) with (!isprint) which is equivalent. Also,
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Replace (!isgraph
&& !isspace) with (!isprint) which is equivalent. Also, update
comments.
Behdad Esfahbod [Tue, 22 Aug 2006 23:12:28 +0000 (23:12 +0000)]
Find shaper/font for Private Use and space characters too. Finding shaper
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Find shaper/font
for Private Use and space characters too. Finding shaper for Private
Use is needed for any practical use of those areas. Ideally, spaces
should be synthesized if they are not available in the font, but
falling back to other fonts is far easier, and should give pretty good
results with the current set of common fonts. These fixes allow
Firefox+Pango to render MathML like Firefox+Xft does.
Behdad Esfahbod [Tue, 22 Aug 2006 12:44:07 +0000 (12:44 +0000)]
Rename "Upright" to "Not-Rotated". Also, reorder the user-friendly names
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (gravity_map): Rename "Upright" to "Not-Rotated".
Also, reorder the user-friendly names (Not-Rotated, Rotated-Left, ...)
before the enum names (South, East, ...) such that they are used to
describe fonts.
Behdad Esfahbod [Mon, 21 Aug 2006 06:55:06 +0000 (06:55 +0000)]
Split ChangeLog.pre-1.14
Behdad Esfahbod [Mon, 21 Aug 2006 06:52:56 +0000 (06:52 +0000)]
Drop #include <config.h> from example in docs.
Behdad Esfahbod [Mon, 21 Aug 2006 06:50:36 +0000 (06:50 +0000)]
Bug 352114 – pango-1.14: generated docs still contain old example code
2006-08-21 Behdad Esfahbod <behdad@gnome.org>
Bug 352114 – pango-1.14: generated docs still contain old example code
* docs/tmpl/pangocairo.sgml: Update cairo example code to that of
examples/cairosimple.c.
Behdad Esfahbod [Mon, 21 Aug 2006 03:05:46 +0000 (03:05 +0000)]
Support per-item gravity.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
Support per-item gravity.
* pango/pango-context.c (update_attr_iterator),
(itemize_state_init), (itemize_state_update_for_new_run),
(itemize_state_process_run): Make per-item gravity work, by setting
gravity into font description before loading fonts. Also, allow
the context font description to override the gravity (but not
centered_baseline.)
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Get gravity
from font description, not context.
* pango/pangofc-fontmap.c (fontset_hash_key_equal),
(fontset_hash_key_hash), (fontset_hash_key_copy),
(pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
(pango_fc_font_map_load_fontset),
(pango_fc_font_description_from_pattern): Get gravity from font
description, not context. Moreover, put it into pattern, and
reconstruct it out of font patterns.
* pango/pangofc-private.h: Define PANGO_FC_GRAVITY, which is the key
we put PangoGravity into an FcPattern under.
Behdad Esfahbod [Sun, 20 Aug 2006 23:00:21 +0000 (23:00 +0000)]
Add gravity in PangoFontDescription.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/fonts.sgml:
* pango/fonts.c (pango_font_description_set_gravity),
(pango_font_description_get_gravity),
(pango_font_description_merge_static),
(pango_font_description_better_match),
(pango_font_description_equal), (pango_font_description_hash),
(find_field_any), (pango_font_description_from_string),
(pango_font_description_to_string):
* pango/pango-font.h:
* pango/pango.def:
Add gravity in PangoFontDescription.
Behdad Esfahbod [Sun, 20 Aug 2006 20:35:45 +0000 (20:35 +0000)]
Correct switched return value of EAST/WEST.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-matrix.c (pango_matrix_to_gravity): Correct switched
return value of EAST/WEST.
* pango/pango-types.h (PangoGravity): Add PANGO_GRAVITY_AUTO.
* pango/pango-context.h: Add pango_context_get_gravity().
* examples/renderdemo.c (parse_gravity), (parse_options):
* pango/pango-context.c (pango_context_init),
(update_resolved_gravity), (pango_context_set_matrix),
(pango_context_set_base_gravity), (pango_context_get_gravity),
(itemize_state_init), (get_shaper_and_font):
* pango/pango-layout.c (line_set_resolved_dir):
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
(pango_cairo_fc_font_glyph_extents_cache_init),
(_pango_cairo_fc_font_new):
* pango/pangofc-fontmap.c (pango_fc_make_pattern),
(pango_fc_font_map_load_fontset):
* pango/pango.def:
* docs/pango-sections.txt:
* docs/tmpl/main.sgml:
Update to above.
Behdad Esfahbod [Sun, 20 Aug 2006 19:40:19 +0000 (19:40 +0000)]
Change the --rotate parameter to double now that we depend on a
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (parse_options):
* examples/renderdemo.h: Change the --rotate parameter to double now
that we depend on a recent-enough glib.
Behdad Esfahbod [Sun, 20 Aug 2006 17:41:35 +0000 (17:41 +0000)]
Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
* pango/pango-item.h (PangoAnalysis): Use bitfields for level.
Behdad Esfahbod [Sat, 19 Aug 2006 04:22:17 +0000 (04:22 +0000)]
Redo stuff that Hans reverted accidentally.
Hans Breuer [Fri, 18 Aug 2006 16:48:50 +0000 (16:48 +0000)]
[ChangeLog entry did not pass through on original commit]
2006-08-17 Hans Breuer <hans@breuer.org>
* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).
Behdad Esfahbod [Thu, 17 Aug 2006 18:26:25 +0000 (18:26 +0000)]
Part of Bug 348825 – pango should optimize away calls to FcFontSort as
2006-08-17 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 348825 – pango should optimize away calls to FcFontSort as
much as possible
* pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.
Tor Lillqvist [Thu, 17 Aug 2006 12:33:38 +0000 (12:33 +0000)]
Drop @WIN32_LIBS@, no need to search -lgdi32 when linking apps that link
2006-08-17 Tor Lillqvist <tml@novell.com>
* pangowin32.pc.in: Drop @WIN32_LIBS@, no need to search -lgdi32
when linking apps that link with libcairowin32.
* pango/pango.def: Add two symbols.
Hans Breuer [Thu, 17 Aug 2006 05:33:34 +0000 (05:33 +0000)]
updated error C2059: syntax error : '}' Intializing a struct with empty
2006-08-17 Hans Breuer <hans@breuer.org>
* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).
Behdad Esfahbod [Wed, 16 Aug 2006 22:57:15 +0000 (22:57 +0000)]
Bug 351585 – API documentation issues with 2.15 release
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
Bug 351585 – API documentation issues with 2.15 release
* pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
tag to docs.
Behdad Esfahbod [Wed, 16 Aug 2006 07:57:51 +0000 (07:57 +0000)]
Adjust line resolved_dir according to context base_gravity, like we do in
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (line_set_resolved_dir): Adjust line
resolved_dir according to context base_gravity, like we do
in itemize_state_add_character().
Behdad Esfahbod [Wed, 16 Aug 2006 07:28:30 +0000 (07:28 +0000)]
Minor adjustment.
Behdad Esfahbod [Wed, 16 Aug 2006 07:23:08 +0000 (07:23 +0000)]
Render block progression and line direction arrows, and a base gravity
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* examples/viewer-pangocairo.c (render_callback): Render block
progression and line direction arrows, and a base gravity roof-top.
* pango/pango-matrix.c (pango_matrix_to_gravity): New function.
* pango/pango-utils.c (pango_gravity_to_rotation): New function.
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use
pango_gravity_to_rotation().
* pango/pango-utils.h:
* pango/pango-types.h:
Reorder a bit.
* examples/Makefile.am:
* examples/test-chinese.txt: New test text for Chinese.
* pango/check.defs: New script that checks that all the exported
symbols are listed in the respective .def file. (only checks the
libraries actually built. No win32 for example.)
* pango/Makefile.am: Hook check.defs as a 'make check' test.
* pango/pango.def:
* pango/pangoft2.def:
* pango/pangocairo.def:
Update.
* docs/tmpl/glyphs.sgml:
* docs/tmpl/main.sgml:
* docs/pango-sections.txt:
Update.
Behdad Esfahbod [Wed, 16 Aug 2006 04:45:54 +0000 (04:45 +0000)]
Remove redundant positioning block!
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (fallback_shape): Remove redundant
positioning block!
Behdad Esfahbod [Wed, 16 Aug 2006 02:13:50 +0000 (02:13 +0000)]
Adjust color.
Behdad Esfahbod [Wed, 16 Aug 2006 02:01:17 +0000 (02:01 +0000)]
Return if none of logical_rect or ink_rect is non-NULL.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_run_get_extents):
* pango/glyphstring.c (pango_glyph_string_extents_range):
Return if none of logical_rect or ink_rect is non-NULL.
* pango/pango-item.h (PangoAnalysis): Add new member centered_baseline
which if set, makes item rendered such that ascent == descent.
* pango/pango-context.c (itemize_state_init),
(itemize_state_add_character):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
Implement centered_baseline.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics): When
adjusting ascent/descent for vertical fonts, adjust strikethrough and
underline position too.
* docs/tmpl/main.sgml: Document new struct member.
Behdad Esfahbod [Tue, 15 Aug 2006 22:55:37 +0000 (22:55 +0000)]
Use analysis->gravity to detect vertical fonts, instead of poking into the
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (basic_engine_shape): Use analysis->gravity
to detect vertical fonts, instead of poking into the font_pattern.
Behdad Esfahbod [Tue, 15 Aug 2006 22:23:19 +0000 (22:23 +0000)]
Always use fallback shaping for vertical fonts.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (basic_engine_shape): Always use
fallback shaping for vertical fonts.
* pango/pango-context.c (get_shaper_and_font): Always use basic
shaper for vertical items (east/west gravity).
Behdad Esfahbod [Tue, 15 Aug 2006 21:10:56 +0000 (21:10 +0000)]
Render the header with SOUTH gravity.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (do_output): Render the header with SOUTH
gravity.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
(pango_cairo_fc_font_glyph_extents_cache_init): Center baseline
for east/west gravity in pango_font_metrics too.
Behdad Esfahbod [Tue, 15 Aug 2006 20:46:10 +0000 (20:46 +0000)]
Remove excess LRM.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/HELLO.utf8: Remove excess LRM.
* examples/viewer-pangocairo.c (render_callback): Draw baselines in
border-drawing mode.
* pango/pango-layout.c (pango_layout_line_get_extents): Make sure
we set logical_rect.y on empty lines. Previously empty lines had
wrong baseline. The code apparently was written like that
intentionally, but I cannot find out why.
Behdad Esfahbod [Tue, 15 Aug 2006 20:36:00 +0000 (20:36 +0000)]
Remove initliazer members for analysis, let compiler zero them all. Fixes
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_get_log_attrs): Remove initliazer members
for analysis, let compiler zero them all. Fixes compile break after
adding the gravity member inside there.
Behdad Esfahbod [Tue, 15 Aug 2006 19:26:40 +0000 (19:26 +0000)]
Fix handling of WEST and EAST gravity effect on bidi level.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_add_character):
Fix handling of WEST and EAST gravity effect on bidi level.
* pango/pangocairo-fcfont.c
(pango_cairo_fc_font_glyph_extents_cache_init):
For NORTH gravity (upside down text), swap ascent and descent,
and for EAST/WEST, center baseline between ascent/descent.
* pango/shape.c (pango_shape): If glyph width is negative, negate
it and shift glyph by that amount. This allows having font matrices
that essentially move the glyph origin to the right of the glyph to
still work.
Behdad Esfahbod [Tue, 15 Aug 2006 18:57:25 +0000 (18:57 +0000)]
Move font_matrix rotation into font_new as we use only rotation and no
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
(_pango_cairo_fc_font_new): Move font_matrix rotation into font_new
as we use only rotation and no translation anymore.