pango 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +7 -0
  2. data/README +2 -2
  3. data/Rakefile +7 -5
  4. data/ext/pango/extconf.rb +4 -4
  5. data/ext/pango/rbpango.c +0 -9
  6. data/ext/pango/rbpango.h +2 -10
  7. data/ext/pango/rbpangoanalysis.c +0 -4
  8. data/ext/pango/rbpangoattribute.c +1 -26
  9. data/ext/pango/rbpangoattrlist.c +0 -4
  10. data/ext/pango/rbpangocairo.c +13 -12
  11. data/ext/pango/rbpangocairocontext.c +6 -26
  12. data/ext/pango/rbpangocontext.c +2 -14
  13. data/ext/pango/rbpangofont.c +0 -12
  14. data/ext/pango/rbpangofontdescription.c +0 -5
  15. data/ext/pango/rbpangofontface.c +0 -6
  16. data/ext/pango/rbpangofontfamily.c +0 -3
  17. data/ext/pango/rbpangofontmap.c +0 -4
  18. data/ext/pango/rbpangofontmetrics.c +1 -4
  19. data/ext/pango/rbpangofontset.c +0 -4
  20. data/ext/pango/rbpangoglyphitem.c +0 -8
  21. data/ext/pango/rbpangoglyphstring.c +0 -4
  22. data/ext/pango/rbpangoitem.c +0 -16
  23. data/ext/pango/rbpangolanguage.c +0 -5
  24. data/ext/pango/rbpangolayout.c +36 -19
  25. data/ext/pango/rbpangolayoutline.c +0 -33
  26. data/ext/pango/rbpangologattr.c +0 -5
  27. data/ext/pango/rbpangomatrix.c +0 -10
  28. data/ext/pango/rbpangoprivate.h +0 -4
  29. data/ext/pango/rbpangorenderer.c +0 -6
  30. data/ext/pango/rbpangoscript.c +0 -4
  31. data/ext/pango/rbpangoscriptiter.c +0 -5
  32. data/lib/1.9/pango.so +0 -0
  33. data/lib/2.0/pango.so +0 -0
  34. data/test/{test_layout.rb → test-layout.rb} +14 -0
  35. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  36. data/vendor/local/bin/hb-shape.exe +0 -0
  37. data/vendor/local/bin/hb-view.exe +0 -0
  38. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  39. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  40. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  41. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  42. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  43. data/vendor/local/bin/libstdc++-6.dll +0 -0
  44. data/vendor/local/bin/pango-querymodules.exe +0 -0
  45. data/vendor/local/bin/pango-view.exe +0 -0
  46. data/vendor/local/include/harfbuzz/hb-buffer.h +10 -10
  47. data/vendor/local/include/harfbuzz/hb-common.h +147 -131
  48. data/vendor/local/include/harfbuzz/{hb-uniscribe.h → hb-deprecated.h} +15 -13
  49. data/vendor/local/include/harfbuzz/hb-face.h +117 -0
  50. data/vendor/local/include/harfbuzz/hb-font.h +130 -77
  51. data/vendor/local/include/harfbuzz/hb-ot-layout.h +6 -0
  52. data/vendor/local/include/harfbuzz/hb-set.h +2 -0
  53. data/vendor/local/include/harfbuzz/hb-unicode.h +97 -9
  54. data/vendor/local/include/harfbuzz/hb-version.h +2 -2
  55. data/vendor/local/include/harfbuzz/hb.h +2 -0
  56. data/vendor/local/include/pango-1.0/pango/pango-attributes.h +213 -4
  57. data/vendor/local/include/pango-1.0/pango/pango-break.h +53 -0
  58. data/vendor/local/include/pango-1.0/pango/pango-coverage.h +21 -0
  59. data/vendor/local/include/pango-1.0/pango/pango-engine.h +46 -0
  60. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  61. data/vendor/local/include/pango-1.0/pango/pango-font.h +234 -0
  62. data/vendor/local/include/pango-1.0/pango/pango-fontmap.h +68 -0
  63. data/vendor/local/include/pango-1.0/pango/pango-fontset.h +42 -0
  64. data/vendor/local/include/pango-1.0/pango/pango-glyph-item.h +64 -0
  65. data/vendor/local/include/pango-1.0/pango/pango-glyph.h +55 -0
  66. data/vendor/local/include/pango-1.0/pango/pango-item.h +28 -0
  67. data/vendor/local/include/pango-1.0/pango/pango-language.h +5 -0
  68. data/vendor/local/include/pango-1.0/pango/pango-layout.h +43 -0
  69. data/vendor/local/include/pango-1.0/pango/pango-modules.h +11 -0
  70. data/vendor/local/include/pango-1.0/pango/pango-ot.h +149 -0
  71. data/vendor/local/include/pango-1.0/pango/pango-script.h +102 -0
  72. data/vendor/local/include/pango-1.0/pango/pango-tabs.h +11 -0
  73. data/vendor/local/include/pango-1.0/pango/pango-types.h +102 -2
  74. data/vendor/local/include/pango-1.0/pango/pango-utils.h +44 -0
  75. data/vendor/local/include/pango-1.0/pango/pangocairo.h +14 -0
  76. data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +2 -2
  77. data/vendor/local/include/pango-1.0/pango/pangoft2.h +13 -0
  78. data/vendor/local/include/pango-1.0/pango/pangowin32.h +6 -0
  79. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  80. data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  81. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  82. data/vendor/local/lib/libharfbuzz.la +5 -5
  83. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  84. data/vendor/local/lib/libpango-1.0.la +2 -2
  85. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  86. data/vendor/local/lib/libpangocairo-1.0.la +4 -4
  87. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  88. data/vendor/local/lib/libpangoft2-1.0.la +3 -3
  89. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  90. data/vendor/local/lib/libpangowin32-1.0.la +2 -2
  91. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
  92. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
  93. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
  94. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
  95. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +1 -1
  96. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
  97. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
  98. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
  99. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
  100. data/vendor/local/lib/pkgconfig/harfbuzz.pc +5 -5
  101. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  102. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  103. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  104. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  105. data/vendor/local/share/gir-1.0/Pango-1.0.gir +1824 -1434
  106. data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +109 -103
  107. data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +18 -15
  108. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +71 -0
  109. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +1419 -0
  110. data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +98 -0
  111. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +48 -0
  112. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +415 -0
  113. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1045 -0
  114. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +1073 -0
  115. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +67 -0
  116. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +90 -0
  117. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +344 -0
  118. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +1617 -0
  119. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +130 -0
  120. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +75 -0
  121. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +52 -0
  122. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +76 -0
  123. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +75 -0
  124. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +544 -0
  125. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +105 -0
  126. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +67 -0
  127. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +540 -0
  128. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +264 -0
  129. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +194 -0
  130. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1180 -0
  131. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +67 -0
  132. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +156 -0
  133. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +52 -0
  134. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +591 -0
  135. data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
  136. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +105 -0
  137. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +650 -0
  138. data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
  139. data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
  140. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +32 -0
  141. data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
  142. data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
  143. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +321 -0
  144. data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
  145. data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
  146. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +3 -4
  147. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +3 -4
  148. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +2 -2
  149. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +4 -9
  150. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +8 -13
  151. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
  152. data/vendor/local/share/gtk-doc/html/pango/{pango-pango-renderer.html → PangoRenderer.html} +99 -102
  153. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +20 -29
  154. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +2 -2
  155. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +2 -2
  156. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +2 -2
  157. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +6 -2
  158. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +2 -2
  159. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +2 -2
  160. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +4 -11
  161. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +3 -3
  162. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +15 -4
  163. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +4 -4
  164. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +6 -6
  165. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +42 -0
  166. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +58 -0
  167. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +6 -5
  168. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +41 -0
  169. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +2 -2
  170. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +2 -2
  171. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +19 -19
  172. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +2 -2
  173. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +31 -27
  174. data/vendor/local/share/gtk-doc/html/pango/index.html +7 -5
  175. data/vendor/local/share/gtk-doc/html/pango/index.sgml +38 -38
  176. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +5 -5
  177. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +6 -9
  178. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +113 -66
  179. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +2 -2
  180. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +8 -12
  181. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -8
  182. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +90 -53
  183. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +10 -10
  184. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +21 -8
  185. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +44 -15
  186. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +2 -2
  187. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +2 -2
  188. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +12 -12
  189. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +87 -90
  190. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +2 -5
  191. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +38 -31
  192. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +10 -18
  193. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +10 -11
  194. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +4 -6
  195. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -4
  196. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +12 -12
  197. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +4 -4
  198. data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +2 -2
  199. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +34 -31
  200. data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
  201. data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/pango/tools.html +2 -2
  203. data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
  204. data/vendor/local/share/man/man1/pango-view.1 +2 -2
  205. metadata +57 -24
  206. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  207. data/vendor/local/include/harfbuzz/hb-gobject.h +0 -69
  208. data/vendor/local/share/gtk-doc/html/pango/api-index-1-28.html +0 -31
