Upload tizen 2.0 beta source
[external/pango1.0.git] / ChangeLog.pre-1-16
1 2007-02-26  Behdad Esfahbod  <behdad@gnome.org>
2
3         * === Released 1.16.0 ===
4
5         * configure.in: Version 1.16.0
6
7         * configure.in: Require cairo 1.2.6 because of its important fixes.
8
9         * NEWS: Updated.
10
11         * README: Updated.
12
13 2007-02-20  Stefan Kost  <ensonic@users.sf.net>
14
15         Xrefs for glib and cairo in the docs. Add object hierarchy to the docs.
16
17         * configure.in:
18         * docs/Makefile.am:
19         * docs/pango-docs.sgml:
20
21 2007-02-18  Behdad Esfahbod  <behdad@gnome.org>
22
23         Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
24         Patch from Loïc Minier
25
26         * configure.in: Add xrender to pkg-config requirements for pangoxft.
27
28 2007-02-18  Behdad Esfahbod  <behdad@gnome.org>
29
30         Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
31         Patch from Loïc Minier
32
33         * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD.
34
35 2007-02-16  Behdad Esfahbod  <behdad@gnome.org>
36
37         Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on
38         spaces
39
40         * pango/pango-context.c (itemize_state_process_run): Don't choose
41         shaper for ASCII space char.
42
43 2007-02-16  Behdad Esfahbod  <behdad@gnome.org>
44
45         Bug 407087 – autogen.sh wants automake-1.7
46
47         * autogen.sh: Require automake 1.9, like configure.in does.
48
49 2007-02-12  Behdad Esfahbod  <behdad@gnome.org>
50
51         * === Released 1.15.6 ===
52
53         * configure.in: Version 1.15.6
54
55         * NEWS: Updated.
56
57 2007-02-13  Owen Taylor  <otaylor@redhat.com>
58
59         * pango/pangowin32-fontmap.c (pango_win32_insert_font): If
60         something has gone wrong in setting the family of the font
61         description, don't bother with the font as it isn't usable and
62         will cause crashes later anyway. (#404295)
63
64 2007-01-31  Tor Lillqvist  <tml@novell.com>
65
66         * pango/Makefile.am: Use pangocairo.def only on Win32, not
67         Cygwin. (#402373, "paul")
68
69 2007-01-30  Tor Lillqvist  <tml@novell.com>
70
71         * pango-zip.sh.in: Include also the COPYING file in the zipfiles.
72
73         * Makefile.am (EXTRA_DIST): Include just pango-zip.sh.in in the
74         tarball, not pango-zip.sh.
75
76 2007-01-24  Behdad Esfahbod  <behdad@gnome.org>
77
78         * pango/fonts.c (pango_font_get_metrics),
79         (pango_font_get_font_map): Remove PANGO_IS_FONT() check. Just
80         do NULL-checking.
81
82 2007-01-23  Behdad Esfahbod  <behdad@gnome.org>
83
84         Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE'
85         undeclared (first use in this function)
86
87         * pango/pangoft2.c (pango_ft2_font_get_face): Don't use FC_HINT_STYLE
88         if it's not defined (old fontconfig versions).
89
90 2007-01-22  Behdad Esfahbod  <behdad@gnome.org>
91
92         * === Released 1.15.5 ===
93
94         * configure.in: Version 1.15.5
95
96         * NEWS: Updated.
97
98 2007-01-22  Behdad Esfahbod  <behdad@gnome.org>
99
100         * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster):
101         Fix the "menu accels are two chars wide" bug that was introduced
102         by the recent changes in this function, in 1.15.4.  Apparently
103         glyph_index means separate things in next_cluster and prev_cluster.
104
105 2007-01-22  Behdad Esfahbod  <behdad@gnome.org>
106
107         * pango/fonts.c (pango_font_get_metrics): Populate metrics for
108         NULL/broken fonts.  Now our glyph boxes have underlines too. Yay!
109
110 2007-01-21  Tor Lillqvist  <tml@novell.com>
111
112         * configure.in: Add AC_MSG_RESULT([no]) to the failed branch of
113         PKG_CHECK_MODULES tests to make the output from configure
114         cleaner.
115
116 2007-01-21  Behdad Esfahbod  <behdad@gnome.org>
117
118         Bug 398238 – pangorc file missing from tests directory
119
120         * pango-view/Makefile.am:
121         * tests/Makefile.am:
122         Don't use $<. Doesn't work with Sun's make.
123
124 2007-01-18  Behdad Esfahbod  <behdad@gnome.org>
125
126         * configure.in: Require automake 1.9.
127
128 2007-01-18  Behdad Esfahbod  <behdad@gnome.org>
129
130         * pango/pangoft2.c (pango_ft2_font_get_face): Respect FC_HINT_STYLE.
131         Patch has been in Fedora for ages.
132
133 2007-01-17  Behdad Esfahbod  <behdad@gnome.org>
134
135         * === Released 1.15.4 ===
136
137         * configure.in: Version 1.15.4
138
139         * NEWS: Updated.
140
141 2007-01-17  Behdad Esfahbod  <behdad@gnome.org>
142
143         Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY
144
145         * modules/basic/basic-atsui.c (set_glyph): Handle
146         kATSDeletedGlyphcode.
147
148 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
149
150         * pango-view/viewer-render.c (make_layout): Fix typo when rounding
151         to points.
152
153 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
154
155         Bug 397337 – Use is_ellipsized and is_wrapped to optimize property
156         changes
157
158         * pango/pango-layout.c (pango_layout_set_wrap),
159         (pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped, 
160         only clear lines if wrap/ellipsize change has any effect on the lines.
161
162 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
163
164         *.c, *.h: Removed spaces followed b tabs.
165
166 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
167
168         *.c, *.h: Replace preceding sequences of 8 spaces with tabs.
169
170 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
171
172         * examples/pangowin32tobmp.c (SaveBitmap):
173         * modules/tibetan/tibetan-fc.c:
174         Replace C++-style // comments with C-style /* */ ones.
175
176 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
177
178         *.c, *.h: Drop trailing whitespace.
179
180 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
181
182         Bug 328585 – Need to know if a layout has unknown glyphs
183         Patch from LingNing Zhang
184
185         * pango/pango-layout-private.h:
186         * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
187         (pango_layout_get_unknown_glyphs_count),
188         (pango_layout_clear_lines):
189         * pango/pango-layout.h:
190         New public function:
191
192                 pango_layout_get_unknown_glyphs_count()
193
194         * pango/pango.def:
195         * docs/tmpl/layout.sgml:
196         * docs/pango-sections.txt:
197         Update.
198
199 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
200
201         Part of Bug 326693 – PangoLayouts should be query-able about their
202         effective properties (width / wrapped / ellipsized / etc)
203
204         * pango/pango-layout-private.h:
205         * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
206         (pango_layout_is_wrapped), (pango_layout_clear_lines),
207         (process_line):
208         * pango/pango-layout.h:
209         New public function:
210
211                 pango_layout_is_wrapped()
212
213         * pango/pango.def:
214         * docs/tmpl/layout.sgml:
215         * docs/pango-sections.txt:
216         Update.
217
218 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
219
220         Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return
221         a value
222
223         * pango/pango-layout.c (pango_layout_is_ellipsized): Use
224         g_return_val_if_fail() instead of g_return_if_fail().
225
226 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
227
228         * pango/ellipsize.c (get_cluster_width): Fix width calculation.
229         Was causing ellipsization to stop at a zero-width glyph that was
230         part of a bigger cluster.
231
232         * pango/ellipsize.c (remove_one_span): Skip over zero-width clusters,
233         otherwise ellipsization will stop at a zero-width cluster.
234
235         * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
236         (_pango_glyph_item_iter_prev_cluster): Fix yet another bug with
237         in prev_cluster that was making it not work for any interesting
238         cluster.
239
240 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
241
242         * examples/cairotwisted.c (point_on_path), (draw_text),
243         (draw_twisted), (draw_dream), (draw_wow), (main):
244         Improve text-on-path example.
245
246 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
247
248         * configure.in: Generate .bz2 tarball instead of .gz.
249
250 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
251
252         * pango-view/Makefile.am:
253         * pango-view/renderdemo.c:
254         * pango-view/renderdemo.h:
255         * pango-view/viewer-main.c:
256         * pango-view/viewer-pangocairo.c:
257         * pango-view/viewer-pangoft2.c:
258         * pango-view/viewer-pangox.c:
259         * pango-view/viewer-pangoxft.c:
260         * pango-view/viewer-render.c:
261         * pango-view/viewer-render.h:
262         * pango-view/viewer-x.c:
263         Rename renderdemo.[ch] to viewer-render.[ch].
264
265 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
266
267         * pango-view/Makefile.am: Rename HELLO.utf8 and GLASS.utf8 to
268         HELLO.txt and GLASS.txt.
269
270 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
271
272         * examples/pango-view.c:
273         * examples/pangocairo-view.c:
274         * examples/pangoft2-view.c:
275         * examples/pangox-view.c:
276         * examples/pangoxft-view.c:
277         * examples/renderdemo.c:
278         * examples/renderdemo.h:
279         * examples/test-arabic.txt:
280         * examples/test-chinese.txt:
281         * examples/test-devanagari.txt:
282         * examples/test-gurmukhi.txt:
283         * examples/test-hebrew.txt:
284         * examples/test-ipa.txt:
285         * examples/test-lao.txt:
286         * examples/test-latin.txt:
287         * examples/test-mixed.txt:
288         * examples/test-syriac.txt:
289         * examples/test-tamil.txt:
290         * examples/test-thai.txt:
291         * examples/test-tibetan.txt:
292         * examples/viewer-cairo.c:
293         * examples/viewer-cairo.h:
294         * examples/viewer-main.c:
295         * examples/viewer-pangocairo.c:
296         * examples/viewer-pangoft2.c:
297         * examples/viewer-pangox.c:
298         * examples/viewer-pangoxft.c:
299         * examples/viewer-win32.c:
300         * examples/viewer-x.c:
301         * examples/viewer-x.h:
302         * examples/viewer.h:
303         Move into pango-view/
304
305         * Makefile.am:
306         * configure.in:
307         * examples/Makefile.am:
308         * pango-view/Makefile.am:
309         Update.
310
311 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
312
313         * examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType.
314
315 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
316
317         Bug 363510 – Ability to query whether a PangoLayout is effectively
318         ellipsized (as opposed to the set_ellpisize()/get_ellipsize() methods
319         which only set a request, or return the set request respectively)
320         Patch from Milosz Derezynski
321
322         * pango/pango-layout.h:
323         * pango/ellipsize.c (_pango_layout_line_ellipsize):
324         * pango/pango-layout-private.h:
325         * pango/pango-layout.c (pango_layout_init), (pango_layout_copy),
326         (pango_layout_is_ellipsized), (pango_layout_clear_lines),
327         (pango_layout_line_postprocess):
328         New public function:
329
330                 pango_layout_is_ellipsized()
331
332         * pango/pango.def:
333         * docs/tmpl/layout.sgml:
334         * docs/pango-sections.txt:
335         Update.
336
337 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
338
339         * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix
340         background rendering being off in presence of rise attributes.
341
342 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
343
344         * pango/pango-context.c (itemize_state_init),
345         (itemize_state_update_for_new_run): Update  centered_baseline in
346         presence of gravity attributes.
347
348 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
349
350         * examples/cairotwisted.c (draw_text):
351         * pango/pangocairo-win32font.c (max_glyph_width):
352         * pango/pangofc-font.c (max_glyph_width):
353         * pango/pangowin32.c (max_glyph_width),
354         (pango_win32_render_layout):
355         * pango/pangox.c (pango_x_render_layout):
356         Use pango_layout(_iter)?_get_line_readonly() instead of
357         pango_layout(_iter)?_get_line().
358
359 2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
360
361         * pango/pango-attributes.h:
362         * pango/pango-attributes.c:
363         New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT.
364         New public functions:
365
366                 pango_attr_gravity_new()
367                 pango_attr_gravity_hint_new()
368
369         * pango/pango-context.c (update_attr_iterator),
370         (itemize_state_init), (itemize_state_add_character),
371         (get_shaper_and_font), (itemize_state_update_for_new_run):
372         Handle gravity and gravity_hint attributes.
373
374         * pango/pango-utils.h:
375         * pango/pango-utils.c:
376         New public function:
377
378                 pango_parse_enum()
379
380         * pango/pango-markup.c (span_parse_func): Parse gravity and
381         gravity_hint attributes for <span>.  Optimize a bit.
382
383         * pango/pango-markup.c (parse_absolute_size), (attr_strcmp),
384         (span_parse_int), (span_parse_boolean), (span_parse_color),
385         (span_parse_enum), (span_parse_func): Use pango_scan_int(),
386         pango_color_parse(), and pango_parse_enum().  Also, ignore '-' and
387         '_' differences when matching attribute names for <span>.
388
389         * examples/renderdemo.c (parse_enum), (parse_ellipsis),
390         (parse_gravity), (parse_gravity_hint), (parse_hinting),
391         (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum().
392
393         * modules/basic/basic-fc.c (basic_engine_shape):
394         * pango/pangofc-fontmap.c (pango_fc_make_pattern):
395         Use PANGO_GRAVITY_IS_VERTICAL().
396
397         * pango/pango.def:
398         * docs/pango-sections.txt:
399         * docs/tmpl/text-attributes.sgml:
400         * docs/tmpl/utils.sgml:
401         Update.
402
403 2007-01-15  Behdad Esfahbod  <behdad@gnome.org>
404
405         Bug 323173 – Add layout of mixed direction text for vertical layout
406
407         * pango/pango-gravity.h:
408         * pango/pango-gravity.c:
409         Moved gravity stuff here.  New public API:
410
411                 PangoGravityHint
412                 pango_gravity_get_for_matrix()
413                 pango_gravity_get_for_script()
414
415         * pango/pango-context.h:
416         * pango/pango-context.c (pango_context_init),
417         (update_resolved_gravity), (itemize_state_update_for_new_run):
418         Support gravity hint.  New public API:
419
420                 pango_context_set_gravity_hint()
421                 pango_context_get_gravity_hint()
422
423         * pango/pango-utils.c:
424         * pango/pango-matrix.c:
425         * pango/pango-matrix.h:
426         * pango/pango-types.h:
427         Moved gravity and matrix stuff into its own header.  pango-types.h
428         includes both pango-matrix.h and pango-gravity.h
429
430         * pango/pango.h:
431         Include new headers.
432
433         * pango/pango.def:
434         * pango/Makefile.am:
435         Update.
436
437         * docs/pango-docs.sgml:
438         * docs/pango-sections.txt:
439         * docs/tmpl/glyphs.sgml:
440         * docs/tmpl/main.sgml:
441         * docs/tmpl/vertical.sgml:
442         Add a section for Vertical Text.
443
444         * examples/renderdemo.c (do_output), (parse_gravity_hint),
445         (parse_options):
446         Support gravity hint.
447
448         * examples/test-mixed.txt:
449         New test, mixed Latin, Arabic, Chinese text.
450
451 2007-01-15  Tor Lillqvist  <tml@novell.com>
452
453         * configure.in: Don't check for X and don't warn about missing
454         fontconfig on Win32. (#392628, Yevgen Muntyan)
455
456 2007-01-15  Tor Lillqvist  <tml@novell.com>
457
458         * configure.in: Automatically use -mms-bitfields on Windows when
459         building with gcc. (#394453)
460
461 2007-01-13  Hans Breuer  <hans@breuer.org>
462
463         * pango/makefile.msc pango/opentype/makefile.msc : updated
464
465 2007-01-08  Behdad Esfahbod  <behdad@gnome.org>
466
467         * === Released 1.15.3 ===
468
469         * configure.in: Version 1.15.3
470
471         * NEWS: Updated.
472
473 2007-01-08  Behdad Esfahbod  <behdad@gnome.org>
474
475         Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
476
477         * docs/pango-sections.txt:
478         * docs/tmpl/glyphs.sgml:
479         * docs/tmpl/main.sgml:
480         * pango/pango-context.c (itemize_state_add_character):
481         * pango/pango-item.h:
482         * pango/pango-layout.c (pango_layout_run_get_extents):
483         * pango/pango-renderer.c (pango_renderer_draw_layout_line):
484         Don't introduce bitfields in public struct and rename PangoAnalysis.
485         centered_baseline to PangoAnalysis.flags and introduce
486         PANGO_ANALYSIS_FLAGS_CENTERED_BASELINE.
487
488 2007-01-07  Behdad Esfahbod  <behdad@gnome.org>
489
490         * docs/tmpl/engines.sgml:
491         * docs/tmpl/fonts.sgml:
492         * docs/tmpl/freetype-fonts.sgml:
493         * docs/tmpl/layout.sgml:
494         * docs/tmpl/main.sgml:
495         * docs/tmpl/modules.sgml:
496         * docs/tmpl/opentype.sgml:
497         * docs/tmpl/pango-renderer.sgml:
498         * docs/tmpl/pango-version.sgml:
499         * docs/tmpl/pangofc-font.sgml:
500         * docs/tmpl/pangofc-fontmap.sgml:
501         * docs/tmpl/text-attributes.sgml:
502         * docs/tmpl/win32-fonts.sgml:
503         * docs/tmpl/x-fonts.sgml:
504         * docs/tmpl/xft-fonts.sgml:
505         * pango/ellipsize.c:
506         * pango/fonts.c:
507         * pango/glyphstring.c:
508         * pango/modules.c:
509         * pango/pango-attributes.c:
510         * pango/pango-context.c:
511         * pango/pango-context.h:
512         * pango/pango-coverage.c:
513         * pango/pango-glyph-item.c:
514         * pango/pango-layout.c:
515         * pango/pango-layout.h:
516         * pango/pango-markup.c:
517         * pango/pango-matrix.c:
518         * pango/pango-ot-buffer.c:
519         * pango/pango-ot-info.c:
520         * pango/pango-ot-ruleset.c:
521         * pango/pango-renderer.c:
522         * pango/pango-script.c:
523         * pango/pango-utils.c:
524         * pango/pangoatsui-fontmap.c:
525         * pango/pangocairo-fontmap.c:
526         * pango/pangofc-font.c:
527         * pango/pangofc-font.h:
528         * pango/pangofc-fontmap.c:
529         * pango/pangofc-fontmap.h:
530         * pango/pangoft2-fontmap.c:
531         * pango/pangoft2-render.c:
532         * pango/pangoft2.c:
533         * pango/pangowin32-fontcache.c:
534         * pango/pangowin32-fontmap.c:
535         * pango/pangowin32.c:
536         * pango/pangox-fontmap.c:
537         * pango/pangox.c:
538         * pango/pangoxft-font.c:
539         * pango/pangoxft-fontmap.c:
540         * pango/pangoxft-render.c:
541         * pango/reorder-items.c:
542         Spell-check the docs.
543
544 2007-01-07  Tor Lillqvist  <tml@novell.com>
545
546         * modules/basic/Makefile.am: Fix build on Win32 outside
547         srcdir. (#392789, J. Ali Harlow)
548
549 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
550
551         * pango/pango-utils.c: Improve docs, and mention
552         g_unichar_iszerowidth().
553
554 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
555
556         Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21
557
558         * pango/pango-types.h:
559         * pango/pango-matrix.c: New public API:
560                 pango_matrix_transform_distance()
561                 pango_matrix_transform_point()
562                 pango_matrix_transform_rectangle()
563                 pango_matrix_transform_pixel_rectangle()
564
565         * pango/pango-utils.h:
566         * pango/pango-utils.c: New public API:
567                 pango_units_from_double()
568                 pango_units_to_double()
569                 pango_extents_to_pixels()
570
571         * pango/pango-layout.c (pango_layout_get_pixel_extents),
572         (pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels().
573
574         * pango/pangocairo-fcfont.c:
575         (pango_cairo_fc_font_glyph_extents_cache_init),
576         (compute_glyph_extents): Use pango_units_from_double().
577
578         * examples/renderdemo.c (do_output): Use
579         pango_matrix_transform_pixel_rectangle();
580
581         * pango/pango.def:
582         * docs/pango-sections.txt:
583         * docs/tmpl/glyphs.sgml: Update.
584
585 2007-01-03  Changwoo Ryu  <cwryu@debian.org>
586
587         Bug 388702 – Crash when there's no Hangul glyph in the font.
588         
589         * modules/hangul/hangul-fc.c (render_syllable): Do not try to
590         render unknown syllable glyphs as jamos.
591
592         * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
593         remaining string is a syllable.
594
595         Bug 388581 - Every last Hangul syllable is decomposed to jamos.
596
597         * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
598         remaining string is a syllable.
599
600 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
601
602         Bug 390877 – Don't feed pango-features.h to glib-mkenums
603         Patch from Yevgen Muntyan
604
605         * pango/Makefile.am: Move pango-features.h to pangoinclude_HEADERS.
606
607 2006-12-23  Behdad Esfahbod  <behdad@gnome.org>
608
609         Bug 384543 – FcFontMatch misuse
610
611         * pango/pangofc-fontmap.c (pango_fc_face_describe):
612         Call FcConfigSubstitute and FcDefaultSubstitute before calling
613         FcFontMatch.
614
615         * pango/pangoft2.c (load_fallback_face):
616         Call _pango_ft2_font_map_default_substitute().
617
618         * pango/pangocairo-fcfontmap.c
619         (pango_cairo_fc_font_map_context_substitute):
620         Handle the case of context == NULL.
621
622 2006-12-23  Behdad Esfahbod  <behdad@gnome.org>
623
624         * pango/pango-utils.c (pango_language_get_default): Improve docs.
625
626 2006-12-20  Behdad Esfahbod  <behdad@gnome.org>
627
628         * === Released 1.15.2 ===
629
630         * configure.in: Version 1.15.2
631
632         * NEWS: Updated.
633
634 2006-12-19  Behdad Esfahbod  <behdad@gnome.org>
635
636         Bug 326099 – Setting width, indentation and ellipsizing doesn't work
637         as I would expect
638
639         * pango/ellipsize.c (_pango_layout_line_ellipsize): Account for
640         indentation when deciding what width to ellipsize for.
641
642         * pango/pango-layout.c (get_alignment): Don't bother about
643         conditioning on the line direction for center alignment.
644
645 2006-12-20  Changwoo Ryu  <cwryu@debian.org>
646
647         * modules/hangul/hangul-defs.h:
648         * modules/hangul/hangul-fc.c
649         (hangul_engine_shape): Optimizing for non-old Hangul users; no
650         more waste of decompose and compose.
651         (render_syllable): The string argument is now in UTF-8. Normalization
652         is now done only when the entire sequence is equivalent to a
653         precomposed syllable.
654         (render_isolated_tone): Conditioned out tone mark's dummy base
655         character drawing.
656
657 2006-12-17  Behdad Esfahbod  <behdad@gnome.org>
658
659         * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
660         Avoid some floating-point operations by caching the y value for the
661         baseline, using it for glyphs having y_offset of 0.
662
663 2006-12-15  Frederic Crozat  <fcrozat@mandriva.com>
664
665         Bug 385478 – Fix tests on OPD platform
666
667         * pango/check.defs: Fix tests on OPD platform to report correct
668         symbols name.
669
670 2006-12-13  Behdad Esfahbod  <behdad@gnome.org>
671
672         Bug 319808 – Patch to let pango support artifical italic, bold and
673         bold italic styles for the fonts which don't have these styles.
674         Patch from James Su
675
676         * pango/pangofc-fontmap.c (pango_fc_face_describe), (create_face),
677         (pango_fc_family_list_faces): Create fake Bold, Italic, and Bold
678         Italic faces for fonts that do not have one.
679
680 2006-12-13  Gwenole Beauchesne  <gbeauchesne@mandriva.com>
681
682         Bug 385478 – Fix tests on OPD platform
683
684         * pango/check.defs: Improve symbols extraction for OPD-based
685         platforms (e.g. ppc64, ia64).
686
687 2006-12-13  Behdad Esfahbod  <behdad@gnome.org>
688
689         Bug 385321 – Worst case expansion for Sinhala
690         Patch from Harshula
691
692         * modules/indic/indic-ot-class-tables.c: Change worst case expansion
693         for Sinhala from 3 to 4.  This is only superficial because Pango
694         doesn't appear to ever use the worst case expansion value.
695
696 2006-12-08  Behdad Esfahbod  <behdad@gnome.org>
697
698         Red Hat Bug 211574: [hi/ml/si_LK] cursor naviation is wrong when
699         using ZWJ (200d)
700         Patch from LingNing Zhang
701
702         * modules/indic/indic-lang.c (indic_engine_break): Handle cursor
703         movement around ZWJ and ZWNJ.
704
705 2006-12-07  Behdad Esfahbod  <behdad@gnome.org>
706
707         Red Hat Bug 216424: [te_IN] pango - consonant + dependent vowel (ai)
708         Composed char is not rendering properly
709         Patch from LingNing Zhang
710
711         * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!
712
713 2006-12-07  Behdad Esfahbod  <behdad@gnome.org>
714
715         * pango/pango-layout-private.h:
716         * pango/pango-layout.c (pango_layout_get_extents_internal),
717         (pango_layout_get_extents), (pango_layout_clear_lines),
718         (pango_layout_line_leaked), (pango_layout_line_get_extents),
719         (pango_layout_iter_copy), (pango_layout_get_iter),
720         (pango_layout_iter_get_layout_extents):
721         Cache layout ink and logical extents.
722
723 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
724
725         * configure.in:
726         * pango/Makefile.am:
727         New generated public header file pango-features.h.  Currently contains
728         the version information.  In the future, can be expanded to define
729         which backends have been enabled, etc.
730
731         * pango/pango.def:
732         * pango/pango-utils.h:
733         * pango/pango-utils.c:
734         New public macros and functions: PANGO_VERSION_ENCODE(),
735         PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR, PANGO_VERSION_MICRO,
736         PANGO_VERSION, PANGO_VERSION_STRING, PANGO_VERSION_CHECK(),
737         pango_version(), pango_version_string(), pango_version_check().
738
739         * docs/pango-docs.sgml:
740         * docs/pango-sections.txt:
741         * docs/tmpl/pango-version.sgml:
742         Docs for new symbols, in a new section.
743
744         * examples/renderdemo.c (show_version):
745         If run-time Pango lib version is different than the compile-time one,
746         show that one too.
747
748         * pango/pango.h:
749         #include <pango-utils.h> as well as almost all other public pango-*.h
750         headers (though, the other ones were already included indirectly).
751         The only public pango-*.h header pango.h shouldn't include are
752         pango-ot.h (which is really misnamed) and pango-modules.h (that should
753         not be needed by 99.99% users anyway).
754
755         * docs/Makefile.am:
756         * docs/check.docs: Test to check that all symbols are documented and
757         properly hooked into documentation tree.
758
759         * pango/pango.rc.in:
760         * pango/pangoft2.rc.in:
761         * pango/pangowin32.rc.in:
762         Update, reflecting some internal symbol changes.
763
764         * pango/check.defs: Improve.
765
766 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
767
768         * examples/renderdemo.c (do_output): Set context language to
769         pango_language_get_default() instead of hardcoding "en-US".
770
771         * pango/pango-utils.c (pango_language_get_default): Improve docs.
772
773 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
774
775         Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used
776         Patch from LingNing Zhang
777
778         * docs/pango-sections.txt:
779         * docs/tmpl/utils.sgml:
780         * pango/pango-context.c:
781         * pango/pango-types.h:
782         * pango/pango-utils.c (_pango_get_lc_ctype),
783         (pango_language_get_default):
784         * pango/pango.def:
785         New public function pango_language_get_default().  Note that, this
786         does not make Pango fallback to the default language automatically,
787         but the user can use this function to set the default language of the
788         locale on a context:
789
790           pango_context_set_language (context, pango_language_get_default());
791
792 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
793
794         Bug 373856 – Wish: Function to convert a GdkColor to a string
795         Patch from Matthew Barnes
796
797         * docs/pango-sections.txt:
798         * docs/tmpl/text-attributes.sgml:
799         * pango/pango-attributes.h:
800         * pango/pango.def:
801         * pango/pango-color.c (pango_color_to_string):
802         New public function pango_color_to_string().
803
804 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
805
806         Red Hat Bug 216850: Issue in combination with vowels (ml_IN)
807         Patch from LingNing Zhang
808
809         * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!
810
811 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
812
813         Bug 382437 – tests/testboundaries fails
814
815         * configure.in: Require libthai >= 0.1.7
816
817 2006-12-06  Behdad Esfahbod  <behdad@gnome.org>
818
819         * examples/Makefile.am:
820         * examples/test-gurmukhi.txt:
821         Gurmukhi test text from supreet sethi.
822
823 2006-12-05  Behdad Esfahbod  <behdad@gnome.org>
824
825         * docs/pango-sections.txt:
826         * docs/tmpl/layout.sgml:
827         * pango/pango-layout.c (pango_layout_get_lines_readonly),
828         (pango_layout_get_line_readonly),
829         (pango_layout_iter_get_run_readonly),
830         (_pango_layout_iter_get_line), (pango_layout_iter_get_line),
831         (pango_layout_iter_get_line_readonly):
832         * pango/pango-layout.h:
833         * pango/pango-renderer.c (pango_renderer_draw_layout):
834         * pango/pango.def:
835         Add new functions:
836                 pango_layout_get_line_readonly()
837                 pango_layout_get_lines_readonly()
838                 pango_layout_iter_get_line_readonly()
839                 pango_layout_iter_get_run_readonly()
840         These should be used when you do not intend to modify the run/line,
841         which is more than most of the time.  So, update your app, benefit
842         from more optimizations (in this case, line extents caching)!
843
844 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
845
846         * === Released 1.15.1 ===
847
848         * configure.in: Version 1.15.1
849
850         * NEWS: Updated.
851
852 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
853
854         Bug 135683 – Cache glyphstring extents
855
856         Cache line extents.  This avoids the final pango_font_get_glyph_extents()
857         call per glyph per layout rendering.  Now we don't make any
858         pango_font_get_glyph_extents() calls when rendering a layout (some
859         conditions apply).
860
861         * pango/pango-layout.c (pango_layout_get_lines),
862         (pango_layout_get_line), (pango_layout_line_leaked),
863         (pango_layout_line_get_extents), (pango_layout_line_new),
864         (pango_layout_iter_get_run), (pango_layout_iter_get_line): 
865         Cache line extents.  Line extents are cached only if the user doesn't
866         have a pointer to the line or any of its runs.  Functions that give
867         away such pointers mark the line as "leak"ed.
868
869         * pango/pango-layout.c (pango_layout_index_to_line_and_extents),
870         (pango_layout_xy_to_index), (pango_layout_index_to_pos):
871         Use _pango_layout_iter_get_line() which is like
872         pango_layout_iter_get_line() but doesn't leak the line.
873
874         * pango/pango-layout-private.h: Add pango_layout_iter_get_line()
875         duplicate _pango_layout_iter_get_line_readonly() that doesn't leak
876         the line.
877
878         * pango/pango-renderer.c (pango_renderer_draw_layout): Use
879         _pango_layout_iter_get_line_readonly().
880
881 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
882
883         * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame):
884         Improve upon last change.  Suggested by Carl Worth: use
885         cairo_rectangle(x + width, y, -width, height) to do a rectangle with
886         the other orientation.
887
888 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
889
890         * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame),
891         (_pango_cairo_renderer_draw_box_glyph),
892         (_pango_cairo_renderer_draw_unknown_glyph):
893         Fix handling of boxes drawn in do_path mode.  Previously we were
894         doing one rectangle and stroke it if in show mode, and leave it alone
895         if in path mode.  That doesn't really work.  Now we do two rectangles,
896         for the outer and inner rects of the box border, but with different
897         orientations, such that pango_cairo_layout_path(); cairo_fill(); works
898         for hexboxes now.
899
900 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
901
902         Red Hat Bug 211964: [ta] Rendering issue with Tamil
903         Patch from LingNing Zhang
904
905         * modules/indic/indic-ot-class-tables.c (indic_ot_find_syllable):
906         Handle 2 split matra.
907
908 2006-12-04  Behdad Esfahbod  <behdad@gnome.org>
909
910         * pango/pango-renderer.c (pango_renderer_draw_layout_line),
911         (pango_renderer_draw_glyphs), (pango_renderer_draw_rectangle),
912         (pango_renderer_draw_error_underline),
913         (pango_renderer_draw_trapezoid), (pango_renderer_draw_glyph),
914         (pango_renderer_activate), (pango_renderer_deactivate),
915         (pango_renderer_set_color), (pango_renderer_get_color),
916         (pango_renderer_part_changed), (pango_renderer_prepare_run),
917         (pango_renderer_set_matrix): Replace PANGO_IS_RENDERER with
918         PANGO_IS_RENDERER_FAST that is just a NULL-check.
919
920 2006-12-01  Behdad Esfahbod  <behdad@gnome.org>
921
922         Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output
923         Patch from LingNing Zhang
924
925         * modules/indic/indic-ot.c (indic_ot_reorder): Handle ZWNJ.
926
927 2006-12-01  Behdad Esfahbod  <behdad@gnome.org>
928
929         * pango/pango-layout.c (pango_layout_run_get_width), (update_run),
930         (pango_layout_iter_copy), (pango_layout_iter_get_run_extents):
931         Don't cache run_logical_rect in PangoLayoutIter.  Just cache run_width
932         that can be fastly computed using pango_glyph_string_get_width().
933         Avoids one pango_font_get_glyph_extents() call per glyph per layout
934         rendering.  We are down to 1 now.
935
936 2006-11-30  Behdad Esfahbod  <behdad@gnome.org>
937
938         * pango/pango-layout.c (pango_layout_get_extents_internal):  Rework
939         the way we compute the real_width to avoid calling
940         pango_layout_get_extents(), and so, avoid one
941         pango_font_get_glyph_extents() call per glyph per layout rendering.
942         We now make 2 such calls.
943
944 2006-11-30  Behdad Esfahbod  <behdad@gnome.org>
945
946         * pango/pango-renderer.c (pango_renderer_draw_layout_line):
947         Don't call into pango_glyph_string_extents() if we don't need anything
948         out of it!  (Ok, that function returns immediately in that case, but
949         still, avoiding the call overhead.)
950
951 2006-11-30  Behdad Esfahbod  <behdad@gnome.org>
952
953         * pango/pangocairo-render.c (acquire_renderer), (release_renderer):
954         Use G_LOCK_* wrappers for GStaticMutex.
955
956 2006-11-28  Behdad Esfahbod  <behdad@gnome.org>
957
958         * pango/pangocairo-font.c (_pango_cairo_font_install),
959         (_pango_cairo_font_get_font_face),
960         (_pango_cairo_font_get_scaled_font):
961         * pango/pangocairo-private.h:
962         * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
963         Revert two of the cast changes from last commit, to make sure the
964         test-pangocairo-fontmap-mismatch test doesn't crash.
965
966 2006-11-28  Behdad Esfahbod  <behdad@gnome.org>
967
968         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_font_face),
969         (pango_cairo_fc_font_install), (pango_cairo_fc_font_finalize),
970         (pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_shutdown),
971         (_pango_cairo_fc_font_new):
972         * pango/pangocairo-fcfontmap.c
973         (pango_cairo_fc_font_map_set_resolution),
974         (pango_cairo_fc_font_map_get_resolution_cairo),
975         (pango_cairo_fc_font_map_get_renderer),
976         (pango_cairo_fc_font_map_finalize),
977         (pango_cairo_fc_font_map_get_resolution_fc),
978         (pango_cairo_fc_font_map_create_font):
979         * pango/pangocairo-font.c (_pango_cairo_font_install),
980         (_pango_cairo_font_get_font_face),
981         (_pango_cairo_font_get_scaled_font),
982         (_pango_cairo_font_get_hex_box_info):
983         * pango/pangocairo-fontmap.c (pango_cairo_create_layout):
984         * pango/pangocairo-render.c (set_color),
985         (_pango_cairo_renderer_draw_unknown_glyph),
986         (pango_cairo_renderer_draw_glyphs),
987         (pango_cairo_renderer_draw_rectangle),
988         (pango_cairo_renderer_draw_error_underline):
989         Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the
990         object cannot have reached us if it wasn't of the right type.
991
992 2006-11-27  Behdad Esfahbod  <behdad@gnome.org>
993
994         Bug 371388 – Add Thai langauage engine
995         Patch from Theppitak Karoonboonyanan
996
997         * configure.in: Look for libthai and enable thai-lang module.
998         * modules/thai/Makefile.am: Hook thai-lang module.
999
1000         * modules/thai/thai-lang.c: New Thai language engine that uses libthai
1001         to do dictionary-based Thai line-breaking.
1002
1003         * examples/test-thai.txt: Improved.
1004
1005 2006-11-25  Behdad Esfahbod  <behdad@gnome.org>
1006
1007         * pango/pangocairo-render.c (acquire_renderer), (release_renderer),
1008         (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
1009         (_pango_cairo_do_layout):  Make renderer-cache really thread-safe this
1010         time.  Last try was not quite thread-safe theoretically, because
1011         pointer assignments are not necessarily atomic on some archs.  Anyway,
1012         this one should do it.
1013
1014 2006-11-22  Behdad Esfahbod  <behdad@gnome.org>
1015
1016         * examples/HELLO.utf8:
1017         * examples/Makefile.am:
1018         * examples/test-lao.txt:
1019         Add Lao text samples from Anousak Souphavanh.
1020
1021 2006-11-22  Behdad Esfahbod  <behdad@gnome.org>
1022
1023         Bug 377975 – bug in _pango_glyph_item_iter_next_cluster
1024
1025         * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
1026         (_pango_glyph_item_iter_prev_cluster): Fix condition for ending a
1027         cluster.
1028
1029 2006-11-21  Behdad Esfahbod  <behdad@gnome.org>
1030
1031         * pango/pango-glyph-item.c: Fix typo in private docs.
1032
1033 2006-11-20  Behdad Esfahbod  <behdad@gnome.org>
1034
1035         Bug 356666 – pango is not thread-safe, nautilus does not honour that
1036
1037         * pango/pangocairo-render.c (acquire_renderer), (release_renderer),
1038         (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
1039         (_pango_cairo_do_layout): Instead of using a per-fontmap renderer, use
1040         a locally cached one, but make sure only one thread uses the cached
1041         renderer.  Fixes the raciest point in pangocairo.
1042
1043 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
1044
1045         Bug 352795 – configure.in: Bug in "checking Whether to write
1046         dependencies into .pc files"
1047
1048         * configure.in: Make libtool magic robust.
1049
1050 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
1051
1052         * pango/pango-context.c (itemize_state_process_run): Choose
1053         shaper/font for unassigned Unicode codepoints too.  This is needed to
1054         be able to render scripts being encoded before next version of Unicode
1055         is out.
1056
1057 2006-11-08  Roozbeh Pournader  <roozbeh@farsiweb.info>
1058
1059         Bug 350132 – backspacing doesn't work properly for Arabic
1060
1061         * modules/arabic/arabic-lang.c: Add more backspace_deletes_character
1062         cases.
1063
1064 2006-11-08  Behdad Esfahbod  <behdad@gnome.org>
1065
1066         Bug 369670 – Crash when selecting text using the keyboard
1067
1068         * pango/pango-layout.c (pango_layout_move_cursor_visually): Don't
1069         index vis2log_map[] with a negative value.
1070
1071 2006-11-02  Behdad Esfahbod  <behdad@gnome.org>
1072
1073         Bug 369670 – Checked g_free calls
1074
1075         * pango/pango-coverage.c (pango_coverage_unref):
1076         * pango/pango-layout.c (pango_layout_finalize),
1077         (pango_layout_set_text):
1078         * pango/pangofc-font.c (pango_fc_font_finalize):
1079         * pango/pangox-fontmap.c (pango_x_font_map_read_alias_file):
1080         Remove redundant checks before g_free() calls.
1081
1082 2006-10-24  Behdad Esfahbod  <behdad@gnome.org>
1083
1084         * examples/Makefile.am (cairosimple_LDADD): Do not require pangoft2
1085         unconditionally.
1086
1087 2006-10-24  Behdad Esfahbod  <behdad@gnome.org>
1088
1089         * pango/pangoft2-fontmap.c (pango_ft2_font_map_class_init),
1090         (pango_ft2_font_map_get_resolution): Implement get_resolution for FT2
1091         fontmaps.
1092
1093 2006-10-18  Behdad Esfahbod  <behdad@gnome.org>
1094
1095         * modules/arabic/arabic-lang.c: Do not include arabic-ot.h.
1096
1097 2006-10-18  Behdad Esfahbod  <behdad@gnome.org>
1098
1099         * examples/test-thai.txt: Replace by a better one.
1100
1101 2006-10-17  Behdad Esfahbod  <behdad@gnome.org>
1102
1103         * examples/Makefile.am:
1104         * examples/test-thai.txt: Added.
1105
1106 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
1107
1108         * === Released 1.15.0 ===
1109
1110         * configure.in: Version 1.15.0
1111
1112         * NEWS: Updated.
1113
1114 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
1115
1116         Bug 330407 – Multiple dependant vowel signs (indic) displayed as one
1117         Patch from LingNing Zhang
1118
1119         * modules/indic/indic-ot-class-tables.c: Change state transition for
1120         cn to dv.
1121
1122 2006-10-13  Behdad Esfahbod  <behdad@gnome.org>
1123
1124         * pango/pango-ot-info.c (pango_ot_info_get_type):
1125         * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type):
1126         * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type),
1127         (pango_atsui_face_get_type):
1128         * pango/pangocairo-font.c (pango_cairo_font_get_type):
1129         * pango/pangocairo-fontmap.c (pango_cairo_font_map_get_type):
1130         * pango/pangofc-fontmap.c (pango_fc_face_get_type),
1131         (pango_fc_family_get_type):
1132         * pango/pangowin32-fontmap.c (pango_win32_family_get_type),
1133         (pango_win32_face_get_type):
1134         * pango/pangox-fontmap.c (pango_x_font_map_get_type),
1135         (pango_x_face_get_type), (pango_x_family_get_type):
1136         * pango/pangox.c (pango_x_font_get_type):
1137         Make TypeInfo structs not static.  Reduces relocations.
1138
1139 2006-10-13  Behdad Esfahbod  <behdad@gnome.org>
1140
1141         Bug 361938 – Can't include *-lang modules (./configure
1142         --with-included-modules fails)
1143
1144         * configure.in:
1145         * modules/Makefile.am:
1146         * pango/.cvsignore:
1147         * pango/Makefile.am:
1148         * pango/modules.c (init_modules):
1149         * pango/modules.h:
1150         Make included language engines work.
1151
1152 2006-10-12  Behdad Esfahbod  <behdad@gnome.org>
1153
1154         Bug 353877 – Sinhala is_cursor_position and
1155         backspace_deletes_character issues
1156         Patch from Akira TAGOH
1157
1158         * configure.in:
1159         * modules/indic/Makefile.am:
1160         * modules/indic/indic-lang.c: Add a simple Indic language engine.
1161
1162 2006-10-12  Behdad Esfahbod  <behdad@gnome.org>
1163
1164         Bug 358224 – Telugu Character U+0C31 does not render its below-base
1165         form.
1166         Patch from Rahul Bhalerao
1167
1168         * modules/indic/indic-ot-class-tables.c: Change  the class of U+0C31
1169         from '_ct' to '_bb'.
1170
1171 2006-10-12  Behdad Esfahbod  <behdad@gnome.org>
1172
1173         Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
1174         not rendered.
1175         Patch from Rahul Bhalerao
1176
1177         * modules/indic/indic-ot-class-tables.c: Change the class bit of
1178         U+09F0 from '_ct' to '_rv'.
1179
1180 2006-10-07  Behdad Esfahbod  <behdad@gnome.org>
1181
1182         * examples/Makefile.am:
1183         * examples/test-latin.txt: Add part of Jabberwocky as Latin test text.
1184
1185 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
1186
1187         Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong
1188         Patch from Rahul Bhalerao
1189
1190         * modules/indic/indic-ot-class-tables.c:  Change _ct to _bb for
1191         various Orya characters.
1192
1193 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
1194
1195         Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)
1196         Patch from Rahul Bhalerao
1197
1198         * modules/indic/indic-ot-class-tables.c:
1199         * modules/indic/indic-ot.c (indic_ot_reorder):
1200         Fix.
1201
1202 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
1203
1204         Bug 359043 – PangoRenderer does not show in API docs
1205
1206         * docs/pango-docs.sgml: Hook PangoRenderer docs.
1207
1208 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
1209
1210         Bug 359046 – renderdemo.c unconditionally use GLib 2.12
1211
1212         * configure.in: Require glib 2.12, for Unicode 5.0 data files.
1213
1214 2006-09-25  Behdad Esfahbod  <behdad@gnome.org>
1215
1216         Bug 357686 – pangocairo-font.c: illegal g_object_unref in
1217         pango_cairo_font_get_hex_box_info
1218
1219         * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Remove
1220         wrong g_object_unref (fontmap).
1221
1222 2006-09-22  Behdad Esfahbod  <behdad@gnome.org>
1223
1224         Bug 357228 – Remove aix specific hack from configure.in
1225
1226         * configure.in: Remove hack added back 2002 that is not required
1227         anymore.
1228
1229 2006-09-18  Behdad Esfahbod  <behdad@gnome.org>
1230
1231         * configure.in: Step module interface version to 1.6.0 because of the
1232         script_break() slight change of behavior and anticipated changes to
1233         the module interface this cycle.
1234
1235 2006-09-18  Behdad Esfahbod  <behdad@gnome.org>
1236
1237         Part of Bug 350132 – backspacing doesn't work properly for Arabic
1238
1239         * configure.in:
1240         * modules/arabic/Makefile.am:
1241         * modules/arabic/arabic-lang.c:
1242         Add a simple Arabic language engine.  Currently it just makes sure
1243         that backspace_deletes_character is not set on ALEF-MADDA
1244         combinations.
1245
1246 2006-09-18  Behdad Esfahbod  <behdad@gnome.org>
1247
1248         * tools/gen-script-table.pl:
1249         * pango/pango-script-table.h:
1250         * pango/pango-script.c (pango_script_for_unichar): Minor
1251         simplification.
1252
1253         * tests/testscript.c (test_script_lookup): Update to pass.
1254
1255 2006-09-18  Behdad Esfahbod  <behdad@gnome.org>
1256
1257         * pango/pangoft2-render.c (pango_ft2_font_render_glyph): Remove a
1258         couple of unnecessary static variables.
1259
1260 2006-09-18  Behdad Esfahbod  <behdad@gnome.org>
1261
1262         Bug 356194 – more pango_get_log_attrs problems
1263
1264         * pango/break.c (tailor_break): New function.  Simply calls the
1265         script_break() function of the language engine, if any.
1266
1267         * pango/break.c (pango_break): Call pango_default_break()
1268         unconditionally.  Call tailor_break() on top of the result to tailor
1269         it using the language engines, if any.
1270
1271         * pango/break.c (tailor_segment): Call tailor_break() on the segment,
1272         and make sure the log_attrs for the first position are not corrupted.
1273
1274         * pango/break.c (pango_get_log_attrs): Call pango_default_break() on
1275         the entire paragraph, and call tailor_segment on each segment.
1276
1277         * pango/pango-engine.h: Update docs about *script_break()'s behavior.
1278
1279 2006-09-15  Behdad Esfahbod  <behdad@gnome.org>
1280
1281         Bug 355820 – pango_get_log_attrs broken
1282
1283         * pango/break.c (break_it), (pango_get_log_attrs): Use PangoScriptIter
1284         to itemize text, instead of pango_script_for_unichar().
1285
1286 2006-09-15  Behdad Esfahbod  <behdad@gnome.org>
1287
1288         * pango/pangofc-fontmap.c (pango_fc_face_describe): Unset gravity on
1289         the resulting font description.  We want gravity to be set on all
1290         fonts described, but not font faces.
1291
1292 2006-09-14  Behdad Esfahbod  <behdad@gnome.org>
1293
1294         * modules/indic/indic-ot-class-tables.c: Change enums to macros, to
1295         get in synch with ICU shaper.  No functional changes.
1296
1297 2006-09-14  Behdad Esfahbod  <behdad@gnome.org>
1298
1299         * modules/indic/indic-ot.h: Change some enums to macros, to get in
1300         synch with ICU shaper.  No functional changes.
1301
1302 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1303
1304         Bug 351223 – the conjuction of Con + 0x0d4d +0x0d31 of Malayalam is
1305         wrong
1306         Patch from LingNing Zhang
1307
1308         * modules/indic/indic-ot.c (swapChars), (indic_ot_reorder): Special
1309         case the above case.
1310
1311 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1312
1313         Bug 355750 – The glyphs of the conjuctions about Cons+0x0d4d+0x0d32 of
1314         Malayalm are wrong.
1315         Patch from LingNing Zhang
1316
1317         * modules/indic/indic-ot-class-tables.c (mlymCharClasses): Change
1318         U+0D32 from _bb to _ct.
1319
1320 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1321
1322         Bug 349876 – U+0x0904 of Devanagari need be "independent vowel", but
1323         it is "reserved" in Pango
1324         Patch from LingNing Zhang
1325
1326         * modules/indic/indic-ot-class-tables.c (devaCharClasses): Change
1327         U+0904 from _xx to _iv.
1328
1329 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1330
1331         Bug 355550 – Miscalculation of logical attributes in
1332         pango_get_log_attrs()
1333         Patch from Theppitak Karoonboonyanan
1334
1335         * pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
1336         pango_break().
1337
1338 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1339
1340         * pango/modules.c (pango_engine_pair_get_engine): Err about failing to
1341         load engine only once per module.
1342
1343 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1344
1345         Bug 355697 – The IndicOTClassTable of Oriya has a error.
1346
1347         * modules/indic/indic-ot-class-tables.c: Compute lastChar from
1348         charClasses table size to avoid out-of-synch.
1349
1350 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1351
1352         Part of Bug 355782 – Misaligned extents in pango
1353
1354         * pango/pango-layout.c (pango_layout_get_extents_internal),
1355         (pango_layout_get_extents), (pango_layout_iter_copy),
1356         (pango_layout_get_iter), (pango_layout_iter_get_line_extents):
1357         Add a new internal member layout_width to PangoLayoutIter.  Set it up
1358         in pango_layout_get_extents_internal and use in
1359         pango_layout_iter_get_line_extents to fix misalignment of ink link
1360         extents.
1361
1362 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1363
1364         "Thou shalt not touch code that does not fit in thy brain."
1365
1366         * pango/pango-layout.c (update_cluster): Add cluster_start_index
1367         parameter back in.
1368
1369 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1370
1371         * pango/pango-engine.h: Remove unnecessary 'static' in type definition
1372         that causes a relocation.
1373
1374         * pango/shape.c (pango_shape): Make sure last_cluster is invalid.
1375
1376 2006-09-13  Behdad Esfahbod  <behdad@gnome.org>
1377
1378         Part of Bug 355782 – Misaligned extents in pango
1379
1380         * pango/pango-layout.c (cluster_width): Rewrite based on
1381         is_cluster_start instead of accessing log_clusters directly.  This is
1382         more robust as next_cluster uses that, so the two match now.
1383         
1384         * pango/pango-layout.c (update_cluster): Remove the
1385         cluster_start_index parameter and use iter->cluster_start instead.
1386
1387         * pango/pango-layout.c (pango_layout_iter_copy): Fix typo in copying
1388         iter->cluster_width.
1389         
1390         * pango/pango-layout.c (pango_layout_iter_get_cluster_extents): Add
1391         an assert to make sure iter->cluster_width is correctly set.
1392
1393         * pango/pango-layout.c (pango_layout_iter_get_char_extents): Remove
1394         assert that was readded above to check more cases.
1395
1396 2006-09-12  Behdad Esfahbod  <behdad@gnome.org>
1397
1398         Bug 355605 – hexbox with 0000 in it
1399
1400         * modules/hangul/hangul-fc.c (render_syllable): If decomposition
1401         fails, backup and add a single hexbox glyph for the original
1402         character.
1403
1404 2006-09-11  Behdad Esfahbod  <behdad@gnome.org>
1405
1406         Bug 355435 – Invalid calls to pango_map_get_engine()
1407         Patch from Theppitak Karoonboonyanan
1408
1409         * pango/break.c (pango_get_log_attrs):
1410         * pango/pango-renderer.c (add_underline):
1411         * pango/pangofc-font.c (pango_fc_font_find_shaper):
1412         * pango/pangowin32.c (pango_win32_font_find_shaper):
1413         * pango/pangox.c (pango_x_font_find_shaper):
1414         Pass a PangoScript to pango_map_get_engine, not a gunichar!
1415
1416 2006-09-11  Behdad Esfahbod  <behdad@gnome.org>
1417
1418         Bug 347146 – underline/overstrike spaces
1419
1420         * pango/pango-renderer.c (add_underline), (add_strikethrough),
1421         (pango_renderer_draw_layout_line): Use logical extents for
1422         x and width of underline/strikethrough, such that trailing spaces are
1423         correctly handled.
1424
1425         * pango/pango-layout.c (pango_layout_run_get_extents): Use logical
1426         rect for underline/strikethrough, and reflect that in run ink extents.
1427
1428         * pango/pango-layout.c (pango_layout_line_get_extents): Don't
1429         let runs with empty ink extents affect total ink extents.
1430
1431 2006-09-10  Behdad Esfahbod  <behdad@gnome.org>
1432
1433         Bug 352535 – Ink extents of empty glyph
1434
1435         * pango/pangocairo-fcfont.c
1436         (pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for
1437         PANGO_GLYPH_EMPTY.
1438
1439 2006-09-08  Behdad Esfahbod  <behdad@gnome.org>
1440
1441         * examples/cairotwisted.c: A simple text-on-path example using
1442         pangocairo.
1443
1444         * examples/Makefile.am: Update.
1445
1446 2006-09-08  Behdad Esfahbod  <behdad@gnome.org>
1447
1448         * pango/fonts.c (find_field_any): Parse style.  It was dropped when
1449         I was adding support for gravity.
1450
1451 2006-08-31  Behdad Esfahbod  <behdad@gnome.org>
1452
1453         * pango/pango-layout.c, pango/pangox-fontmap.c, pango/pangox.c:
1454         Minor doc syntax update.
1455
1456 2006-08-30  Behdad Esfahbod  <behdad@gnome.org>
1457
1458         Bug 148732 – cursor movenmet is not correct in gedit when I type
1459         Arabic text.
1460
1461         * pango/pango-layout.c (pango_layout_move_cursor_visually): Update
1462         locally cached line properties upon line change.
1463
1464 2006-08-30  Behdad Esfahbod  <behdad@gnome.org>
1465
1466         * modules/Makefile.am (pango.modules): Improve the conditional to
1467         ignore included modules.
1468
1469 2006-08-30  Behdad Esfahbod  <behdad@gnome.org>
1470
1471         Bug 352811 – SIGSEGV with pango(cairo)-view on HP-UX
1472
1473         * modules/Makefile.am (pango.modules): Don't hardcode .so extension.
1474         Look for .la instead.
1475
1476 2006-08-30  Behdad Esfahbod  <behdad@gnome.org>
1477
1478         Bug 353525 – libpangoft2-1.0.so.0: undefined reference to
1479         `pango_font_description_get_gravity'
1480
1481         * examples/Makefile.am: Explicitly link to the just built pangoft2 for
1482         pangocairo uses, like we already do for pangoxft.
1483
1484 2006-08-28  Tor Lillqvist  <tml@novell.com>
1485
1486         * modules/basic/Makefile.am: Have basic-win32.c instead of
1487         basic-win32.lo depend on usp10.h so things work out also in case
1488         the basic-win32 module is compiled in.
1489
1490 2006-08-26  Behdad Esfahbod  <behdad@gnome.org>
1491
1492         Bug 349813 – typo in docs for pango_layout_move_cursor_visually
1493
1494         * pango/pango-layout.c (pango_layout_move_cursor_visually): Fix typo.
1495
1496 2006-08-23  Tor Lillqvist  <tml@novell.com>
1497
1498         * pango/Makefile.am
1499         * examples/Makefile.am
1500         * pango/testfonts.c
1501         * examples/pangowin32tobmp.c: Rename pango/testfonts.c to
1502         examples/pangowin32tobmp.c. (#104151)
1503
1504 2006-08-22  Behdad Esfahbod  <behdad@gnome.org>
1505
1506         * pango/pango-context.c (itemize_state_process_run): Replace (!isgraph
1507         && !isspace) with (!isprint) which is equivalent.  Also, update
1508         comments.
1509
1510 2006-08-22  Behdad Esfahbod  <behdad@gnome.org>
1511
1512         Part of Bug 145275 – Font selection for space characters
1513
1514         * pango/pango-context.c (itemize_state_process_run): Find shaper/font
1515         for Private Use and space characters too.  Finding shaper for Private
1516         Use is needed for any practical use of those areas.  Ideally, spaces
1517         should be synthesized if they are not available in the font, but
1518         falling back to other fonts is far easier, and should give pretty good
1519         results with the current set of common fonts.  These fixes allow
1520         Firefox+Pango to render MathML like Firefox+Xft does.
1521
1522 2006-08-22  Behdad Esfahbod  <behdad@gnome.org>
1523
1524         * pango/fonts.c (gravity_map): Rename "Upright" to "Not-Rotated".
1525         Also, reorder the user-friendly names (Not-Rotated, Rotated-Left, ...)
1526         before the enum names (South, East, ...) such that they are used to
1527         describe fonts.
1528
1529 2006-08-21  Behdad Esfahbod  <behdad@gnome.org>
1530
1531         Bug 352114 – pango-1.14: generated docs still contain old example code
1532
1533         * docs/tmpl/pangocairo.sgml: Update cairo example code to that of
1534         examples/cairosimple.c.
1535
1536 2006-08-20  Behdad Esfahbod  <behdad@gnome.org>
1537
1538         Support per-item gravity.
1539
1540         * pango/pango-context.c (update_attr_iterator),
1541         (itemize_state_init), (itemize_state_update_for_new_run),
1542         (itemize_state_process_run): Make per-item gravity work, by setting
1543         gravity into font description before loading fonts.  Also, allow
1544         the context font description to override the gravity (but not
1545         centered_baseline.)
1546
1547         * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Get gravity
1548         from font description, not context.
1549
1550         * pango/pangofc-fontmap.c (fontset_hash_key_equal),
1551         (fontset_hash_key_hash), (fontset_hash_key_copy),
1552         (pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
1553         (pango_fc_font_map_load_fontset),
1554         (pango_fc_font_description_from_pattern): Get gravity from font
1555         description, not context.  Moreover, put it into pattern, and
1556         reconstruct it out of font patterns.
1557
1558         * pango/pangofc-private.h: Define PANGO_FC_GRAVITY, which is the key
1559         we put PangoGravity into an FcPattern under.
1560
1561 2006-08-20  Behdad Esfahbod  <behdad@gnome.org>
1562
1563         * docs/pango-sections.txt:
1564         * docs/tmpl/fonts.sgml:
1565         * pango/fonts.c (pango_font_description_set_gravity),
1566         (pango_font_description_get_gravity),
1567         (pango_font_description_merge_static),
1568         (pango_font_description_better_match),
1569         (pango_font_description_equal), (pango_font_description_hash),
1570         (find_field_any), (pango_font_description_from_string),
1571         (pango_font_description_to_string):
1572         * pango/pango-font.h:
1573         * pango/pango.def:
1574         Add gravity in PangoFontDescription.
1575
1576 2006-08-20  Behdad Esfahbod  <behdad@gnome.org>
1577
1578         * pango/pango-matrix.c (pango_matrix_to_gravity): Correct switched
1579         return value of EAST/WEST.
1580
1581         * pango/pango-types.h (PangoGravity): Add PANGO_GRAVITY_AUTO.
1582         * pango/pango-context.h: Add pango_context_get_gravity().
1583
1584         * examples/renderdemo.c (parse_gravity), (parse_options):
1585         * pango/pango-context.c (pango_context_init),
1586         (update_resolved_gravity), (pango_context_set_matrix),
1587         (pango_context_set_base_gravity), (pango_context_get_gravity),
1588         (itemize_state_init), (get_shaper_and_font):
1589         * pango/pango-layout.c (line_set_resolved_dir):
1590         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
1591         (pango_cairo_fc_font_glyph_extents_cache_init),
1592         (_pango_cairo_fc_font_new):
1593         * pango/pangofc-fontmap.c (pango_fc_make_pattern),
1594         (pango_fc_font_map_load_fontset):
1595         * pango/pango.def:
1596         * docs/pango-sections.txt:
1597         * docs/tmpl/main.sgml:
1598         Update to above.
1599
1600 2006-08-20  Behdad Esfahbod  <behdad@gnome.org>
1601
1602         * examples/renderdemo.c (parse_options):
1603         * examples/renderdemo.h: Change the --rotate parameter to double now
1604         that we depend on a recent-enough glib.
1605
1606 2006-08-20  Behdad Esfahbod  <behdad@gnome.org>
1607
1608         Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
1609
1610         * pango/pango-item.h (PangoAnalysis): Use bitfields for level.
1611
1612 2006-08-17  Hans Breuer  <hans@breuer.org>
1613
1614         * pango/makefile.msc pango/pango.def : updated
1615         * pango/break.c(1630) : error C2059: syntax error : '}' Intializing a 
1616         struct with empty braces is not supported with MSVC, instead use 0.
1617         * pango/pangocairo.def : removed pango_fc_font_(map_)get_type
1618         pangocairo has either win32 fonts or freetype. The former is more usual.
1619         * pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).
1620
1621 2006-08-17  Behdad Esfahbod  <behdad@gnome.org>
1622
1623         Part of Bug 348825 – pango should optimize away calls to FcFontSort as
1624         much as possible
1625
1626         * pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.
1627
1628 2006-08-17  Tor Lillqvist  <tml@novell.com>
1629
1630         * pangowin32.pc.in: Drop @WIN32_LIBS@, no need to search -lgdi32
1631         when linking apps that link with libcairowin32.
1632
1633         * pango/pango.def: Add two symbols.
1634
1635 2006-08-16  Behdad Esfahbod  <behdad@gnome.org>
1636
1637         Bug 351585 – API documentation issues with 2.15 release
1638
1639         * pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
1640         tag to docs.
1641
1642 2006-08-16  Behdad Esfahbod  <behdad@gnome.org>
1643
1644         * pango/pango-layout.c (line_set_resolved_dir): Adjust line
1645         resolved_dir according to context base_gravity, like we do
1646         in itemize_state_add_character().
1647
1648 2006-08-16  Behdad Esfahbod  <behdad@gnome.org>
1649
1650         * examples/viewer-pangocairo.c (render_callback): Render block
1651         progression and line direction arrows, and a base gravity roof-top.
1652
1653         * pango/pango-matrix.c (pango_matrix_to_gravity): New function.
1654
1655         * pango/pango-utils.c (pango_gravity_to_rotation): New function.
1656
1657         * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use
1658         pango_gravity_to_rotation().
1659
1660         * pango/pango-utils.h:
1661         * pango/pango-types.h:
1662         Reorder a bit.
1663
1664         * examples/Makefile.am:
1665         * examples/test-chinese.txt: New test text for Chinese.
1666
1667         * pango/check.defs: New script that checks that all the exported
1668         symbols are listed in the respective .def file. (only checks the
1669         libraries actually built.  No win32 for example.)
1670
1671         * pango/Makefile.am: Hook check.defs as a 'make check' test.
1672
1673         * pango/pango.def:
1674         * pango/pangoft2.def:
1675         * pango/pangocairo.def:
1676         Update.
1677
1678         * docs/tmpl/glyphs.sgml:
1679         * docs/tmpl/main.sgml:
1680         * docs/pango-sections.txt:
1681         Update.
1682
1683 2006-08-16  Behdad Esfahbod  <behdad@gnome.org>
1684
1685         * modules/basic/basic-fc.c (fallback_shape): Remove redundant
1686         positioning block!
1687
1688 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1689
1690         * pango/pango-layout.c (pango_layout_run_get_extents):
1691         * pango/glyphstring.c (pango_glyph_string_extents_range):
1692         Return if none of logical_rect or ink_rect is non-NULL.
1693
1694         * pango/pango-item.h (PangoAnalysis): Add new member centered_baseline
1695         which if set, makes item rendered such that ascent == descent.
1696
1697         * pango/pango-context.c (itemize_state_init),
1698         (itemize_state_add_character):
1699         * pango/pango-renderer.c (pango_renderer_draw_layout_line):
1700         Implement centered_baseline.
1701
1702         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics): When
1703         adjusting ascent/descent for vertical fonts, adjust strikethrough and
1704         underline position too.
1705
1706         * docs/tmpl/main.sgml: Document new struct member.
1707
1708 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1709
1710         * modules/basic/basic-fc.c (basic_engine_shape): Use analysis->gravity
1711         to detect vertical fonts, instead of poking into the font_pattern.
1712
1713 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1714
1715         * modules/basic/basic-fc.c (basic_engine_shape): Always use
1716         fallback shaping for vertical fonts.
1717
1718         * pango/pango-context.c (get_shaper_and_font): Always use basic
1719         shaper for vertical items (east/west gravity).
1720
1721 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1722
1723         * examples/renderdemo.c (do_output): Render the header with SOUTH
1724         gravity.
1725
1726         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
1727         (pango_cairo_fc_font_glyph_extents_cache_init): Center baseline
1728         for east/west gravity in pango_font_metrics too.
1729
1730 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1731
1732         * examples/HELLO.utf8: Remove excess LRM.
1733
1734         * examples/viewer-pangocairo.c (render_callback): Draw baselines in
1735         border-drawing mode.
1736
1737         * pango/pango-layout.c (pango_layout_line_get_extents): Make sure
1738         we set logical_rect.y on empty lines.  Previously empty lines had
1739         wrong baseline.  The code apparently was written like that
1740         intentionally, but I cannot find out why.
1741
1742 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1743
1744         * pango/break.c (pango_get_log_attrs): Remove initliazer members
1745         for analysis, let compiler zero them all.  Fixes compile break after
1746         adding the gravity member inside there.
1747
1748 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1749
1750         * pango/pango-context.c (itemize_state_add_character):
1751         Fix handling of WEST and EAST gravity effect on bidi level.
1752
1753         * pango/pangocairo-fcfont.c
1754         (pango_cairo_fc_font_glyph_extents_cache_init):
1755         For NORTH gravity (upside down text), swap ascent and descent,
1756         and for EAST/WEST, center baseline between ascent/descent.
1757
1758         * pango/shape.c (pango_shape): If glyph width is negative, negate
1759         it and shift glyph by that amount.  This allows having font matrices
1760         that essentially move the glyph origin to the right of the glyph to
1761         still work.
1762
1763 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1764
1765         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
1766         (_pango_cairo_fc_font_new): Move font_matrix rotation into font_new
1767         as we use only rotation and no translation anymore.
1768
1769 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1770
1771         * docs/pango-sections.txt:
1772         * docs/tmpl/main.sgml:
1773         * examples/renderdemo.c (parse_gravity), (parse_options):
1774         * pango/pango-context.c (pango_context_init),
1775         (pango_context_get_base_gravity), (itemize_state_add_character):
1776         * pango/pango-types.h:
1777         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font):
1778         * pango/pangofc-fontmap.c (pango_fc_make_pattern):
1779         Oops.  Exchange west<->east and north<->south gravities.  The gravity
1780         is the side that the glyph sits on.  So, for normal Latin text for
1781         example, gravity is south, not north.
1782
1783 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1784
1785         * examples/renderdemo.c (do_output), (parse_gravity),
1786         (parse_options): Support --gravity.
1787
1788         * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
1789         (compute_glyph_extents), (_pango_cairo_fc_font_new): Load rotated
1790         scaled_fonts to handle gravity.
1791
1792         * pango/pangofc-fontmap.c (pango_fc_make_pattern),
1793         (pango_fc_font_map_get_patterns), (pango_fc_font_map_load_fontset):
1794         Set FC_VERTICAL_LAYOUT on West and East gravity.
1795
1796 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1797
1798         * pango/pango-context.c (itemize_state_process_run):
1799         Add FIXME note about handling item gravity.
1800
1801         * pango/pangofc-fontmap.c (fontset_hash_key_equal),
1802         (fontset_hash_key_hash), (fontset_hash_key_copy),
1803         (pango_fc_font_map_get_patterns): Add gravity into the hask key.
1804
1805 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1806
1807         * pango/pango-item.h: Add a gravity member to PangoItem, and
1808
1809         * pango/pango-context.c (itemize_state_init),
1810         (itemize_state_add_character): Propagate context base_gravity
1811         into items.
1812
1813 2006-08-15  Behdad Esfahbod  <behdad@gnome.org>
1814
1815         * pango/pango-types.h: Add enum PangoGravity.
1816
1817         * pango/pango-context.h:
1818         * pango/pango-context.c (pango_context_set_base_gravity),
1819         (pango_context_get_base_gravity): New functions.
1820
1821         * pango/pango.def:
1822         * docs/pango-sections.txt: Hook new API.
1823
1824 Local Variables:
1825 coding: utf-8
1826 End:
1827 vim: encoding=utf-8: