From: Behdad Esfahbod Date: Fri, 17 Jun 2011 19:42:16 +0000 (-0400) Subject: Merge branch 'master' into harfbuzz-ng-external X-Git-Tag: 1.31.0~19^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b469b7eeb36ce8181b404f24eaaacaa9ec2c3fe;p=platform%2Fupstream%2Fpango.git Merge branch 'master' into harfbuzz-ng-external Conflicts: configure.in pango/opentype/hb-common.h pango/pango-ot-info.c --- 0b469b7eeb36ce8181b404f24eaaacaa9ec2c3fe diff --cc configure.in index 966bf64,c0928f5..4d9b157 --- a/configure.in +++ b/configure.in @@@ -492,8 -505,8 +511,8 @@@ GOBJECT_INTROSPECTION_CHECK([0.9.5] # # Modules to build # -arabic_modules="arabic-fc,arabic-lang" +arabic_modules="arabic-lang" - basic_modules="basic-fc,basic-win32,basic-x,basic-atsui" + basic_modules="basic-fc,basic-win32,basic-x,basic-atsui,basic-coretext" hangul_modules="hangul-fc" hebrew_modules="hebrew-fc" indic_modules="indic-fc,indic-lang" diff --cc docs/tmpl/atsui-fonts.sgml index c8b6aa0,c8b6aa0..7f3c9dd --- a/docs/tmpl/atsui-fonts.sgml +++ b/docs/tmpl/atsui-fonts.sgml @@@ -21,29 -21,29 +21,3 @@@ MacOS systems using the ATSUI text rend -- -- --A string constant identifying the ATSUI renderer. The associated quark (see --g_quark_from_string()) is used to identify the renderer in pango_find_map(). -- -- -- -- -- -- -- -- -- --@font: --@Returns: -- -- -- -- -- -- -- --@font: --@Returns: -- -- diff --cc docs/tmpl/fonts.sgml index 7b55dea,7b55dea..16ca84f --- a/docs/tmpl/fonts.sgml +++ b/docs/tmpl/fonts.sgml @@@ -442,24 -442,24 +442,6 @@@ the documentation of the corresponding of their meaning. --@ref_count: reference count. Used internally. See pango_font_metrics_ref() -- and pango_font_metrics_unref(). --@ascent: the distance from the baseline to the highest point of the glyphs of -- the font. This is positive in practically all fonts. --@descent: the distance from the baseline to the lowest point of the glyphs of -- the font. This is positive in practically all fonts. --@approximate_char_width: approximate average width of the regular glyphs of -- the font. Note that for this calculation, East Asian characters -- (those passing g_unichar_iswide()) are counted as double-width. -- This produces a more uniform value for this measure across languages -- and results in more uniform and more expected UI sizes. --@approximate_digit_width: approximate average width of the glyphs for digits -- of the font. --@underline_position: position of the underline. This is normally negative. --@underline_thickness: thickness of the underline. --@strikethrough_position: position of the strikethrough line. This is -- normally positive. --@strikethrough_thickness: thickness of the strikethrough line. diff --cc docs/tmpl/glyphs.sgml index 399319e,399319e..926bf53 --- a/docs/tmpl/glyphs.sgml +++ b/docs/tmpl/glyphs.sgml @@@ -168,12 -168,12 +168,6 @@@ horizontal origin --@xx: --@xy: --@yx: --@yy: --@x0: --@y0: @@@ -395,11 -395,11 +389,6 @@@ The storage for the glyph information i by the structure which simplifies memory management. --@num_glyphs: the number of glyphs in the string. --@glyphs: an array of #PangoGlyphInfo structures of length num_glyphs. --@log_clusters: for each glyph, byte index of the starting character for the --cluster. The indices are relative to the start of the text --corresponding to the PangoGlyphString. @@@ -410,10 -410,10 +399,6 @@@ of shaping text with #PangoLayout is a each of which contains a list of #PangoGlyphItem. --@item: a #PangoItem structure that provides information -- about a segment of text. --@glyphs: the glyphs obtained by shaping the text -- corresponding to @item. @@@ -457,14 -457,14 +442,6 @@@ None of the members of a #PangoGlyphIte --@glyph_item: the #PangoGlyphItem this iterator iterates over --@text: the UTF-8 text that @glyph_item refers to --@start_glyph: starting glyph of the cluster --@start_index: starting text index of the cluster --@start_char: starting number of characters of the cluster --@end_glyph: ending glyph of the cluster --@end_index: ending text index of the cluster --@end_char: ending number of characters of the cluster @Since: 1.22 diff --cc docs/tmpl/layout.sgml index 54e385e,4be6a59..997507d --- a/docs/tmpl/layout.sgml +++ b/docs/tmpl/layout.sgml @@@ -119,6 -119,15 +119,15 @@@ has no user-visible fields @Returns: + + + + + -@layout: -@Returns: ++@layout: ++@Returns: + + @@@ -464,6 -473,16 +473,16 @@@ The #GObject type for #PangoAlignment @n_attrs: + + + + + -@layout: -@n_attrs: -@Returns: ++@layout: ++@n_attrs: ++@Returns: + + @@@ -826,12 -845,12 +845,6 @@@ Routines for rendering PangoLayout obje code specific to each rendering system. --@layout: the parent layout for this line --@start_index: the start of the line as byte index into @layout->text --@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: the resolved #PangoDirection of the line diff --cc docs/tmpl/main.sgml index 8373b12,8373b12..112baaa --- a/docs/tmpl/main.sgml +++ b/docs/tmpl/main.sgml @@@ -36,11 -36,11 +36,6 @@@ The #PangoItem structure stores informa a segment of text. It contains the following fields: --@offset: the offset of the segment from the beginning of the -- string in bytes. --@length: the length of the segment in bytes. --@num_chars: the length of the segment in characters. --@analysis: the properties of the segment. diff --cc docs/tmpl/tab-stops.sgml index 62b0202,62b0202..0e28a72 --- a/docs/tmpl/tab-stops.sgml +++ b/docs/tmpl/tab-stops.sgml @@@ -68,7 -68,7 +68,7 @@@ The #GObject type for #PangoTabAlign @positions_in_pixels: @first_alignment: @first_position: --@Varargs: ++@...: @Returns: diff --cc docs/tmpl/text-attributes.sgml index 98158f8,98158f8..d7b5cb5 --- a/docs/tmpl/text-attributes.sgml +++ b/docs/tmpl/text-attributes.sgml @@@ -578,12 -578,12 +578,6 @@@ The #PangoColor structure is used t represent a color in an uncalibrated RGB color-space. --@red: The red component of the color. This is a value between 0 and 65535, -- with 65535 indicating full intensity. --@green: The green component of the color. This is a value between 0 and 65535, -- with 65535 indicating full intensity. --@blue: The blue component of the color. This is a value between 0 and 65535, -- with 65535 indicating full intensity. diff --cc pango/pango-ot-info.c index b03fa64,be7d53a..56d28bf --- a/pango/pango-ot-info.c +++ b/pango/pango-ot-info.c @@@ -25,38 -25,15 +25,13 @@@ #include "pango-impl-utils.h" #include FT_TRUETYPE_TABLES_H - static void pango_ot_info_class_init (GObjectClass *object_class); static void pango_ot_info_finalize (GObject *object); - static GObjectClass *parent_class; -static void synthesize_class_def (PangoOTInfo *info); - + G_DEFINE_TYPE (PangoOTInfo, pango_ot_info, G_TYPE_OBJECT); - GType - pango_ot_info_get_type (void) + static void + pango_ot_info_init (PangoOTInfo *self) { - static GType object_type = 0; - - if (G_UNLIKELY (!object_type)) - { - const GTypeInfo object_info = - { - sizeof (PangoOTInfoClass), - (GBaseInitFunc) NULL, - (GBaseFinalizeFunc) NULL, - (GClassInitFunc)pango_ot_info_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (PangoOTInfo), - 0, /* n_preallocs */ - NULL, /* init */ - NULL, /* value_table */ - }; - - object_type = g_type_register_static (G_TYPE_OBJECT, - I_("PangoOTInfo"), - &object_info, 0); - } - - return object_type; } static void