@@ -30,6 +30,59 @@ G_BEGIN_DECLS
30
30
 
31
31
  /* Logical attributes of a character.
32
32
  */
33
+ /**
34
+ * PangoLogAttr:
35
+ * @is_line_break: if set, can break line in front of character
36
+ * @is_mandatory_break: if set, must break line in front of character
37
+ * @is_char_break: if set, can break here when doing character wrapping
38
+ * @is_white: is whitespace character
39
+ * @is_cursor_position: if set, cursor can appear in front of character.
40
+ * i.e. this is a grapheme boundary, or the first character
41
+ * in the text.
42
+ * This flag implements Unicode's
43
+ * <ulink url="http://www.unicode.org/reports/tr29/">Grapheme
44
+ * Cluster Boundaries</ulink> semantics.
45
+ * @is_word_start: is first character in a word
46
+ * @is_word_end: is first non-word char after a word
47
+ * Note that in degenerate cases, you could have both @is_word_start
48
+ * and @is_word_end set for some character.
49
+ * @is_sentence_boundary: is a sentence boundary.
50
+ * There are two ways to divide sentences. The first assigns all
51
+ * inter-sentence whitespace/control/format chars to some sentence,
52
+ * so all chars are in some sentence; @is_sentence_boundary denotes
53
+ * the boundaries there. The second way doesn't assign
54
+ * between-sentence spaces, etc. to any sentence, so
55
+ * @is_sentence_start/@is_sentence_end mark the boundaries of those sentences.
56
+ * @is_sentence_start: is first character in a sentence
57
+ * @is_sentence_end: is first char after a sentence.
58
+ * Note that in degenerate cases, you could have both @is_sentence_start
59
+ * and @is_sentence_end set for some character. (e.g. no space after a
60
+ * period, so the next sentence starts right away)
61
+ * @backspace_deletes_character: if set, backspace deletes one character
62
+ * rather than the entire grapheme cluster. This
63
+ * field is only meaningful on grapheme
64
+ * boundaries (where @is_cursor_position is
65
+ * set). In some languages, the full grapheme
66
+ * (e.g. letter + diacritics) is considered a
67
+ * unit, while in others, each decomposed
68
+ * character in the grapheme is a unit. In the
69
+ * default implementation of pango_break(), this
70
+ * bit is set on all grapheme boundaries except
71
+ * those following Latin, Cyrillic or Greek base characters.
72
+ * @is_expandable_space: is a whitespace character that can possibly be
73
+ * expanded for justification purposes. (Since: 1.18)
74
+ * @is_word_boundary: is a word boundary.
75
+ * More specifically, means that this is not a position in the middle
76
+ * of a word. For example, both sides of a punctuation mark are
77
+ * considered word boundaries. This flag is particularly useful when
78
+ * selecting text word-by-word.
79
+ * This flag implements Unicode's
80
+ * <ulink url="http://www.unicode.org/reports/tr29/">Word
81
+ * Boundaries</ulink> semantics. (Since: 1.22)
82
+ *
83
+ * The #PangoLogAttr structure stores information
84
+ * about the attributes of a single character.
85
+ */
33
86
  struct _PangoLogAttr
