1 2007-02-26 Behdad Esfahbod <behdad@gnome.org>
3 * === Released 1.16.0 ===
5 * configure.in: Version 1.16.0
7 * configure.in: Require cairo 1.2.6 because of its important fixes.
13 2007-02-20 Stefan Kost <ensonic@users.sf.net>
15 Xrefs for glib and cairo in the docs. Add object hierarchy to the docs.
19 * docs/pango-docs.sgml:
21 2007-02-18 Behdad Esfahbod <behdad@gnome.org>
23 Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
24 Patch from Loïc Minier
26 * configure.in: Add xrender to pkg-config requirements for pangoxft.
28 2007-02-18 Behdad Esfahbod <behdad@gnome.org>
30 Bug 409212 – Missing link flag prevents build with "-z defs" ld flags
31 Patch from Loïc Minier
33 * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD.
35 2007-02-16 Behdad Esfahbod <behdad@gnome.org>
37 Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on
40 * pango/pango-context.c (itemize_state_process_run): Don't choose
41 shaper for ASCII space char.
43 2007-02-16 Behdad Esfahbod <behdad@gnome.org>
45 Bug 407087 – autogen.sh wants automake-1.7
47 * autogen.sh: Require automake 1.9, like configure.in does.
49 2007-02-12 Behdad Esfahbod <behdad@gnome.org>
51 * === Released 1.15.6 ===
53 * configure.in: Version 1.15.6
57 2007-02-13 Owen Taylor <otaylor@redhat.com>
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)
64 2007-01-31 Tor Lillqvist <tml@novell.com>
66 * pango/Makefile.am: Use pangocairo.def only on Win32, not
67 Cygwin. (#402373, "paul")
69 2007-01-30 Tor Lillqvist <tml@novell.com>
71 * pango-zip.sh.in: Include also the COPYING file in the zipfiles.
73 * Makefile.am (EXTRA_DIST): Include just pango-zip.sh.in in the
74 tarball, not pango-zip.sh.
76 2007-01-24 Behdad Esfahbod <behdad@gnome.org>
78 * pango/fonts.c (pango_font_get_metrics),
79 (pango_font_get_font_map): Remove PANGO_IS_FONT() check. Just
82 2007-01-23 Behdad Esfahbod <behdad@gnome.org>
84 Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE'
85 undeclared (first use in this function)
87 * pango/pangoft2.c (pango_ft2_font_get_face): Don't use FC_HINT_STYLE
88 if it's not defined (old fontconfig versions).
90 2007-01-22 Behdad Esfahbod <behdad@gnome.org>
92 * === Released 1.15.5 ===
94 * configure.in: Version 1.15.5
98 2007-01-22 Behdad Esfahbod <behdad@gnome.org>
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.
105 2007-01-22 Behdad Esfahbod <behdad@gnome.org>
107 * pango/fonts.c (pango_font_get_metrics): Populate metrics for
108 NULL/broken fonts. Now our glyph boxes have underlines too. Yay!
110 2007-01-21 Tor Lillqvist <tml@novell.com>
112 * configure.in: Add AC_MSG_RESULT([no]) to the failed branch of
113 PKG_CHECK_MODULES tests to make the output from configure
116 2007-01-21 Behdad Esfahbod <behdad@gnome.org>
118 Bug 398238 – pangorc file missing from tests directory
120 * pango-view/Makefile.am:
122 Don't use $<. Doesn't work with Sun's make.
124 2007-01-18 Behdad Esfahbod <behdad@gnome.org>
126 * configure.in: Require automake 1.9.
128 2007-01-18 Behdad Esfahbod <behdad@gnome.org>
130 * pango/pangoft2.c (pango_ft2_font_get_face): Respect FC_HINT_STYLE.
131 Patch has been in Fedora for ages.
133 2007-01-17 Behdad Esfahbod <behdad@gnome.org>
135 * === Released 1.15.4 ===
137 * configure.in: Version 1.15.4
141 2007-01-17 Behdad Esfahbod <behdad@gnome.org>
143 Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY
145 * modules/basic/basic-atsui.c (set_glyph): Handle
146 kATSDeletedGlyphcode.
148 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
150 * pango-view/viewer-render.c (make_layout): Fix typo when rounding
153 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
155 Bug 397337 – Use is_ellipsized and is_wrapped to optimize property
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.
162 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
164 *.c, *.h: Removed spaces followed b tabs.
166 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
168 *.c, *.h: Replace preceding sequences of 8 spaces with tabs.
170 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
172 * examples/pangowin32tobmp.c (SaveBitmap):
173 * modules/tibetan/tibetan-fc.c:
174 Replace C++-style // comments with C-style /* */ ones.
176 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
178 *.c, *.h: Drop trailing whitespace.
180 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
182 Bug 328585 – Need to know if a layout has unknown glyphs
183 Patch from LingNing Zhang
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:
192 pango_layout_get_unknown_glyphs_count()
195 * docs/tmpl/layout.sgml:
196 * docs/pango-sections.txt:
199 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
201 Part of Bug 326693 – PangoLayouts should be query-able about their
202 effective properties (width / wrapped / ellipsized / etc)
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),
208 * pango/pango-layout.h:
211 pango_layout_is_wrapped()
214 * docs/tmpl/layout.sgml:
215 * docs/pango-sections.txt:
218 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
220 Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return
223 * pango/pango-layout.c (pango_layout_is_ellipsized): Use
224 g_return_val_if_fail() instead of g_return_if_fail().
226 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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.
232 * pango/ellipsize.c (remove_one_span): Skip over zero-width clusters,
233 otherwise ellipsization will stop at a zero-width cluster.
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
240 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
242 * examples/cairotwisted.c (point_on_path), (draw_text),
243 (draw_twisted), (draw_dream), (draw_wow), (main):
244 Improve text-on-path example.
246 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
248 * configure.in: Generate .bz2 tarball instead of .gz.
250 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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].
265 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
267 * pango-view/Makefile.am: Rename HELLO.utf8 and GLASS.utf8 to
268 HELLO.txt and GLASS.txt.
270 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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:
303 Move into pango-view/
307 * examples/Makefile.am:
308 * pango-view/Makefile.am:
311 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
313 * examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType.
315 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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
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):
330 pango_layout_is_ellipsized()
333 * docs/tmpl/layout.sgml:
334 * docs/pango-sections.txt:
337 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
339 * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix
340 background rendering being off in presence of rise attributes.
342 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
344 * pango/pango-context.c (itemize_state_init),
345 (itemize_state_update_for_new_run): Update centered_baseline in
346 presence of gravity attributes.
348 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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().
359 2007-01-16 Behdad Esfahbod <behdad@gnome.org>
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:
366 pango_attr_gravity_new()
367 pango_attr_gravity_hint_new()
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.
374 * pango/pango-utils.h:
375 * pango/pango-utils.c:
380 * pango/pango-markup.c (span_parse_func): Parse gravity and
381 gravity_hint attributes for <span>. Optimize a bit.
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>.
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().
393 * modules/basic/basic-fc.c (basic_engine_shape):
394 * pango/pangofc-fontmap.c (pango_fc_make_pattern):
395 Use PANGO_GRAVITY_IS_VERTICAL().
398 * docs/pango-sections.txt:
399 * docs/tmpl/text-attributes.sgml:
400 * docs/tmpl/utils.sgml:
403 2007-01-15 Behdad Esfahbod <behdad@gnome.org>
405 Bug 323173 – Add layout of mixed direction text for vertical layout
407 * pango/pango-gravity.h:
408 * pango/pango-gravity.c:
409 Moved gravity stuff here. New public API:
412 pango_gravity_get_for_matrix()
413 pango_gravity_get_for_script()
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:
420 pango_context_set_gravity_hint()
421 pango_context_get_gravity_hint()
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
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.
444 * examples/renderdemo.c (do_output), (parse_gravity_hint),
446 Support gravity hint.
448 * examples/test-mixed.txt:
449 New test, mixed Latin, Arabic, Chinese text.
451 2007-01-15 Tor Lillqvist <tml@novell.com>
453 * configure.in: Don't check for X and don't warn about missing
454 fontconfig on Win32. (#392628, Yevgen Muntyan)
456 2007-01-15 Tor Lillqvist <tml@novell.com>
458 * configure.in: Automatically use -mms-bitfields on Windows when
459 building with gcc. (#394453)
461 2007-01-13 Hans Breuer <hans@breuer.org>
463 * pango/makefile.msc pango/opentype/makefile.msc : updated
465 2007-01-08 Behdad Esfahbod <behdad@gnome.org>
467 * === Released 1.15.3 ===
469 * configure.in: Version 1.15.3
473 2007-01-08 Behdad Esfahbod <behdad@gnome.org>
475 Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
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.
488 2007-01-07 Behdad Esfahbod <behdad@gnome.org>
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:
507 * pango/glyphstring.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:
533 * pango/pangowin32-fontcache.c:
534 * pango/pangowin32-fontmap.c:
535 * pango/pangowin32.c:
536 * pango/pangox-fontmap.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.
544 2007-01-07 Tor Lillqvist <tml@novell.com>
546 * modules/basic/Makefile.am: Fix build on Win32 outside
547 srcdir. (#392789, J. Ali Harlow)
549 2007-01-04 Behdad Esfahbod <behdad@gnome.org>
551 * pango/pango-utils.c: Improve docs, and mention
552 g_unichar_iszerowidth().
554 2007-01-04 Behdad Esfahbod <behdad@gnome.org>
556 Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21
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()
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()
571 * pango/pango-layout.c (pango_layout_get_pixel_extents),
572 (pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels().
574 * pango/pangocairo-fcfont.c:
575 (pango_cairo_fc_font_glyph_extents_cache_init),
576 (compute_glyph_extents): Use pango_units_from_double().
578 * examples/renderdemo.c (do_output): Use
579 pango_matrix_transform_pixel_rectangle();
582 * docs/pango-sections.txt:
583 * docs/tmpl/glyphs.sgml: Update.
585 2007-01-03 Changwoo Ryu <cwryu@debian.org>
587 Bug 388702 – Crash when there's no Hangul glyph in the font.
589 * modules/hangul/hangul-fc.c (render_syllable): Do not try to
590 render unknown syllable glyphs as jamos.
592 * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
593 remaining string is a syllable.
595 Bug 388581 - Every last Hangul syllable is decomposed to jamos.
597 * modules/hangul/hangul-fc.c (hangul_engine_shape): Check if the
598 remaining string is a syllable.
600 2007-01-03 Behdad Esfahbod <behdad@gnome.org>
602 Bug 390877 – Don't feed pango-features.h to glib-mkenums
603 Patch from Yevgen Muntyan
605 * pango/Makefile.am: Move pango-features.h to pangoinclude_HEADERS.
607 2006-12-23 Behdad Esfahbod <behdad@gnome.org>
609 Bug 384543 – FcFontMatch misuse
611 * pango/pangofc-fontmap.c (pango_fc_face_describe):
612 Call FcConfigSubstitute and FcDefaultSubstitute before calling
615 * pango/pangoft2.c (load_fallback_face):
616 Call _pango_ft2_font_map_default_substitute().
618 * pango/pangocairo-fcfontmap.c
619 (pango_cairo_fc_font_map_context_substitute):
620 Handle the case of context == NULL.
622 2006-12-23 Behdad Esfahbod <behdad@gnome.org>
624 * pango/pango-utils.c (pango_language_get_default): Improve docs.
626 2006-12-20 Behdad Esfahbod <behdad@gnome.org>
628 * === Released 1.15.2 ===
630 * configure.in: Version 1.15.2
634 2006-12-19 Behdad Esfahbod <behdad@gnome.org>
636 Bug 326099 – Setting width, indentation and ellipsizing doesn't work
639 * pango/ellipsize.c (_pango_layout_line_ellipsize): Account for
640 indentation when deciding what width to ellipsize for.
642 * pango/pango-layout.c (get_alignment): Don't bother about
643 conditioning on the line direction for center alignment.
645 2006-12-20 Changwoo Ryu <cwryu@debian.org>
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
657 2006-12-17 Behdad Esfahbod <behdad@gnome.org>
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.
663 2006-12-15 Frederic Crozat <fcrozat@mandriva.com>
665 Bug 385478 – Fix tests on OPD platform
667 * pango/check.defs: Fix tests on OPD platform to report correct
670 2006-12-13 Behdad Esfahbod <behdad@gnome.org>
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.
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.
680 2006-12-13 Gwenole Beauchesne <gbeauchesne@mandriva.com>
682 Bug 385478 – Fix tests on OPD platform
684 * pango/check.defs: Improve symbols extraction for OPD-based
685 platforms (e.g. ppc64, ia64).
687 2006-12-13 Behdad Esfahbod <behdad@gnome.org>
689 Bug 385321 – Worst case expansion for Sinhala
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.
696 2006-12-08 Behdad Esfahbod <behdad@gnome.org>
698 Red Hat Bug 211574: [hi/ml/si_LK] cursor naviation is wrong when
700 Patch from LingNing Zhang
702 * modules/indic/indic-lang.c (indic_engine_break): Handle cursor
703 movement around ZWJ and ZWNJ.
705 2006-12-07 Behdad Esfahbod <behdad@gnome.org>
707 Red Hat Bug 216424: [te_IN] pango - consonant + dependent vowel (ai)
708 Composed char is not rendering properly
709 Patch from LingNing Zhang
711 * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!
713 2006-12-07 Behdad Esfahbod <behdad@gnome.org>
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.
723 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
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.
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().
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.
744 * examples/renderdemo.c (show_version):
745 If run-time Pango lib version is different than the compile-time one,
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).
756 * docs/check.docs: Test to check that all symbols are documented and
757 properly hooked into documentation tree.
760 * pango/pangoft2.rc.in:
761 * pango/pangowin32.rc.in:
762 Update, reflecting some internal symbol changes.
764 * pango/check.defs: Improve.
766 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
768 * examples/renderdemo.c (do_output): Set context language to
769 pango_language_get_default() instead of hardcoding "en-US".
771 * pango/pango-utils.c (pango_language_get_default): Improve docs.
773 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
775 Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used
776 Patch from LingNing Zhang
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):
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
790 pango_context_set_language (context, pango_language_get_default());
792 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
794 Bug 373856 – Wish: Function to convert a GdkColor to a string
795 Patch from Matthew Barnes
797 * docs/pango-sections.txt:
798 * docs/tmpl/text-attributes.sgml:
799 * pango/pango-attributes.h:
801 * pango/pango-color.c (pango_color_to_string):
802 New public function pango_color_to_string().
804 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
806 Red Hat Bug 216850: Issue in combination with vowels (ml_IN)
807 Patch from LingNing Zhang
809 * modules/indic/indic-ot.c (indic_ot_reorder): Fix it!
811 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
813 Bug 382437 – tests/testboundaries fails
815 * configure.in: Require libthai >= 0.1.7
817 2006-12-06 Behdad Esfahbod <behdad@gnome.org>
819 * examples/Makefile.am:
820 * examples/test-gurmukhi.txt:
821 Gurmukhi test text from supreet sethi.
823 2006-12-05 Behdad Esfahbod <behdad@gnome.org>
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):
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)!
844 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
846 * === Released 1.15.1 ===
848 * configure.in: Version 1.15.1
852 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
854 Bug 135683 – Cache glyphstring extents
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
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.
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.
874 * pango/pango-layout-private.h: Add pango_layout_iter_get_line()
875 duplicate _pango_layout_iter_get_line_readonly() that doesn't leak
878 * pango/pango-renderer.c (pango_renderer_draw_layout): Use
879 _pango_layout_iter_get_line_readonly().
881 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
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.
888 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
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
900 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
902 Red Hat Bug 211964: [ta] Rendering issue with Tamil
903 Patch from LingNing Zhang
905 * modules/indic/indic-ot-class-tables.c (indic_ot_find_syllable):
906 Handle 2 split matra.
908 2006-12-04 Behdad Esfahbod <behdad@gnome.org>
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.
920 2006-12-01 Behdad Esfahbod <behdad@gnome.org>
922 Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output
923 Patch from LingNing Zhang
925 * modules/indic/indic-ot.c (indic_ot_reorder): Handle ZWNJ.
927 2006-12-01 Behdad Esfahbod <behdad@gnome.org>
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.
936 2006-11-30 Behdad Esfahbod <behdad@gnome.org>
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.
944 2006-11-30 Behdad Esfahbod <behdad@gnome.org>
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.)
951 2006-11-30 Behdad Esfahbod <behdad@gnome.org>
953 * pango/pangocairo-render.c (acquire_renderer), (release_renderer):
954 Use G_LOCK_* wrappers for GStaticMutex.
956 2006-11-28 Behdad Esfahbod <behdad@gnome.org>
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.
966 2006-11-28 Behdad Esfahbod <behdad@gnome.org>
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.
992 2006-11-27 Behdad Esfahbod <behdad@gnome.org>
994 Bug 371388 – Add Thai langauage engine
995 Patch from Theppitak Karoonboonyanan
997 * configure.in: Look for libthai and enable thai-lang module.
998 * modules/thai/Makefile.am: Hook thai-lang module.
1000 * modules/thai/thai-lang.c: New Thai language engine that uses libthai
1001 to do dictionary-based Thai line-breaking.
1003 * examples/test-thai.txt: Improved.
1005 2006-11-25 Behdad Esfahbod <behdad@gnome.org>
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.
1014 2006-11-22 Behdad Esfahbod <behdad@gnome.org>
1016 * examples/HELLO.utf8:
1017 * examples/Makefile.am:
1018 * examples/test-lao.txt:
1019 Add Lao text samples from Anousak Souphavanh.
1021 2006-11-22 Behdad Esfahbod <behdad@gnome.org>
1023 Bug 377975 – bug in _pango_glyph_item_iter_next_cluster
1025 * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
1026 (_pango_glyph_item_iter_prev_cluster): Fix condition for ending a
1029 2006-11-21 Behdad Esfahbod <behdad@gnome.org>
1031 * pango/pango-glyph-item.c: Fix typo in private docs.
1033 2006-11-20 Behdad Esfahbod <behdad@gnome.org>
1035 Bug 356666 – pango is not thread-safe, nautilus does not honour that
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.
1043 2006-11-14 Behdad Esfahbod <behdad@gnome.org>
1045 Bug 352795 – configure.in: Bug in "checking Whether to write
1046 dependencies into .pc files"
1048 * configure.in: Make libtool magic robust.
1050 2006-11-14 Behdad Esfahbod <behdad@gnome.org>
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
1057 2006-11-08 Roozbeh Pournader <roozbeh@farsiweb.info>
1059 Bug 350132 – backspacing doesn't work properly for Arabic
1061 * modules/arabic/arabic-lang.c: Add more backspace_deletes_character
1064 2006-11-08 Behdad Esfahbod <behdad@gnome.org>
1066 Bug 369670 – Crash when selecting text using the keyboard
1068 * pango/pango-layout.c (pango_layout_move_cursor_visually): Don't
1069 index vis2log_map[] with a negative value.
1071 2006-11-02 Behdad Esfahbod <behdad@gnome.org>
1073 Bug 369670 – Checked g_free calls
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.
1082 2006-10-24 Behdad Esfahbod <behdad@gnome.org>
1084 * examples/Makefile.am (cairosimple_LDADD): Do not require pangoft2
1087 2006-10-24 Behdad Esfahbod <behdad@gnome.org>
1089 * pango/pangoft2-fontmap.c (pango_ft2_font_map_class_init),
1090 (pango_ft2_font_map_get_resolution): Implement get_resolution for FT2
1093 2006-10-18 Behdad Esfahbod <behdad@gnome.org>
1095 * modules/arabic/arabic-lang.c: Do not include arabic-ot.h.
1097 2006-10-18 Behdad Esfahbod <behdad@gnome.org>
1099 * examples/test-thai.txt: Replace by a better one.
1101 2006-10-17 Behdad Esfahbod <behdad@gnome.org>
1103 * examples/Makefile.am:
1104 * examples/test-thai.txt: Added.
1106 2006-10-16 Behdad Esfahbod <behdad@gnome.org>
1108 * === Released 1.15.0 ===
1110 * configure.in: Version 1.15.0
1114 2006-10-16 Behdad Esfahbod <behdad@gnome.org>
1116 Bug 330407 – Multiple dependant vowel signs (indic) displayed as one
1117 Patch from LingNing Zhang
1119 * modules/indic/indic-ot-class-tables.c: Change state transition for
1122 2006-10-13 Behdad Esfahbod <behdad@gnome.org>
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.
1139 2006-10-13 Behdad Esfahbod <behdad@gnome.org>
1141 Bug 361938 – Can't include *-lang modules (./configure
1142 --with-included-modules fails)
1145 * modules/Makefile.am:
1147 * pango/Makefile.am:
1148 * pango/modules.c (init_modules):
1150 Make included language engines work.
1152 2006-10-12 Behdad Esfahbod <behdad@gnome.org>
1154 Bug 353877 – Sinhala is_cursor_position and
1155 backspace_deletes_character issues
1156 Patch from Akira TAGOH
1159 * modules/indic/Makefile.am:
1160 * modules/indic/indic-lang.c: Add a simple Indic language engine.
1162 2006-10-12 Behdad Esfahbod <behdad@gnome.org>
1164 Bug 358224 – Telugu Character U+0C31 does not render its below-base
1166 Patch from Rahul Bhalerao
1168 * modules/indic/indic-ot-class-tables.c: Change the class of U+0C31
1169 from '_ct' to '_bb'.
1171 2006-10-12 Behdad Esfahbod <behdad@gnome.org>
1173 Bug 358174 – Reph and Vattu forms of Assamese character RA(U+09F0) are
1175 Patch from Rahul Bhalerao
1177 * modules/indic/indic-ot-class-tables.c: Change the class bit of
1178 U+09F0 from '_ct' to '_rv'.
1180 2006-10-07 Behdad Esfahbod <behdad@gnome.org>
1182 * examples/Makefile.am:
1183 * examples/test-latin.txt: Add part of Jabberwocky as Latin test text.
1185 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
1187 Bug 356685 – [or_IN] Rendering of consonant+0x0B4D+0x0B2F is wrong
1188 Patch from Rahul Bhalerao
1190 * modules/indic/indic-ot-class-tables.c: Change _ct to _bb for
1191 various Orya characters.
1193 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
1195 Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30)
1196 Patch from Rahul Bhalerao
1198 * modules/indic/indic-ot-class-tables.c:
1199 * modules/indic/indic-ot.c (indic_ot_reorder):
1202 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
1204 Bug 359043 – PangoRenderer does not show in API docs
1206 * docs/pango-docs.sgml: Hook PangoRenderer docs.
1208 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
1210 Bug 359046 – renderdemo.c unconditionally use GLib 2.12
1212 * configure.in: Require glib 2.12, for Unicode 5.0 data files.
1214 2006-09-25 Behdad Esfahbod <behdad@gnome.org>
1216 Bug 357686 – pangocairo-font.c: illegal g_object_unref in
1217 pango_cairo_font_get_hex_box_info
1219 * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Remove
1220 wrong g_object_unref (fontmap).
1222 2006-09-22 Behdad Esfahbod <behdad@gnome.org>
1224 Bug 357228 – Remove aix specific hack from configure.in
1226 * configure.in: Remove hack added back 2002 that is not required
1229 2006-09-18 Behdad Esfahbod <behdad@gnome.org>
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.
1235 2006-09-18 Behdad Esfahbod <behdad@gnome.org>
1237 Part of Bug 350132 – backspacing doesn't work properly for Arabic
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
1246 2006-09-18 Behdad Esfahbod <behdad@gnome.org>
1248 * tools/gen-script-table.pl:
1249 * pango/pango-script-table.h:
1250 * pango/pango-script.c (pango_script_for_unichar): Minor
1253 * tests/testscript.c (test_script_lookup): Update to pass.
1255 2006-09-18 Behdad Esfahbod <behdad@gnome.org>
1257 * pango/pangoft2-render.c (pango_ft2_font_render_glyph): Remove a
1258 couple of unnecessary static variables.
1260 2006-09-18 Behdad Esfahbod <behdad@gnome.org>
1262 Bug 356194 – more pango_get_log_attrs problems
1264 * pango/break.c (tailor_break): New function. Simply calls the
1265 script_break() function of the language engine, if any.
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.
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.
1274 * pango/break.c (pango_get_log_attrs): Call pango_default_break() on
1275 the entire paragraph, and call tailor_segment on each segment.
1277 * pango/pango-engine.h: Update docs about *script_break()'s behavior.
1279 2006-09-15 Behdad Esfahbod <behdad@gnome.org>
1281 Bug 355820 – pango_get_log_attrs broken
1283 * pango/break.c (break_it), (pango_get_log_attrs): Use PangoScriptIter
1284 to itemize text, instead of pango_script_for_unichar().
1286 2006-09-15 Behdad Esfahbod <behdad@gnome.org>
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.
1292 2006-09-14 Behdad Esfahbod <behdad@gnome.org>
1294 * modules/indic/indic-ot-class-tables.c: Change enums to macros, to
1295 get in synch with ICU shaper. No functional changes.
1297 2006-09-14 Behdad Esfahbod <behdad@gnome.org>
1299 * modules/indic/indic-ot.h: Change some enums to macros, to get in
1300 synch with ICU shaper. No functional changes.
1302 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1304 Bug 351223 – the conjuction of Con + 0x0d4d +0x0d31 of Malayalam is
1306 Patch from LingNing Zhang
1308 * modules/indic/indic-ot.c (swapChars), (indic_ot_reorder): Special
1309 case the above case.
1311 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1313 Bug 355750 – The glyphs of the conjuctions about Cons+0x0d4d+0x0d32 of
1315 Patch from LingNing Zhang
1317 * modules/indic/indic-ot-class-tables.c (mlymCharClasses): Change
1318 U+0D32 from _bb to _ct.
1320 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1322 Bug 349876 – U+0x0904 of Devanagari need be "independent vowel", but
1323 it is "reserved" in Pango
1324 Patch from LingNing Zhang
1326 * modules/indic/indic-ot-class-tables.c (devaCharClasses): Change
1327 U+0904 from _xx to _iv.
1329 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1331 Bug 355550 – Miscalculation of logical attributes in
1332 pango_get_log_attrs()
1333 Patch from Theppitak Karoonboonyanan
1335 * pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
1338 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1340 * pango/modules.c (pango_engine_pair_get_engine): Err about failing to
1341 load engine only once per module.
1343 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1345 Bug 355697 – The IndicOTClassTable of Oriya has a error.
1347 * modules/indic/indic-ot-class-tables.c: Compute lastChar from
1348 charClasses table size to avoid out-of-synch.
1350 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1352 Part of Bug 355782 – Misaligned extents in pango
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
1362 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1364 "Thou shalt not touch code that does not fit in thy brain."
1366 * pango/pango-layout.c (update_cluster): Add cluster_start_index
1369 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1371 * pango/pango-engine.h: Remove unnecessary 'static' in type definition
1372 that causes a relocation.
1374 * pango/shape.c (pango_shape): Make sure last_cluster is invalid.
1376 2006-09-13 Behdad Esfahbod <behdad@gnome.org>
1378 Part of Bug 355782 – Misaligned extents in pango
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.
1384 * pango/pango-layout.c (update_cluster): Remove the
1385 cluster_start_index parameter and use iter->cluster_start instead.
1387 * pango/pango-layout.c (pango_layout_iter_copy): Fix typo in copying
1388 iter->cluster_width.
1390 * pango/pango-layout.c (pango_layout_iter_get_cluster_extents): Add
1391 an assert to make sure iter->cluster_width is correctly set.
1393 * pango/pango-layout.c (pango_layout_iter_get_char_extents): Remove
1394 assert that was readded above to check more cases.
1396 2006-09-12 Behdad Esfahbod <behdad@gnome.org>
1398 Bug 355605 – hexbox with 0000 in it
1400 * modules/hangul/hangul-fc.c (render_syllable): If decomposition
1401 fails, backup and add a single hexbox glyph for the original
1404 2006-09-11 Behdad Esfahbod <behdad@gnome.org>
1406 Bug 355435 – Invalid calls to pango_map_get_engine()
1407 Patch from Theppitak Karoonboonyanan
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!
1416 2006-09-11 Behdad Esfahbod <behdad@gnome.org>
1418 Bug 347146 – underline/overstrike spaces
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
1425 * pango/pango-layout.c (pango_layout_run_get_extents): Use logical
1426 rect for underline/strikethrough, and reflect that in run ink extents.
1428 * pango/pango-layout.c (pango_layout_line_get_extents): Don't
1429 let runs with empty ink extents affect total ink extents.
1431 2006-09-10 Behdad Esfahbod <behdad@gnome.org>
1433 Bug 352535 – Ink extents of empty glyph
1435 * pango/pangocairo-fcfont.c
1436 (pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for
1439 2006-09-08 Behdad Esfahbod <behdad@gnome.org>
1441 * examples/cairotwisted.c: A simple text-on-path example using
1444 * examples/Makefile.am: Update.
1446 2006-09-08 Behdad Esfahbod <behdad@gnome.org>
1448 * pango/fonts.c (find_field_any): Parse style. It was dropped when
1449 I was adding support for gravity.
1451 2006-08-31 Behdad Esfahbod <behdad@gnome.org>
1453 * pango/pango-layout.c, pango/pangox-fontmap.c, pango/pangox.c:
1454 Minor doc syntax update.
1456 2006-08-30 Behdad Esfahbod <behdad@gnome.org>
1458 Bug 148732 – cursor movenmet is not correct in gedit when I type
1461 * pango/pango-layout.c (pango_layout_move_cursor_visually): Update
1462 locally cached line properties upon line change.
1464 2006-08-30 Behdad Esfahbod <behdad@gnome.org>
1466 * modules/Makefile.am (pango.modules): Improve the conditional to
1467 ignore included modules.
1469 2006-08-30 Behdad Esfahbod <behdad@gnome.org>
1471 Bug 352811 – SIGSEGV with pango(cairo)-view on HP-UX
1473 * modules/Makefile.am (pango.modules): Don't hardcode .so extension.
1474 Look for .la instead.
1476 2006-08-30 Behdad Esfahbod <behdad@gnome.org>
1478 Bug 353525 – libpangoft2-1.0.so.0: undefined reference to
1479 `pango_font_description_get_gravity'
1481 * examples/Makefile.am: Explicitly link to the just built pangoft2 for
1482 pangocairo uses, like we already do for pangoxft.
1484 2006-08-28 Tor Lillqvist <tml@novell.com>
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.
1490 2006-08-26 Behdad Esfahbod <behdad@gnome.org>
1492 Bug 349813 – typo in docs for pango_layout_move_cursor_visually
1494 * pango/pango-layout.c (pango_layout_move_cursor_visually): Fix typo.
1496 2006-08-23 Tor Lillqvist <tml@novell.com>
1499 * examples/Makefile.am
1501 * examples/pangowin32tobmp.c: Rename pango/testfonts.c to
1502 examples/pangowin32tobmp.c. (#104151)
1504 2006-08-22 Behdad Esfahbod <behdad@gnome.org>
1506 * pango/pango-context.c (itemize_state_process_run): Replace (!isgraph
1507 && !isspace) with (!isprint) which is equivalent. Also, update
1510 2006-08-22 Behdad Esfahbod <behdad@gnome.org>
1512 Part of Bug 145275 – Font selection for space characters
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.
1522 2006-08-22 Behdad Esfahbod <behdad@gnome.org>
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
1529 2006-08-21 Behdad Esfahbod <behdad@gnome.org>
1531 Bug 352114 – pango-1.14: generated docs still contain old example code
1533 * docs/tmpl/pangocairo.sgml: Update cairo example code to that of
1534 examples/cairosimple.c.
1536 2006-08-20 Behdad Esfahbod <behdad@gnome.org>
1538 Support per-item gravity.
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
1547 * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Get gravity
1548 from font description, not context.
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.
1558 * pango/pangofc-private.h: Define PANGO_FC_GRAVITY, which is the key
1559 we put PangoGravity into an FcPattern under.
1561 2006-08-20 Behdad Esfahbod <behdad@gnome.org>
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:
1574 Add gravity in PangoFontDescription.
1576 2006-08-20 Behdad Esfahbod <behdad@gnome.org>
1578 * pango/pango-matrix.c (pango_matrix_to_gravity): Correct switched
1579 return value of EAST/WEST.
1581 * pango/pango-types.h (PangoGravity): Add PANGO_GRAVITY_AUTO.
1582 * pango/pango-context.h: Add pango_context_get_gravity().
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):
1596 * docs/pango-sections.txt:
1597 * docs/tmpl/main.sgml:
1600 2006-08-20 Behdad Esfahbod <behdad@gnome.org>
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.
1606 2006-08-20 Behdad Esfahbod <behdad@gnome.org>
1608 Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
1610 * pango/pango-item.h (PangoAnalysis): Use bitfields for level.
1612 2006-08-17 Hans Breuer <hans@breuer.org>
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).
1621 2006-08-17 Behdad Esfahbod <behdad@gnome.org>
1623 Part of Bug 348825 – pango should optimize away calls to FcFontSort as
1626 * pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.
1628 2006-08-17 Tor Lillqvist <tml@novell.com>
1630 * pangowin32.pc.in: Drop @WIN32_LIBS@, no need to search -lgdi32
1631 when linking apps that link with libcairowin32.
1633 * pango/pango.def: Add two symbols.
1635 2006-08-16 Behdad Esfahbod <behdad@gnome.org>
1637 Bug 351585 – API documentation issues with 2.15 release
1639 * pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
1642 2006-08-16 Behdad Esfahbod <behdad@gnome.org>
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().
1648 2006-08-16 Behdad Esfahbod <behdad@gnome.org>
1650 * examples/viewer-pangocairo.c (render_callback): Render block
1651 progression and line direction arrows, and a base gravity roof-top.
1653 * pango/pango-matrix.c (pango_matrix_to_gravity): New function.
1655 * pango/pango-utils.c (pango_gravity_to_rotation): New function.
1657 * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use
1658 pango_gravity_to_rotation().
1660 * pango/pango-utils.h:
1661 * pango/pango-types.h:
1664 * examples/Makefile.am:
1665 * examples/test-chinese.txt: New test text for Chinese.
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.)
1671 * pango/Makefile.am: Hook check.defs as a 'make check' test.
1674 * pango/pangoft2.def:
1675 * pango/pangocairo.def:
1678 * docs/tmpl/glyphs.sgml:
1679 * docs/tmpl/main.sgml:
1680 * docs/pango-sections.txt:
1683 2006-08-16 Behdad Esfahbod <behdad@gnome.org>
1685 * modules/basic/basic-fc.c (fallback_shape): Remove redundant
1688 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
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.
1694 * pango/pango-item.h (PangoAnalysis): Add new member centered_baseline
1695 which if set, makes item rendered such that ascent == descent.
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.
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.
1706 * docs/tmpl/main.sgml: Document new struct member.
1708 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1710 * modules/basic/basic-fc.c (basic_engine_shape): Use analysis->gravity
1711 to detect vertical fonts, instead of poking into the font_pattern.
1713 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1715 * modules/basic/basic-fc.c (basic_engine_shape): Always use
1716 fallback shaping for vertical fonts.
1718 * pango/pango-context.c (get_shaper_and_font): Always use basic
1719 shaper for vertical items (east/west gravity).
1721 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1723 * examples/renderdemo.c (do_output): Render the header with SOUTH
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.
1730 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1732 * examples/HELLO.utf8: Remove excess LRM.
1734 * examples/viewer-pangocairo.c (render_callback): Draw baselines in
1735 border-drawing mode.
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.
1742 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
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.
1748 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1750 * pango/pango-context.c (itemize_state_add_character):
1751 Fix handling of WEST and EAST gravity effect on bidi level.
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.
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
1763 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
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.
1769 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
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.
1783 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1785 * examples/renderdemo.c (do_output), (parse_gravity),
1786 (parse_options): Support --gravity.
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.
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.
1796 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1798 * pango/pango-context.c (itemize_state_process_run):
1799 Add FIXME note about handling item gravity.
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.
1805 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1807 * pango/pango-item.h: Add a gravity member to PangoItem, and
1809 * pango/pango-context.c (itemize_state_init),
1810 (itemize_state_add_character): Propagate context base_gravity
1813 2006-08-15 Behdad Esfahbod <behdad@gnome.org>
1815 * pango/pango-types.h: Add enum PangoGravity.
1817 * pango/pango-context.h:
1818 * pango/pango-context.c (pango_context_set_base_gravity),
1819 (pango_context_get_base_gravity): New functions.
1822 * docs/pango-sections.txt: Hook new API.
1827 vim: encoding=utf-8: