From 37fd4baefa4ba074d2381116008f244dfe90edce Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 2 Mar 2004 00:59:01 +0000 Subject: === Released 1.3.5 === Mon Mar 1 19:24:09 2004 Owen Taylor * === Released 1.3.5 === * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. * NEWS: Update * modules/arabic/arabic-fc.c (arabic_engine_shape): Fix a crash from left-over handling of clusters for non-spacing marks. --- ChangeLog | 14 +++++- ChangeLog.pre-1-10 | 14 +++++- ChangeLog.pre-1-4 | 14 +++++- ChangeLog.pre-1-6 | 14 +++++- ChangeLog.pre-1-8 | 14 +++++- NEWS | 13 +++++- configure.in | 4 +- docs/pango-sections.txt | 14 +++++- docs/tmpl/layout.sgml | 19 ++++++++ docs/tmpl/main.sgml | 24 ++++++++-- docs/tmpl/opentype.sgml | 103 ++++++++++++++++++++++++++++++++++++++++- docs/tmpl/text-attributes.sgml | 9 ++++ modules/arabic/arabic-fc.c | 12 ++--- pango/mini-fribidi/fribidi.c | 7 --- pango/pango-context.c | 1 - 15 files changed, 247 insertions(+), 29 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7e7cc88..556cf47c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Mon Mar 1 19:24:09 2004 Owen Taylor + + * === Released 1.3.5 === + + * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. + + * NEWS: Update + + * modules/arabic/arabic-fc.c (arabic_engine_shape): + Fix a crash from left-over handling of clusters + for non-spacing marks. + Mon Mar 1 20:32:06 2004 Tim Janik * autogen.sh: @@ -127,7 +139,7 @@ Fri Feb 27 14:26:34 2004 Owen Taylor * modules/indic/indic-ot-class-tables.c (bengCharClasses): Mark BENGALI LETTER A (U+0985) and BENGALI LETTER E (U+098F) as consonants which gives better behavior when they - are combined wiht halant, though it isn't exactly right. + are combined with halant, though it isn't exactly right. (#118299, Sayamindu Dasgupta) Fri Feb 27 11:24:50 2004 Owen Taylor diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index a7e7cc88..556cf47c 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,15 @@ +Mon Mar 1 19:24:09 2004 Owen Taylor + + * === Released 1.3.5 === + + * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. + + * NEWS: Update + + * modules/arabic/arabic-fc.c (arabic_engine_shape): + Fix a crash from left-over handling of clusters + for non-spacing marks. + Mon Mar 1 20:32:06 2004 Tim Janik * autogen.sh: @@ -127,7 +139,7 @@ Fri Feb 27 14:26:34 2004 Owen Taylor * modules/indic/indic-ot-class-tables.c (bengCharClasses): Mark BENGALI LETTER A (U+0985) and BENGALI LETTER E (U+098F) as consonants which gives better behavior when they - are combined wiht halant, though it isn't exactly right. + are combined with halant, though it isn't exactly right. (#118299, Sayamindu Dasgupta) Fri Feb 27 11:24:50 2004 Owen Taylor diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index a7e7cc88..556cf47c 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,15 @@ +Mon Mar 1 19:24:09 2004 Owen Taylor + + * === Released 1.3.5 === + + * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. + + * NEWS: Update + + * modules/arabic/arabic-fc.c (arabic_engine_shape): + Fix a crash from left-over handling of clusters + for non-spacing marks. + Mon Mar 1 20:32:06 2004 Tim Janik * autogen.sh: @@ -127,7 +139,7 @@ Fri Feb 27 14:26:34 2004 Owen Taylor * modules/indic/indic-ot-class-tables.c (bengCharClasses): Mark BENGALI LETTER A (U+0985) and BENGALI LETTER E (U+098F) as consonants which gives better behavior when they - are combined wiht halant, though it isn't exactly right. + are combined with halant, though it isn't exactly right. (#118299, Sayamindu Dasgupta) Fri Feb 27 11:24:50 2004 Owen Taylor diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index a7e7cc88..556cf47c 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,15 @@ +Mon Mar 1 19:24:09 2004 Owen Taylor + + * === Released 1.3.5 === + + * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. + + * NEWS: Update + + * modules/arabic/arabic-fc.c (arabic_engine_shape): + Fix a crash from left-over handling of clusters + for non-spacing marks. + Mon Mar 1 20:32:06 2004 Tim Janik * autogen.sh: @@ -127,7 +139,7 @@ Fri Feb 27 14:26:34 2004 Owen Taylor * modules/indic/indic-ot-class-tables.c (bengCharClasses): Mark BENGALI LETTER A (U+0985) and BENGALI LETTER E (U+098F) as consonants which gives better behavior when they - are combined wiht halant, though it isn't exactly right. + are combined with halant, though it isn't exactly right. (#118299, Sayamindu Dasgupta) Fri Feb 27 11:24:50 2004 Owen Taylor diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index a7e7cc88..556cf47c 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,15 @@ +Mon Mar 1 19:24:09 2004 Owen Taylor + + * === Released 1.3.5 === + + * configure.in: Version 1.3.5 (1.3.4 skipped), interface age 0. + + * NEWS: Update + + * modules/arabic/arabic-fc.c (arabic_engine_shape): + Fix a crash from left-over handling of clusters + for non-spacing marks. + Mon Mar 1 20:32:06 2004 Tim Janik * autogen.sh: @@ -127,7 +139,7 @@ Fri Feb 27 14:26:34 2004 Owen Taylor * modules/indic/indic-ot-class-tables.c (bengCharClasses): Mark BENGALI LETTER A (U+0985) and BENGALI LETTER E (U+098F) as consonants which gives better behavior when they - are combined wiht halant, though it isn't exactly right. + are combined with halant, though it isn't exactly right. (#118299, Sayamindu Dasgupta) Fri Feb 27 11:24:50 2004 Owen Taylor diff --git a/NEWS b/NEWS index 0ff34922..f9ccd615 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,17 @@ -Overview of changes between 1.3.2 and 1.3.3 +Overview of changes between 1.3.3 and 1.3.5 =========================================== +* Add support for automatically determining the base direction for + PangoLayout from the contained text [Dov Grobgeld] +* Major rework of internal opentype interfaces to fix + problems with GPOS. Turn on GPOS handling for Arabic. +* Add a PangoAttribute to turn off font fallback [Noah Levitt] +* Add wavy error-indication underlines [Nicolas Setton] +* Improve handling of BENGALI LETTER A/E [Sayamindu Dasgupta] +* Win32 bug fixes and improvements [J. Ali Harlow, Hans Breuer] +* Misc bug fixes [Noah, Roozbeh Pournader] +Overview of changes between 1.3.2 and 1.3.3 +=========================================== * Add pango_font_face_list_sizes() [Noah Levitt] * Add pango_font_family_is_monospace [Noah] * Do OpenType processing for CFF fonts [Manjunath Sripadarao] diff --git a/configure.in b/configure.in index 39304d1d..7463ee64 100644 --- a/configure.in +++ b/configure.in @@ -22,13 +22,13 @@ dnl dnl The triplet m4_define([pango_major_version], [1]) m4_define([pango_minor_version], [3]) -m4_define([pango_micro_version], [3]) +m4_define([pango_micro_version], [5]) m4_define([pango_version], [pango_major_version.pango_minor_version.pango_micro_version]) dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2. m4_define([pango_api_version], [1.0]) dnl Number of releases since we've added interfaces -m4_define([pango_interface_age], [3]) +m4_define([pango_interface_age], [0]) dnl Number of releases since we've broken binary compatibility. m4_define([pango_binary_age], [m4_eval(100 * pango_minor_version + pango_micro_version)]) diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index 5fa5dab8..f70f2e58 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -9,6 +9,7 @@ PangoDirection PANGO_TYPE_DIRECTION pango_itemize +pango_itemize_with_base_dir pango_item_free pango_item_copy pango_item_new @@ -288,6 +289,7 @@ PangoUnderline PANGO_TYPE_UNDERLINE pango_attr_shape_new pango_attr_scale_new +pango_attr_fallback_new PANGO_SCALE_XX_SMALL PANGO_SCALE_X_SMALL PANGO_SCALE_SMALL @@ -719,6 +721,8 @@ pango_fc_font_get_type opentype PangoOTTag PangoOTInfo +PangoOTBuffer +PangoOTGlyph PangoOTRuleset PangoOTTableType pango_ot_info_get @@ -728,8 +732,16 @@ pango_ot_info_find_feature pango_ot_info_list_scripts pango_ot_info_list_languages pango_ot_info_list_features +pango_ot_buffer_new +pango_ot_buffer_destroy +pango_ot_buffer_clear +pango_ot_buffer_add_glyph +pango_ot_buffer_set_rtl +pango_ot_buffer_get_glyphs +pango_ot_buffer_output pango_ot_ruleset_new pango_ot_ruleset_add_feature -pango_ot_ruleset_shape +pango_ot_ruleset_substitute +pango_ot_ruleset_position diff --git a/docs/tmpl/layout.sgml b/docs/tmpl/layout.sgml index cf7e3120..90b228e5 100644 --- a/docs/tmpl/layout.sgml +++ b/docs/tmpl/layout.sgml @@ -269,6 +269,24 @@ The GObject type for #PangoWrapMode. @Returns: + + + + + +@layout: +@auto_dir: + + + + + + + +@layout: +@Returns: + + @@ -643,6 +661,7 @@ code specific to each rendering system. @length: the length of the line in bytes. @runs: a list containing the runs of the line in visual order. @is_paragraph_start: %TRUE if this is the first line of the paragraph. +@resolved_dir: diff --git a/docs/tmpl/main.sgml b/docs/tmpl/main.sgml index 5901eca7..e2557de1 100644 --- a/docs/tmpl/main.sgml +++ b/docs/tmpl/main.sgml @@ -83,6 +83,21 @@ The GObject type for #PangoDirection. @Returns: + + + + + +@context: +@base_dir: +@text: +@start_index: +@length: +@attrs: +@cached_iter: +@Returns: + + @@ -253,11 +268,14 @@ The GObject type for #PangoDirection. - +Determines the direction of a character; either +%PANGO_DIRECTION_LTR, %PANGO_DIRECTION_LTR, or +%PANGO_DIRECTION_NEUTRAL. -@ch: -@Returns: +@ch: character to examine +@Returns: the direction of a character, as used in the + Unicode bidirectional algorithm. diff --git a/docs/tmpl/opentype.sgml b/docs/tmpl/opentype.sgml index 1cd93ffe..87deb9e3 100644 --- a/docs/tmpl/opentype.sgml +++ b/docs/tmpl/opentype.sgml @@ -33,6 +33,23 @@ use pango_ot_info_new(). + + + + + + + + + + + +@glyph: +@properties: +@cluster: +@component: +@ligID: + The PangoOTRuleSet structure holds a @@ -61,10 +78,10 @@ identify the various OpenType tables in the -@font: +@face: @Returns: -@face: +@font: @@ -142,6 +159,70 @@ identify the various OpenType tables in the @Returns: + + + + + +@font: +@Returns: + + + + + + + +@buffer: + + + + + + + +@buffer: + + + + + + + +@buffer: +@glyph_index: +@properties: +@cluster: + + + + + + + +@buffer: +@rtl: + + + + + + + +@buffer: +@glyphs: +@n_glyphs: + + + + + + + +@buffer: +@glyphs: + + @@ -162,3 +243,21 @@ identify the various OpenType tables in the @property_bit: + + + + + +@ruleset: +@buffer: + + + + + + + +@ruleset: +@buffer: + + diff --git a/docs/tmpl/text-attributes.sgml b/docs/tmpl/text-attributes.sgml index aa8445cd..ae6add8f 100644 --- a/docs/tmpl/text-attributes.sgml +++ b/docs/tmpl/text-attributes.sgml @@ -354,6 +354,15 @@ The GObject type for #PangoUnderline. @Returns: + + + + + +@enable_fallback: +@Returns: + + The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)). diff --git a/modules/arabic/arabic-fc.c b/modules/arabic/arabic-fc.c index bf0270c9..b7be54d0 100644 --- a/modules/arabic/arabic-fc.c +++ b/modules/arabic/arabic-fc.c @@ -291,6 +291,7 @@ arabic_engine_shape (PangoEngineShape *engine, PangoGlyph index; char buf[6]; const char *input; + int cluster = 0; wc = g_utf8_get_char (p); @@ -328,14 +329,11 @@ arabic_engine_shape (PangoEngineShape *engine, } else { + if (g_unichar_type (wc) != G_UNICODE_NON_SPACING_MARK) + cluster = p - text; + pango_ot_buffer_add_glyph (buffer, index, - properties[i], p - text); - - if (g_unichar_type (wc) == G_UNICODE_NON_SPACING_MARK) - { - if (i > 0) - glyphs->log_clusters[i] = glyphs->log_clusters[i-1]; - } + properties[i], cluster); } } diff --git a/pango/mini-fribidi/fribidi.c b/pango/mini-fribidi/fribidi.c index 022f9f4c..75366665 100644 --- a/pango/mini-fribidi/fribidi.c +++ b/pango/mini-fribidi/fribidi.c @@ -1050,13 +1050,6 @@ pango_log2vis_get_embedding_levels (/* input */ return TRUE; } -/** - * pango_unichar_direction: - * @ch: character to examine - * - * Returns the direction of a character, as used in the - * Unicode bidirectional algorithm. - */ PangoDirection pango_unichar_direction (gunichar ch) { diff --git a/pango/pango-context.c b/pango/pango-context.c index 51a467d3..316245dd 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1121,7 +1121,6 @@ pango_itemize_with_base_dir (PangoContext *context, * @context: a structure holding information that affects the itemization process. * @text: the text to itemize. - * @base_dir: base direction to use for BiDi algorithm. * @start_index: first byte in @text to process * @length: the number of bytes (not characters) to process * after @start_index. -- cgit v1.2.1