34
87
  {
35
88
  guint is_line_break : 1; /* Can break line in front of character */
@@ -26,8 +26,29 @@
26
26
 
27
27
  G_BEGIN_DECLS
28
28
 
29
+ /**
30
+ * PangoCoverage:
31
+ *
32
+ * The #PangoCoverage structure represents a map from Unicode characters
33
+ * to #PangoCoverageLevel. It is an opaque structure with no public fields.
34
+ */
29
35
  typedef struct _PangoCoverage PangoCoverage;
30
36
 
37
+ /**
38
+ * PangoCoverageLevel:
39
+ * @PANGO_COVERAGE_NONE: The character is not representable with the font.
40
+ * @PANGO_COVERAGE_FALLBACK: The character is represented in a way that may be
41
+ * comprehensible but is not the correct graphical form.
42
+ * For instance, a Hangul character represented as a
43
+ * a sequence of Jamos, or a Latin transliteration of a Cyrillic word.
44
+ * @PANGO_COVERAGE_APPROXIMATE: The character is represented as basically the correct
45
+ * graphical form, but with a stylistic variant inappropriate for
46
+ * the current script.
47
+ * @PANGO_COVERAGE_EXACT: The character is represented as the correct graphical form.
48
+ *
49
+ * Used to indicate how well a font can represent a particular Unicode
50
+ * character point for a particular script.
51
+ */
31
52
  typedef enum {
32
53
  PANGO_COVERAGE_NONE,
33
54
  PANGO_COVERAGE_FALLBACK,
@@ -36,6 +36,12 @@ G_BEGIN_DECLS
36
36
 
37
37
  #include <gmodule.h>
38
38
 
39
+ /**
40
+ * PANGO_RENDER_TYPE_NONE:
41
+ *
42
+ * A string constant defining the render type
43
+ * for engines that are not rendering-system specific.
44
+ */
39
45
  #define PANGO_RENDER_TYPE_NONE "PangoRenderNone"
40
46
 
41
47
  #define PANGO_TYPE_ENGINE (pango_engine_get_type ())
@@ -73,6 +79,12 @@ struct _PangoEngineClass
73
79
 
74
80
  GType pango_engine_get_type (void) G_GNUC_CONST;
75
81
 
82
+ /**
83
+ * PANGO_ENGINE_TYPE_LANG:
84
+ *
85
+ * A string constant defining the engine type for language engines.
86
+ * These engines derive from #PangoEngineLang.
87
+ */
76
88
  #define PANGO_ENGINE_TYPE_LANG "PangoEngineLang"
77
89
 
78
90
  #define PANGO_TYPE_ENGINE_LANG (pango_engine_lang_get_type ())
@@ -127,6 +139,12 @@ struct _PangoEngineLangClass
127
139
 
128
140
  GType pango_engine_lang_get_type (void) G_GNUC_CONST;
129
141
 
142
+ /**
143
+ * PANGO_ENGINE_TYPE_SHAPE:
144
+ *
145
+ * A string constant defining the engine type for shaping engines.
146
+ * These engines derive from #PangoEngineShape.
147
+ */
130
148
  #define PANGO_ENGINE_TYPE_SHAPE "PangoEngineShape"
131
149
 
132
150
  #define PANGO_TYPE_ENGINE_SHAPE (pango_engine_shape_get_type ())
@@ -205,12 +223,40 @@ GType pango_engine_shape_get_type (void) G_GNUC_CONST;
205
223
  typedef struct _PangoEngineInfo PangoEngineInfo;
206
224
  typedef struct _PangoEngineScriptInfo PangoEngineScriptInfo;
207
225
 
226
+ /**
227
+ * PangoEngineScriptInfo
228
+ * @script: a #PangoScript. The value %PANGO_SCRIPT_COMMON has
229
+ * the special meaning here of "all scripts"
230
+ * @langs: a semicolon separated list of languages that this
231
+ * engine handles for this script. This may be empty,
232
+ * in which case the engine is saying that it is a
233
+ * fallback choice for all languages for this range,
234
+ * but should not be used if another engine
235
+ * indicates that it is specific for the language for
236
+ * a given code point. An entry in this list of "*"
237
+ * indicates that this engine is specific to all
238
+ * languages for this range.
239
+ *
240
+ * The #PangoEngineScriptInfo structure contains
241
+ * information about how the shaper covers a particular script.
242
+ */
208
243
  struct _PangoEngineScriptInfo
209
244
  {
210
245
  PangoScript script;
211
246
  const gchar *langs;
212
247
  };
213
248
 
249
+ /**
250
+ * PangoEngineInfo:
251
+ * @id: a unique string ID for the engine.
252
+ * @engine_type: a string identifying the engine type.
253
+ * @render_type: a string identifying the render type.
254
+ * @scripts: array of scripts this engine supports.
255
+ * @n_scripts: number of items in @scripts.
256
+ *
257
+ * The #PangoEngineInfo structure contains information about a particular
258
+ * engine. It contains the following fields:
259
+ */
214
260
  struct _PangoEngineInfo
215
261
  {
216
262
  const gchar *id;
@@ -3,10 +3,10 @@
3
3
  #define PANGO_FEATURES_H
4
4
 
5
5
  #define PANGO_VERSION_MAJOR 1
6
- #define PANGO_VERSION_MINOR 34
6
+ #define PANGO_VERSION_MINOR 36
7
7
  #define PANGO_VERSION_MICRO 1
8
8
 
9
- #define PANGO_VERSION_STRING "1.34.1"
9
+ #define PANGO_VERSION_STRING "1.36.1"
10
10
 
11
11
 
12
12
  #endif
@@ -29,7 +29,24 @@
29
29
 
30
30
  G_BEGIN_DECLS
31
31
 
32
+ /**
33
+ * PangoFontDescription:
34
+ *
35
+ * The #PangoFontDescription structure represents the description
36
+ * of an ideal font. These structures are used both to list
37
+ * what fonts are available on the system and also for specifying
38
+ * the characteristics of a font to load.
39
+ */
32
40
  typedef struct _PangoFontDescription PangoFontDescription;
41
+ /**
42
+ * PangoFontMetrics:
43
+ *
44
+ * A #PangoFontMetrics structure holds the overall metric information
45
+ * for a font (possibly restricted to a script). The fields of this
46
+ * structure are private to implementations of a font backend. See
47
+ * the documentation of the corresponding getters for documentation
48
+ * of their meaning.
49
+ */
33
50
  typedef struct _PangoFontMetrics PangoFontMetrics;
34
51
 
35
52
  /**
@@ -46,11 +63,36 @@ typedef enum {
46
63
  PANGO_STYLE_ITALIC
47
64
  } PangoStyle;
48
65
 
66
+ /**
67
+ * PangoVariant:
68
+ * @PANGO_VARIANT_NORMAL: A normal font.
69
+ * @PANGO_VARIANT_SMALL_CAPS: A font with the lower case characters
70
+ * replaced by smaller variants of the capital characters.
71
+ *
72
+ * An enumeration specifying capitalization variant of the font.
73
+ */
49
74
  typedef enum {
50
75
  PANGO_VARIANT_NORMAL,
51
76
  PANGO_VARIANT_SMALL_CAPS
52
77
  } PangoVariant;
53
78
 
79
+ /**
80
+ * PangoWeight:
81
+ * @PANGO_WEIGHT_THIN: the thin weight (= 100; Since: 1.24)
82
+ * @PANGO_WEIGHT_ULTRALIGHT: the ultralight weight (= 200)
83
+ * @PANGO_WEIGHT_LIGHT: the light weight (= 300)
84
+ * @PANGO_WEIGHT_BOOK: the book weight (= 380; Since: 1.24)
85
+ * @PANGO_WEIGHT_NORMAL: the default weight (= 400)
86
+ * @PANGO_WEIGHT_MEDIUM: the normal weight (= 500; Since: 1.24)
87
+ * @PANGO_WEIGHT_SEMIBOLD: the semibold weight (= 600)
88
+ * @PANGO_WEIGHT_BOLD: the bold weight (= 700)
89
+ * @PANGO_WEIGHT_ULTRABOLD: the ultrabold weight (= 800)
90
+ * @PANGO_WEIGHT_HEAVY: the heavy weight (= 900)
91
+ * @PANGO_WEIGHT_ULTRAHEAVY: the ultraheavy weight (= 1000; Since: 1.24)
92
+ *
93
+ * An enumeration specifying the weight (boldness) of a font. This is a numerical
94
+ * value ranging from 100 to 900, but there are some predefined values:
95
+ */
54
96
  typedef enum {
55
97
  PANGO_WEIGHT_THIN = 100,
56
98
  PANGO_WEIGHT_ULTRALIGHT = 200,
@@ -65,6 +107,21 @@ typedef enum {
65
107
  PANGO_WEIGHT_ULTRAHEAVY = 1000
66
108
  } PangoWeight;
67
109
 
110
+ /**
111
+ * PangoStretch:
112
+ * @PANGO_STRETCH_ULTRA_CONDENSED: ultra condensed width
113
+ * @PANGO_STRETCH_EXTRA_CONDENSED: extra condensed width
114
+ * @PANGO_STRETCH_CONDENSED: condensed width
115
+ * @PANGO_STRETCH_SEMI_CONDENSED: semi condensed width
116
+ * @PANGO_STRETCH_NORMAL: the normal width
117
+ * @PANGO_STRETCH_SEMI_EXPANDED: semi expanded width
118
+ * @PANGO_STRETCH_EXPANDED: expanded width
119
+ * @PANGO_STRETCH_EXTRA_EXPANDED: extra expanded width
120
+ * @PANGO_STRETCH_ULTRA_EXPANDED: ultra expanded width
121
+ *
122
+ * An enumeration specifying the width of the font relative to other designs
123
+ * within a family.
124
+ */
68
125
  typedef enum {
69
126
  PANGO_STRETCH_ULTRA_CONDENSED,
70
127
  PANGO_STRETCH_EXTRA_CONDENSED,
@@ -77,6 +134,19 @@ typedef enum {
77
134
  PANGO_STRETCH_ULTRA_EXPANDED
78
135
  } PangoStretch;
79
136
 
137
+ /**
138
+ * PangoFontMask:
139
+ * @PANGO_FONT_MASK_FAMILY: the font family is specified.
140
+ * @PANGO_FONT_MASK_STYLE: the font style is specified.
141
+ * @PANGO_FONT_MASK_VARIANT: the font variant is specified.
142
+ * @PANGO_FONT_MASK_WEIGHT: the font weight is specified.
143
+ * @PANGO_FONT_MASK_STRETCH: the font stretch is specified.
144
+ * @PANGO_FONT_MASK_SIZE: the font size is specified.
145
+ * @PANGO_FONT_MASK_GRAVITY: the font gravity is specified (Since: 1.16.)
146
+ *
147
+ * The bits in a #PangoFontMask correspond to fields in a
148
+ * #PangoFontDescription that have been set.
149
+ */
80
150
  typedef enum {
81
151
  PANGO_FONT_MASK_FAMILY = 1 << 0,
82
152
  PANGO_FONT_MASK_STYLE = 1 << 1,
@@ -88,6 +158,41 @@ typedef enum {
88
158
  } PangoFontMask;
89
159
 
90
160
  /* CSS scale factors (1.2 factor between each size) */
161
+ /**
162
+ * PANGO_SCALE_XX_SMALL:
163
+ *
164
+ * The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).
165
+ */
166
+ /**
167
+ * PANGO_SCALE_X_SMALL:
168
+ *
169
+ * The scale factor for two shrinking steps (1 / (1.2 * 1.2)).
170
+ */
171
+ /**
172
+ * PANGO_SCALE_SMALL:
173
+ *
174
+ * The scale factor for one shrinking step (1 / 1.2).
175
+ */
176
+ /**
177
+ * PANGO_SCALE_MEDIUM:
178
+ *
179
+ * The scale factor for normal size (1.0).
180
+ */
181
+ /**
182
+ * PANGO_SCALE_LARGE:
183
+ *
184
+ * The scale factor for one magnification step (1.2).
185
+ */
186
+ /**
187
+ * PANGO_SCALE_X_LARGE:
188
+ *
189
+ * The scale factor for two magnification steps (1.2 * 1.2).
190
+ */
191
+ /**
192
+ * PANGO_SCALE_XX_LARGE:
193
+ *
194
+ * The scale factor for three magnification steps (1.2 * 1.2 * 1.2).
195
+ */
91
196
  #define PANGO_SCALE_XX_SMALL ((double)0.5787037037037)
92
197
  #define PANGO_SCALE_X_SMALL ((double)0.6444444444444)
93
198
  #define PANGO_SCALE_SMALL ((double)0.8333333333333)
@@ -100,6 +205,11 @@ typedef enum {
100
205
  * PangoFontDescription
101
206
  */
102
207
 
208
+ /**
209
+ * PANGO_TYPE_FONT_DESCRIPTION:
210
+ *
211
+ * The #GObject type for #PangoFontDescription.
212
+ */
103
213
  #define PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ())
104
214
 
105
215
  GType pango_font_description_get_type (void) G_GNUC_CONST;
@@ -163,6 +273,11 @@ char * pango_font_description_to_filename (const PangoFontDescrip
163
273
  * PangoFontMetrics
164
274
  */
165
275
 
276
+ /**
277
+ * PANGO_TYPE_FONT_METRICS:
278
+ *
279
+ * The #GObject type for #PangoFontMetrics.
280
+ */
166
281
  #define PANGO_TYPE_FONT_METRICS (pango_font_metrics_get_type ())
167
282
  GType pango_font_metrics_get_type (void) G_GNUC_CONST;
168
283
  PangoFontMetrics *pango_font_metrics_ref (PangoFontMetrics *metrics);
@@ -200,6 +315,23 @@ struct _PangoFontMetrics
200
315
  * PangoFontFamily
201
316
  */
202
317
 
318
+ /**
319
+ * PANGO_TYPE_FONT_FAMILY:
320
+ *
321
+ * The #GObject type for #PangoFontFamily.
322
+ */
323
+ /**
324
+ * PANGO_FONT_FAMILY:
325
+ * @object: a #GObject.
326
+ *
327
+ * Casts a #GObject to a #PangoFontFamily.
328
+ */
329
+ /**
330
+ * PANGO_IS_FONT_FAMILY:
331
+ * @object: a #GObject.
332
+ *
333
+ * Returns: %TRUE if @object is a #PangoFontFamily.
334
+ */
203
335
  #define PANGO_TYPE_FONT_FAMILY (pango_font_family_get_type ())
204
336
  #define PANGO_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FAMILY, PangoFontFamily))
205
337
  #define PANGO_IS_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FAMILY))
@@ -223,6 +355,14 @@ gboolean pango_font_family_is_monospace (PangoFontFamily *family) G_G
223
355
 
224
356
  typedef struct _PangoFontFamilyClass PangoFontFamilyClass;
225
357
 
358
+
359
+ /**
360
+ * PangoFontFamily:
361
+ *
362
+ * The #PangoFontFamily structure is used to represent a family of related
363
+ * font faces. The faces in a family share a common design, but differ in
364
+ * slant, weight, width and other aspects.
365
+ */
226
366
  struct _PangoFontFamily
227
367
  {
228
368
  GObject parent_instance;
@@ -254,6 +394,23 @@ struct _PangoFontFamilyClass
254
394
  * PangoFontFace
255
395
  */
256
396
 
397
+ /**
398
+ * PANGO_TYPE_FONT_FACE:
399
+ *
400
+ * The #GObject type for #PangoFontFace.
401
+ */
402
+ /**
403
+ * PANGO_FONT_FACE:
404
+ * @object: a #GObject.
405
+ *
406
+ * Casts a #GObject to a #PangoFontFace.
407
+ */
408
+ /**
409
+ * PANGO_IS_FONT_FACE:
410
+ * @object: a #GObject.
411
+ *
412
+ * Returns: %TRUE if @object is a #PangoFontFace.
413
+ */
257
414
  #define PANGO_TYPE_FONT_FACE (pango_font_face_get_type ())
258
415
  #define PANGO_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FACE, PangoFontFace))
259
416
  #define PANGO_IS_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FACE))
@@ -275,6 +432,12 @@ gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GN
275
432
 
276
433
  typedef struct _PangoFontFaceClass PangoFontFaceClass;
277
434
 
435
+ /**
436
+ * PangoFontFace:
437
+ *
438
+ * The #PangoFontFace structure is used to represent a group of fonts with
439
+ * the same family, slant, weight, width, but varying sizes.
440
+ */
278
441
  struct _PangoFontFace
279
442
  {
280
443
  GObject parent_instance;
@@ -306,6 +469,23 @@ struct _PangoFontFaceClass
306
469
  * PangoFont
307
470
  */
308
471
 
472
+ /**
473
+ * PANGO_TYPE_FONT:
474
+ *
475
+ * The #GObject type for #PangoFont.
476
+ */
477
+ /**
478
+ * PANGO_FONT:
479
+ * @object: a #GObject.
480
+ *
481
+ * Casts a #GObject to a #PangoFont.
482
+ */
483
+ /**
484
+ * PANGO_IS_FONT:
485
+ * @object: a #GObject.
486
+ *
487
+ * Returns: %TRUE if @object is a #PangoFont.
488
+ */
309
489
  #define PANGO_TYPE_FONT (pango_font_get_type ())
310
490
  #define PANGO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont))
311
491
  #define PANGO_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT))
@@ -335,6 +515,22 @@ PangoFontMap *pango_font_get_font_map (PangoFont *font);
335
515
 
336
516
  typedef struct _PangoFontClass PangoFontClass;
337
517
 
518
+ /**
519
+ * PangoFont:
520
+ *
521
+ * The #PangoFont structure is used to represent
522
+ * a font in a rendering-system-independent matter.
523
+ * To create an implementation of a #PangoFont,
524
+ * the rendering-system specific code should allocate
525
+ * a larger structure that contains a nested
526
+ * #PangoFont, fill in the <structfield>klass</structfield> member of
527
+ * the nested #PangoFont with a pointer to
528
+ * a appropriate #PangoFontClass, then call
529
+ * pango_font_init() on the structure.
530
+ *
531
+ * The #PangoFont structure contains one member
532
+ * which the implementation fills in.
533
+ */
338
534
  struct _PangoFont
339
535
  {
340
536
  GObject parent_instance;
@@ -375,6 +571,44 @@ struct _PangoFontClass
375
571
 
376
572
  #endif /* PANGO_ENABLE_BACKEND */
377
573
 
574
+ /**
575
+ * PANGO_GLYPH_EMPTY:
576
+ *
577
+ * The %PANGO_GLYPH_EMPTY macro represents a #PangoGlyph value that has a
578
+ * special meaning, which is a zero-width empty glyph. This is useful for
579
+ * example in shaper modules, to use as the glyph for various zero-width
580
+ * Unicode characters (those passing pango_is_zero_width()).
581
+ */
582
+ /**
583
+ * PANGO_GLYPH_INVALID_INPUT:
584
+ *
585
+ * The %PANGO_GLYPH_INVALID_INPUT macro represents a #PangoGlyph value that has a
586
+ * special meaning of invalid input. #PangoLayout produces one such glyph
587
+ * per invalid input UTF-8 byte and such a glyph is rendered as a crossed
588
+ * box.
589
+ *
590
+ * Note that this value is defined such that it has the %PANGO_GLYPH_UNKNOWN_FLAG
591
+ * on.
592
+ *
593
+ * Since: 1.20
594
+ */
595
+ /**
596
+ * PANGO_GLYPH_UNKNOWN_FLAG:
597
+ *
598
+ * The %PANGO_GLYPH_UNKNOWN_FLAG macro is a flag value that can be added to
599
+ * a #gunichar value of a valid Unicode character, to produce a #PangoGlyph
600
+ * value, representing an unknown-character glyph for the respective #gunichar.
601
+ */
602
+ /**
603
+ * PANGO_GET_UNKNOWN_GLYPH:
604
+ * @wc: a Unicode character
605
+ *
606
+ * The way this unknown glyphs are rendered is backend specific. For example,
607
+ * a box with the hexadecimal Unicode code-point of the character written in it
608
+ * is what is done in the most common backends.
609
+ *
610
+ * Returns: a #PangoGlyph value that means no glyph was found for @wc.
611
+ */
378
612
  #define PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF)
379
613
  #define PANGO_GLYPH_INVALID_INPUT ((PangoGlyph)0xFFFFFFFF)
380
614
  #define PANGO_GLYPH_UNKNOWN_FLAG ((PangoGlyph)0x10000000)