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.
Behdad Esfahbod [Tue, 15 Aug 2006 13:03:04 +0000 (13:03 +0000)]
Oops. Exchange west<->east and north<->south gravities. The gravity is the
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/main.sgml:
* examples/renderdemo.c (parse_gravity), (parse_options):
* pango/pango-context.c (pango_context_init),
(pango_context_get_base_gravity), (itemize_state_add_character):
* pango/pango-types.h:
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font):
* pango/pangofc-fontmap.c (pango_fc_make_pattern):
Oops. Exchange west<->east and north<->south gravities. The gravity
is the side that the glyph sits on. So, for normal Latin text for
example, gravity is south, not north.
Behdad Esfahbod [Tue, 15 Aug 2006 11:51:37 +0000 (11:51 +0000)]
Support --gravity.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (do_output), (parse_gravity),
(parse_options): Support --gravity.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
(compute_glyph_extents), (_pango_cairo_fc_font_new): Load rotated
scaled_fonts to handle gravity.
* pango/pangofc-fontmap.c (pango_fc_make_pattern),
(pango_fc_font_map_get_patterns), (pango_fc_font_map_load_fontset):
Set FC_VERTICAL_LAYOUT on West and East gravity.
Behdad Esfahbod [Tue, 15 Aug 2006 07:24:48 +0000 (07:24 +0000)]
Add FIXME note about handling item gravity.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run):
Add FIXME note about handling item gravity.
* pango/pangofc-fontmap.c (fontset_hash_key_equal),
(fontset_hash_key_hash), (fontset_hash_key_copy),
(pango_fc_font_map_get_patterns): Add gravity into the hask key.
Behdad Esfahbod [Tue, 15 Aug 2006 06:38:12 +0000 (06:38 +0000)]
Add a gravity member to PangoItem, and
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-item.h: Add a gravity member to PangoItem, and
* pango/pango-context.c (itemize_state_init),
(itemize_state_add_character): Propagate context base_gravity
into items.
Behdad Esfahbod [Tue, 15 Aug 2006 05:52:24 +0000 (05:52 +0000)]
Add enum PangoGravity.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h: Add enum PangoGravity.
* pango/pango-context.h:
* pango/pango-context.c (pango_context_set_base_gravity),
(pango_context_get_base_gravity): New functions.
* pango/pango.def:
* docs/pango-sections.txt: Hook new API.
Behdad Esfahbod [Tue, 8 Aug 2006 22:33:37 +0000 (22:33 +0000)]
=== Released 1.14.0 ===
2006-08-08 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.14.0 ===
* configure.in: Version 1.14.0
* configure.in: Require cairo-1.2.2 for the bugfixes it has
* NEWS: Updated.
Behdad Esfahbod [Tue, 1 Aug 2006 14:50:34 +0000 (14:50 +0000)]
Don't ignore all trailing whitespace in input text. Only chop one newline.
2006-08-01 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (parse_options): Don't ignore all trailing
whitespace in input text. Only chop one newline.
* examples/viewer-main.c (main): setlocale(LC_ALL, "") to get GOption
work for UTF-8 text on the command line.
Behdad Esfahbod [Mon, 31 Jul 2006 22:52:00 +0000 (22:52 +0000)]
=== Released 1.13.5 ===
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.13.5 ===
* configure.in: Version 1.13.5
* NEWS: Updated.
Behdad Esfahbod [Mon, 31 Jul 2006 22:37:43 +0000 (22:37 +0000)]
Bug 121672 – Ra (vattu) not rendered properly in Malayalam Patch from
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
Bug 121672 – Ra (vattu) not rendered properly in Malayalam
Patch from LingNing Zhang
* modules/indic/indic-ot.c (shiftCharsLeft3), (indic_ot_reorder):
Reorder combinations of some three chars!
Behdad Esfahbod [Mon, 31 Jul 2006 05:17:47 +0000 (05:17 +0000)]
Bug 335811 – Some conjugates of Malayalam are wrong. Patch from LingNing
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
Bug 335811 – Some conjugates of Malayalam are wrong.
Patch from LingNing Zhang
* modules/indic/indic-ot-class-tables.c: Update consonant tags to
fix conjugates.
Behdad Esfahbod [Tue, 25 Jul 2006 08:11:11 +0000 (08:11 +0000)]
Add Cuneiform and Phoenician in the list of supported scripts by this
2006-07-25 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c: Add Cuneiform and Phoenician in the list
of supported scripts by this backend. Phoenician is a simple RTL
script.
* pango/pango-script.c (pango_script_get_sample_language): Add
language code "nqo" for script N'Ko.
Behdad Esfahbod [Tue, 25 Jul 2006 02:25:15 +0000 (02:25 +0000)]
=== Released 1.13.4 ===
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.13.4 ===
* configure.in: Version 1.13.4
* NEWS: Updated.
Behdad Esfahbod [Tue, 25 Jul 2006 02:10:56 +0000 (02:10 +0000)]
Minor doc improvement.
Behdad Esfahbod [Tue, 25 Jul 2006 02:08:48 +0000 (02:08 +0000)]
Update to UCD 5.0.0.
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
* pango/mini-fribidi/fribidi_tab_char_type_2.i: Update to UCD 5.0.0.
* pango/mini-fribidi/README: Note the about update.
* pango/pango-script.h: Add new values for PangoScript.
* pango/pango-script.c (pango_script_for_unichar_bsearch): Default
to PANGO_SCRIPT_UNKNOWN.
* pango/pango-script.c (pango_script_get_sample_language): Add empty
entries for new script values.
* tools/gen-script-table.pl: Default to PANGO_SCRIPT_UNKNOWN as is
now the default value of Scripts.txt in UCD 5.0.0.
* pango/pango-script-table.h: Regenerated against UCD 5.0.0.
* docs/tmpl/scripts.sgml: Document new script types.
* tools/gen-script-for-lang.c (scripts_for_line): Ignore data at the
end of lines as many .orth files in fontconfig now list the character
name there.
* pango/pango-script-lang-table.h: Regenerate against newer
fontconfig 2.3.9x.
Behdad Esfahbod [Tue, 25 Jul 2006 01:02:27 +0000 (01:02 +0000)]
Bug 347073 – Allow empty GPOS table
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
Bug 347073 – Allow empty GPOS table
* pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't
err on empty GPOS/GSUB tables.
Behdad Esfahbod [Wed, 19 Jul 2006 22:58:35 +0000 (22:58 +0000)]
Improve docs.
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_get_extents): Improve docs.
Richard Hult [Mon, 17 Jul 2006 13:19:25 +0000 (13:19 +0000)]
Bug 347021 – atsui crash when a matching font cannot be found. Patch
2006-07-17 Richard Hult <richard@imendio.com>
Bug 347021 – atsui crash when a matching font cannot be found.
Patch from Brian Tarricone.
* pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font):
Bail out if best desc or best face isn't found.
Behdad Esfahbod [Mon, 10 Jul 2006 22:52:45 +0000 (22:52 +0000)]
=== Released 1.13.3 ===
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.13.3 ===
* configure.in: Version 1.13.3
* NEWS: Updated.
Behdad Esfahbod [Mon, 10 Jul 2006 21:22:21 +0000 (21:22 +0000)]
Bug 330603 – pango_scan_int invokes undefined behaviour
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 330603 – pango_scan_int invokes undefined behaviour
* pango/pango-utils.c (pango_scan_int): Use strtol.
Behdad Esfahbod [Mon, 10 Jul 2006 20:23:41 +0000 (20:23 +0000)]
Bug 315599 – PangoAttribute remains in wrong context.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 315599 – PangoAttribute remains in wrong context.
* pango/pangocairo-render.c (_pango_cairo_do_glyph_string): Rever my
commit that removed Owen's fix from last year!