Merge branch 'master' into harfbuzz-ng-external
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 17 Jun 2011 19:42:16 +0000 (15:42 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 17 Jun 2011 19:42:16 +0000 (15:42 -0400)
Conflicts:
configure.in
pango/opentype/hb-common.h
pango/pango-ot-info.c

1  2 
configure.in
docs/tmpl/atsui-fonts.sgml
docs/tmpl/fonts.sgml
docs/tmpl/glyphs.sgml
docs/tmpl/layout.sgml
docs/tmpl/main.sgml
docs/tmpl/tab-stops.sgml
docs/tmpl/text-attributes.sgml
modules/basic/Makefile.am
pango/Makefile.am
pango/pango-ot-info.c

diff --cc 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"
@@@ -21,29 -21,29 +21,3 @@@ MacOS systems using the ATSUI text rend
  <!-- ##### SECTION Image ##### -->
  
  
--<!-- ##### MACRO PANGO_RENDER_TYPE_ATSUI ##### -->
--<para>
--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().
--</para>
--
--
--
--<!-- ##### FUNCTION pango_atsui_font_get_cgfont ##### -->
--<para>
--
--</para>
--
--@font: 
--@Returns: 
--
--
--<!-- ##### FUNCTION pango_atsui_font_get_atsfont ##### -->
--<para>
--
--</para>
--
--@font: 
--@Returns: 
--
--
@@@ -442,24 -442,24 +442,6 @@@ the documentation of the corresponding 
  of their meaning.
  </para>
  
--@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.
  
  <!-- ##### MACRO PANGO_TYPE_FONT_METRICS ##### -->
  <para>
@@@ -168,12 -168,12 +168,6 @@@ horizontal origin
  
  </para>
  
--@xx: 
--@xy: 
--@yx: 
--@yy: 
--@x0: 
--@y0: 
  
  <!-- ##### MACRO PANGO_TYPE_MATRIX ##### -->
  <para>
@@@ -395,11 -395,11 +389,6 @@@ The storage for the glyph information i
  by the structure which simplifies memory management.
  </para>
  
--@num_glyphs: the number of glyphs in the string.
--@glyphs: an array of #PangoGlyphInfo structures of length <structfield>num_glyphs</structfield>.
--@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.
  
  <!-- ##### STRUCT PangoGlyphItem ##### -->
  <para>
@@@ -410,10 -410,10 +399,6 @@@ of shaping text with #PangoLayout is a 
  each of which contains a list of #PangoGlyphItem.
  </para>
  
--@item: a #PangoItem structure that provides information
--       about a segment of text.
--@glyphs: the glyphs obtained by shaping the text
--         corresponding to @item.
  
  <!-- ##### STRUCT PangoGlyphItemIter ##### -->
  <para>
@@@ -457,14 -457,14 +442,6 @@@ None of the members of a #PangoGlyphIte
  
  </para>
  
--@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
  
  <!-- ##### MACRO PANGO_TYPE_GLYPH_STRING ##### -->
@@@ -119,6 -119,15 +119,15 @@@ has no user-visible fields
  @Returns: 
  
  
 -@layout:
 -@Returns:
+ <!-- ##### FUNCTION pango_layout_get_character_count ##### -->
+ <para>
+ </para>
++@layout: 
++@Returns: 
  <!-- ##### FUNCTION pango_layout_set_markup ##### -->
  <para>
  
@@@ -464,6 -473,16 +473,16 @@@ The #GObject type for #PangoAlignment
  @n_attrs: 
  
  
 -@layout:
 -@n_attrs:
 -@Returns:
+ <!-- ##### FUNCTION pango_layout_get_log_attrs_readonly ##### -->
+ <para>
+ </para>
++@layout: 
++@n_attrs: 
++@Returns: 
  <!-- ##### FUNCTION pango_layout_index_to_pos ##### -->
  <para>
  
@@@ -826,12 -845,12 +845,6 @@@ Routines for rendering PangoLayout obje
  code specific to each rendering system.
  </para>
  
--@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
  
  <!-- ##### TYPEDEF PangoLayoutRun ##### -->
  <para>
@@@ -36,11 -36,11 +36,6 @@@ The #PangoItem structure stores informa
  a segment of text. It contains the following fields:
  </para>
  
--@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.
  
  <!-- ##### STRUCT PangoAnalysis ##### -->
  <para>
@@@ -68,7 -68,7 +68,7 @@@ The #GObject type for #PangoTabAlign
  @positions_in_pixels: 
  @first_alignment: 
  @first_position: 
--@Varargs
++@...
  @Returns: 
  
  
@@@ -578,12 -578,12 +578,6 @@@ The #PangoColor structure is used t
  represent a color in an uncalibrated RGB color-space.
  </para>
  
--@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.
  
  <!-- ##### MACRO PANGO_TYPE_COLOR ##### -->
  <para>
Simple merge
Simple merge
  #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