pango 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (530) hide show
  1. checksums.yaml +7 -0
  2. data/README +33 -0
  3. data/Rakefile +65 -0
  4. data/ext/pango/depend +12 -0
  5. data/ext/pango/extconf.rb +90 -0
  6. data/ext/pango/pango.def +18 -0
  7. data/ext/pango/rbpango.c +318 -0
  8. data/ext/pango/rbpango.h +96 -0
  9. data/ext/pango/rbpangoanalysis.c +218 -0
  10. data/ext/pango/rbpangoattribute.c +499 -0
  11. data/ext/pango/rbpangoattriterator.c +141 -0
  12. data/ext/pango/rbpangoattrlist.c +101 -0
  13. data/ext/pango/rbpangocairo.c +122 -0
  14. data/ext/pango/rbpangocairocontext.c +131 -0
  15. data/ext/pango/rbpangocolor.c +120 -0
  16. data/ext/pango/rbpangocontext.c +309 -0
  17. data/ext/pango/rbpangoconversions.h +111 -0
  18. data/ext/pango/rbpangocoverage.c +106 -0
  19. data/ext/pango/rbpangoengine.c +73 -0
  20. data/ext/pango/rbpangofont.c +110 -0
  21. data/ext/pango/rbpangofontdescription.c +282 -0
  22. data/ext/pango/rbpangofontface.c +73 -0
  23. data/ext/pango/rbpangofontfamily.c +79 -0
  24. data/ext/pango/rbpangofontmap.c +102 -0
  25. data/ext/pango/rbpangofontmetrics.c +85 -0
  26. data/ext/pango/rbpangofontset.c +69 -0
  27. data/ext/pango/rbpangofontsetsimple.c +60 -0
  28. data/ext/pango/rbpangoglyphinfo.c +123 -0
  29. data/ext/pango/rbpangoglyphitem.c +125 -0
  30. data/ext/pango/rbpangoglyphstring.c +151 -0
  31. data/ext/pango/rbpangogravity.c +54 -0
  32. data/ext/pango/rbpangoitem.c +95 -0
  33. data/ext/pango/rbpangolanguage.c +86 -0
  34. data/ext/pango/rbpangolayout.c +572 -0
  35. data/ext/pango/rbpangolayoutiter.c +189 -0
  36. data/ext/pango/rbpangolayoutline.c +239 -0
  37. data/ext/pango/rbpangologattr.c +109 -0
  38. data/ext/pango/rbpangomatrix.c +143 -0
  39. data/ext/pango/rbpangoprivate.h +49 -0
  40. data/ext/pango/rbpangorectangle.c +170 -0
  41. data/ext/pango/rbpangorenderer.c +193 -0
  42. data/ext/pango/rbpangoscript.c +84 -0
  43. data/ext/pango/rbpangoscriptiter.c +92 -0
  44. data/ext/pango/rbpangotabarray.c +128 -0
  45. data/extconf.rb +49 -0
  46. data/lib/2.0/pango.so +0 -0
  47. data/lib/2.1/pango.so +0 -0
  48. data/lib/2.2/pango.so +0 -0
  49. data/lib/pango.rb +79 -0
  50. data/sample/attribute.rb +82 -0
  51. data/sample/break.rb +28 -0
  52. data/sample/gdk_layout.rb +27 -0
  53. data/sample/glyphstring.rb +61 -0
  54. data/sample/item.rb +37 -0
  55. data/sample/label.rb +23 -0
  56. data/sample/layout.rb +102 -0
  57. data/sample/pango_cairo.rb +66 -0
  58. data/sample/parse.rb +33 -0
  59. data/sample/sample.txt +10 -0
  60. data/sample/script.rb +23 -0
  61. data/test/pango-test-utils.rb +9 -0
  62. data/test/run-test.rb +28 -0
  63. data/test/test-analysis.rb +26 -0
  64. data/test/test-attribute.rb +19 -0
  65. data/test/test-color.rb +47 -0
  66. data/test/test-language.rb +7 -0
  67. data/test/test-layout.rb +34 -0
  68. data/test/test-log-attr.rb +26 -0
  69. data/test/test-matrix.rb +26 -0
  70. data/test/test-rectangle.rb +26 -0
  71. data/vendor/local/bin/derb.exe +0 -0
  72. data/vendor/local/bin/genbrk.exe +0 -0
  73. data/vendor/local/bin/genccode.exe +0 -0
  74. data/vendor/local/bin/gencfu.exe +0 -0
  75. data/vendor/local/bin/gencmn.exe +0 -0
  76. data/vendor/local/bin/gencnval.exe +0 -0
  77. data/vendor/local/bin/gendict.exe +0 -0
  78. data/vendor/local/bin/gennorm2.exe +0 -0
  79. data/vendor/local/bin/genrb.exe +0 -0
  80. data/vendor/local/bin/gensprep.exe +0 -0
  81. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  82. data/vendor/local/bin/hb-shape.exe +0 -0
  83. data/vendor/local/bin/hb-view.exe +0 -0
  84. data/vendor/local/bin/icu-config +820 -0
  85. data/vendor/local/bin/icuinfo.exe +0 -0
  86. data/vendor/local/bin/icupkg.exe +0 -0
  87. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  88. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  89. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  90. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  91. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  92. data/vendor/local/bin/makeconv.exe +0 -0
  93. data/vendor/local/bin/pango-querymodules.exe +0 -0
  94. data/vendor/local/bin/pango-view.exe +0 -0
  95. data/vendor/local/bin/pkgdata.exe +0 -0
  96. data/vendor/local/bin/uconv.exe +0 -0
  97. data/vendor/local/etc/pango/pango.modules +19 -0
  98. data/vendor/local/include/harfbuzz/hb-blob.h +126 -0
  99. data/vendor/local/include/harfbuzz/hb-buffer.h +344 -0
  100. data/vendor/local/include/harfbuzz/hb-common.h +344 -0
  101. data/vendor/local/include/harfbuzz/hb-deprecated.h +51 -0
  102. data/vendor/local/include/harfbuzz/hb-face.h +117 -0
  103. data/vendor/local/include/harfbuzz/hb-font.h +507 -0
  104. data/vendor/local/include/harfbuzz/hb-ft.h +62 -0
  105. data/vendor/local/include/harfbuzz/hb-glib.h +52 -0
  106. data/vendor/local/include/harfbuzz/hb-icu.h +52 -0
  107. data/vendor/local/include/harfbuzz/hb-ot-font.h +41 -0
  108. data/vendor/local/include/harfbuzz/hb-ot-layout.h +302 -0
  109. data/vendor/local/include/harfbuzz/hb-ot-shape.h +53 -0
  110. data/vendor/local/include/harfbuzz/hb-ot-tag.h +59 -0
  111. data/vendor/local/include/harfbuzz/hb-ot.h +43 -0
  112. data/vendor/local/include/harfbuzz/hb-set.h +154 -0
  113. data/vendor/local/include/harfbuzz/hb-shape-plan.h +89 -0
  114. data/vendor/local/include/harfbuzz/hb-shape.h +81 -0
  115. data/vendor/local/include/harfbuzz/hb-unicode.h +445 -0
  116. data/vendor/local/include/harfbuzz/hb-version.h +66 -0
  117. data/vendor/local/include/harfbuzz/hb.h +47 -0
  118. data/vendor/local/include/layout/LEFontInstance.h +550 -0
  119. data/vendor/local/include/layout/LEGlyphFilter.h +45 -0
  120. data/vendor/local/include/layout/LEGlyphStorage.h +546 -0
  121. data/vendor/local/include/layout/LEInsertionList.h +177 -0
  122. data/vendor/local/include/layout/LELanguages.h +112 -0
  123. data/vendor/local/include/layout/LEScripts.h +263 -0
  124. data/vendor/local/include/layout/LESwaps.h +100 -0
  125. data/vendor/local/include/layout/LETableReference.h +418 -0
  126. data/vendor/local/include/layout/LETypes.h +728 -0
  127. data/vendor/local/include/layout/LayoutEngine.h +518 -0
  128. data/vendor/local/include/layout/ParagraphLayout.h +747 -0
  129. data/vendor/local/include/layout/RunArrays.h +676 -0
  130. data/vendor/local/include/layout/loengine.h +225 -0
  131. data/vendor/local/include/layout/playout.h +466 -0
  132. data/vendor/local/include/layout/plruns.h +441 -0
  133. data/vendor/local/include/pango-1.0/pango/pango-attributes.h +514 -0
  134. data/vendor/local/include/pango-1.0/pango/pango-bidi-type.h +136 -0
  135. data/vendor/local/include/pango-1.0/pango/pango-break.h +173 -0
  136. data/vendor/local/include/pango-1.0/pango/pango-context.h +112 -0
  137. data/vendor/local/include/pango-1.0/pango/pango-coverage.h +79 -0
  138. data/vendor/local/include/pango-1.0/pango/pango-engine.h +429 -0
  139. data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +69 -0
  140. data/vendor/local/include/pango-1.0/pango/pango-features.h +12 -0
  141. data/vendor/local/include/pango-1.0/pango/pango-font.h +622 -0
  142. data/vendor/local/include/pango-1.0/pango/pango-fontmap.h +167 -0
  143. data/vendor/local/include/pango-1.0/pango/pango-fontset.h +169 -0
  144. data/vendor/local/include/pango-1.0/pango/pango-glyph-item.h +158 -0
  145. data/vendor/local/include/pango-1.0/pango/pango-glyph.h +197 -0
  146. data/vendor/local/include/pango-1.0/pango/pango-gravity.h +128 -0
  147. data/vendor/local/include/pango-1.0/pango/pango-item.h +109 -0
  148. data/vendor/local/include/pango-1.0/pango/pango-language.h +61 -0
  149. data/vendor/local/include/pango-1.0/pango/pango-layout.h +340 -0
  150. data/vendor/local/include/pango-1.0/pango/pango-matrix.h +117 -0
  151. data/vendor/local/include/pango-1.0/pango/pango-modules.h +71 -0
  152. data/vendor/local/include/pango-1.0/pango/pango-ot.h +391 -0
  153. data/vendor/local/include/pango-1.0/pango/pango-renderer.h +260 -0
  154. data/vendor/local/include/pango-1.0/pango/pango-script.h +260 -0
  155. data/vendor/local/include/pango-1.0/pango/pango-tabs.h +87 -0
  156. data/vendor/local/include/pango-1.0/pango/pango-types.h +200 -0
  157. data/vendor/local/include/pango-1.0/pango/pango-utils.h +189 -0
  158. data/vendor/local/include/pango-1.0/pango/pango.h +48 -0
  159. data/vendor/local/include/pango-1.0/pango/pangocairo.h +169 -0
  160. data/vendor/local/include/pango-1.0/pango/pangofc-decoder.h +110 -0
  161. data/vendor/local/include/pango-1.0/pango/pangofc-font.h +153 -0
  162. data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +289 -0
  163. data/vendor/local/include/pango-1.0/pango/pangoft2.h +133 -0
  164. data/vendor/local/include/pango-1.0/pango/pangowin32.h +128 -0
  165. data/vendor/local/include/unicode/alphaindex.h +752 -0
  166. data/vendor/local/include/unicode/appendable.h +232 -0
  167. data/vendor/local/include/unicode/basictz.h +214 -0
  168. data/vendor/local/include/unicode/brkiter.h +655 -0
  169. data/vendor/local/include/unicode/bytestream.h +257 -0
  170. data/vendor/local/include/unicode/bytestrie.h +519 -0
  171. data/vendor/local/include/unicode/bytestriebuilder.h +181 -0
  172. data/vendor/local/include/unicode/calendar.h +2519 -0
  173. data/vendor/local/include/unicode/caniter.h +208 -0
  174. data/vendor/local/include/unicode/chariter.h +722 -0
  175. data/vendor/local/include/unicode/choicfmt.h +594 -0
  176. data/vendor/local/include/unicode/coleitr.h +404 -0
  177. data/vendor/local/include/unicode/coll.h +1267 -0
  178. data/vendor/local/include/unicode/compactdecimalformat.h +330 -0
  179. data/vendor/local/include/unicode/curramt.h +130 -0
  180. data/vendor/local/include/unicode/currpinf.h +258 -0
  181. data/vendor/local/include/unicode/currunit.h +110 -0
  182. data/vendor/local/include/unicode/datefmt.h +883 -0
  183. data/vendor/local/include/unicode/dbbi.h +40 -0
  184. data/vendor/local/include/unicode/dcfmtsym.h +482 -0
  185. data/vendor/local/include/unicode/decimfmt.h +2479 -0
  186. data/vendor/local/include/unicode/docmain.h +215 -0
  187. data/vendor/local/include/unicode/dtfmtsym.h +912 -0
  188. data/vendor/local/include/unicode/dtintrv.h +158 -0
  189. data/vendor/local/include/unicode/dtitvfmt.h +985 -0
  190. data/vendor/local/include/unicode/dtitvinf.h +514 -0
  191. data/vendor/local/include/unicode/dtptngen.h +498 -0
  192. data/vendor/local/include/unicode/dtrule.h +250 -0
  193. data/vendor/local/include/unicode/enumset.h +64 -0
  194. data/vendor/local/include/unicode/errorcode.h +137 -0
  195. data/vendor/local/include/unicode/fieldpos.h +291 -0
  196. data/vendor/local/include/unicode/filteredbrk.h +131 -0
  197. data/vendor/local/include/unicode/fmtable.h +760 -0
  198. data/vendor/local/include/unicode/format.h +305 -0
  199. data/vendor/local/include/unicode/fpositer.h +117 -0
  200. data/vendor/local/include/unicode/gender.h +111 -0
  201. data/vendor/local/include/unicode/gregocal.h +777 -0
  202. data/vendor/local/include/unicode/icudataver.h +41 -0
  203. data/vendor/local/include/unicode/icuplug.h +371 -0
  204. data/vendor/local/include/unicode/idna.h +323 -0
  205. data/vendor/local/include/unicode/listformatter.h +167 -0
  206. data/vendor/local/include/unicode/localpointer.h +304 -0
  207. data/vendor/local/include/unicode/locdspnm.h +204 -0
  208. data/vendor/local/include/unicode/locid.h +815 -0
  209. data/vendor/local/include/unicode/measfmt.h +389 -0
  210. data/vendor/local/include/unicode/measunit.h +1443 -0
  211. data/vendor/local/include/unicode/measure.h +159 -0
  212. data/vendor/local/include/unicode/messagepattern.h +943 -0
  213. data/vendor/local/include/unicode/msgfmt.h +1093 -0
  214. data/vendor/local/include/unicode/normalizer2.h +658 -0
  215. data/vendor/local/include/unicode/normlzr.h +797 -0
  216. data/vendor/local/include/unicode/numfmt.h +1187 -0
  217. data/vendor/local/include/unicode/numsys.h +208 -0
  218. data/vendor/local/include/unicode/parseerr.h +92 -0
  219. data/vendor/local/include/unicode/parsepos.h +230 -0
  220. data/vendor/local/include/unicode/platform.h +751 -0
  221. data/vendor/local/include/unicode/plurfmt.h +615 -0
  222. data/vendor/local/include/unicode/plurrule.h +501 -0
  223. data/vendor/local/include/unicode/ptypes.h +126 -0
  224. data/vendor/local/include/unicode/putil.h +181 -0
  225. data/vendor/local/include/unicode/rbbi.h +782 -0
  226. data/vendor/local/include/unicode/rbnf.h +1032 -0
  227. data/vendor/local/include/unicode/rbtz.h +362 -0
  228. data/vendor/local/include/unicode/regex.h +1857 -0
  229. data/vendor/local/include/unicode/region.h +228 -0
  230. data/vendor/local/include/unicode/reldatefmt.h +498 -0
  231. data/vendor/local/include/unicode/rep.h +261 -0
  232. data/vendor/local/include/unicode/resbund.h +490 -0
  233. data/vendor/local/include/unicode/schriter.h +187 -0
  234. data/vendor/local/include/unicode/scientificformathelper.h +139 -0
  235. data/vendor/local/include/unicode/search.h +575 -0
  236. data/vendor/local/include/unicode/selfmt.h +367 -0
  237. data/vendor/local/include/unicode/simpletz.h +928 -0
  238. data/vendor/local/include/unicode/smpdtfmt.h +1592 -0
  239. data/vendor/local/include/unicode/sortkey.h +338 -0
  240. data/vendor/local/include/unicode/std_string.h +37 -0
  241. data/vendor/local/include/unicode/strenum.h +276 -0
  242. data/vendor/local/include/unicode/stringpiece.h +224 -0
  243. data/vendor/local/include/unicode/stringtriebuilder.h +402 -0
  244. data/vendor/local/include/unicode/stsearch.h +504 -0
  245. data/vendor/local/include/unicode/symtable.h +112 -0
  246. data/vendor/local/include/unicode/tblcoll.h +873 -0
  247. data/vendor/local/include/unicode/timezone.h +948 -0
  248. data/vendor/local/include/unicode/tmunit.h +129 -0
  249. data/vendor/local/include/unicode/tmutamt.h +168 -0
  250. data/vendor/local/include/unicode/tmutfmt.h +243 -0
  251. data/vendor/local/include/unicode/translit.h +1342 -0
  252. data/vendor/local/include/unicode/tzfmt.h +1098 -0
  253. data/vendor/local/include/unicode/tznames.h +404 -0
  254. data/vendor/local/include/unicode/tzrule.h +828 -0
  255. data/vendor/local/include/unicode/tztrans.h +195 -0
  256. data/vendor/local/include/unicode/ubidi.h +2186 -0
  257. data/vendor/local/include/unicode/ubrk.h +540 -0
  258. data/vendor/local/include/unicode/ucal.h +1560 -0
  259. data/vendor/local/include/unicode/ucasemap.h +423 -0
  260. data/vendor/local/include/unicode/ucat.h +158 -0
  261. data/vendor/local/include/unicode/uchar.h +3426 -0
  262. data/vendor/local/include/unicode/ucharstrie.h +576 -0
  263. data/vendor/local/include/unicode/ucharstriebuilder.h +185 -0
  264. data/vendor/local/include/unicode/uchriter.h +381 -0
  265. data/vendor/local/include/unicode/uclean.h +258 -0
  266. data/vendor/local/include/unicode/ucnv.h +2036 -0
  267. data/vendor/local/include/unicode/ucnv_cb.h +162 -0
  268. data/vendor/local/include/unicode/ucnv_err.h +463 -0
  269. data/vendor/local/include/unicode/ucnvsel.h +187 -0
  270. data/vendor/local/include/unicode/ucol.h +1474 -0
  271. data/vendor/local/include/unicode/ucoleitr.h +266 -0
  272. data/vendor/local/include/unicode/uconfig.h +430 -0
  273. data/vendor/local/include/unicode/ucsdet.h +413 -0
  274. data/vendor/local/include/unicode/ucurr.h +424 -0
  275. data/vendor/local/include/unicode/udat.h +1536 -0
  276. data/vendor/local/include/unicode/udata.h +430 -0
  277. data/vendor/local/include/unicode/udateintervalformat.h +181 -0
  278. data/vendor/local/include/unicode/udatpg.h +588 -0
  279. data/vendor/local/include/unicode/udisplaycontext.h +150 -0
  280. data/vendor/local/include/unicode/uenum.h +206 -0
  281. data/vendor/local/include/unicode/uformattable.h +280 -0
  282. data/vendor/local/include/unicode/ugender.h +82 -0
  283. data/vendor/local/include/unicode/uidna.h +762 -0
  284. data/vendor/local/include/unicode/uiter.h +707 -0
  285. data/vendor/local/include/unicode/uldnames.h +302 -0
  286. data/vendor/local/include/unicode/uloc.h +1256 -0
  287. data/vendor/local/include/unicode/ulocdata.h +277 -0
  288. data/vendor/local/include/unicode/umachine.h +356 -0
  289. data/vendor/local/include/unicode/umisc.h +60 -0
  290. data/vendor/local/include/unicode/umsg.h +623 -0
  291. data/vendor/local/include/unicode/unifilt.h +120 -0
  292. data/vendor/local/include/unicode/unifunct.h +125 -0
  293. data/vendor/local/include/unicode/unimatch.h +163 -0
  294. data/vendor/local/include/unicode/unirepl.h +97 -0
  295. data/vendor/local/include/unicode/uniset.h +1691 -0
  296. data/vendor/local/include/unicode/unistr.h +4470 -0
  297. data/vendor/local/include/unicode/unorm.h +561 -0
  298. data/vendor/local/include/unicode/unorm2.h +528 -0
  299. data/vendor/local/include/unicode/unum.h +1328 -0
  300. data/vendor/local/include/unicode/unumsys.h +170 -0
  301. data/vendor/local/include/unicode/uobject.h +320 -0
  302. data/vendor/local/include/unicode/upluralrules.h +145 -0
  303. data/vendor/local/include/unicode/uregex.h +1591 -0
  304. data/vendor/local/include/unicode/uregion.h +248 -0
  305. data/vendor/local/include/unicode/urename.h +1784 -0
  306. data/vendor/local/include/unicode/urep.h +155 -0
  307. data/vendor/local/include/unicode/ures.h +887 -0
  308. data/vendor/local/include/unicode/uscript.h +642 -0
  309. data/vendor/local/include/unicode/usearch.h +885 -0
  310. data/vendor/local/include/unicode/uset.h +1126 -0
  311. data/vendor/local/include/unicode/usetiter.h +318 -0
  312. data/vendor/local/include/unicode/ushape.h +474 -0
  313. data/vendor/local/include/unicode/uspoof.h +1064 -0
  314. data/vendor/local/include/unicode/usprep.h +269 -0
  315. data/vendor/local/include/unicode/ustdio.h +1018 -0
  316. data/vendor/local/include/unicode/ustream.h +68 -0
  317. data/vendor/local/include/unicode/ustring.h +1700 -0
  318. data/vendor/local/include/unicode/ustringtrie.h +95 -0
  319. data/vendor/local/include/unicode/utext.h +1600 -0
  320. data/vendor/local/include/unicode/utf.h +223 -0
  321. data/vendor/local/include/unicode/utf16.h +623 -0
  322. data/vendor/local/include/unicode/utf32.h +23 -0
  323. data/vendor/local/include/unicode/utf8.h +824 -0
  324. data/vendor/local/include/unicode/utf_old.h +1169 -0
  325. data/vendor/local/include/unicode/utmscale.h +481 -0
  326. data/vendor/local/include/unicode/utrace.h +359 -0
  327. data/vendor/local/include/unicode/utrans.h +658 -0
  328. data/vendor/local/include/unicode/utypes.h +723 -0
  329. data/vendor/local/include/unicode/uvernum.h +170 -0
  330. data/vendor/local/include/unicode/uversion.h +193 -0
  331. data/vendor/local/include/unicode/vtzone.h +455 -0
  332. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  333. data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  334. data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
  335. data/vendor/local/lib/icu/54.1/Makefile.inc +293 -0
  336. data/vendor/local/lib/icu/54.1/pkgdata.inc +17 -0
  337. data/vendor/local/lib/icu/Makefile.inc +293 -0
  338. data/vendor/local/lib/icu/pkgdata.inc +17 -0
  339. data/vendor/local/lib/icudt.dll +0 -0
  340. data/vendor/local/lib/icudt54.dll +0 -0
  341. data/vendor/local/lib/icuin.dll +0 -0
  342. data/vendor/local/lib/icuin54.dll +0 -0
  343. data/vendor/local/lib/icuio.dll +0 -0
  344. data/vendor/local/lib/icuio54.dll +0 -0
  345. data/vendor/local/lib/icule.dll +0 -0
  346. data/vendor/local/lib/icule54.dll +0 -0
  347. data/vendor/local/lib/iculx.dll +0 -0
  348. data/vendor/local/lib/iculx54.dll +0 -0
  349. data/vendor/local/lib/icutest.dll +0 -0
  350. data/vendor/local/lib/icutest54.dll +0 -0
  351. data/vendor/local/lib/icutu.dll +0 -0
  352. data/vendor/local/lib/icutu54.dll +0 -0
  353. data/vendor/local/lib/icuuc.dll +0 -0
  354. data/vendor/local/lib/icuuc54.dll +0 -0
  355. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  356. data/vendor/local/lib/libharfbuzz-icu.la +41 -0
  357. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  358. data/vendor/local/lib/libharfbuzz.la +41 -0
  359. data/vendor/local/lib/libicudt.dll.a +0 -0
  360. data/vendor/local/lib/libicuin.dll.a +0 -0
  361. data/vendor/local/lib/libicuio.dll.a +0 -0
  362. data/vendor/local/lib/libicule.dll.a +0 -0
  363. data/vendor/local/lib/libiculx.dll.a +0 -0
  364. data/vendor/local/lib/libicutest.dll.a +0 -0
  365. data/vendor/local/lib/libicutu.dll.a +0 -0
  366. data/vendor/local/lib/libicuuc.dll.a +0 -0
  367. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  368. data/vendor/local/lib/libpango-1.0.la +41 -0
  369. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  370. data/vendor/local/lib/libpangocairo-1.0.la +41 -0
  371. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  372. data/vendor/local/lib/libpangoft2-1.0.la +41 -0
  373. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  374. data/vendor/local/lib/libpangowin32-1.0.la +41 -0
  375. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
  376. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
  377. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +41 -0
  378. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
  379. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
  380. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +41 -0
  381. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
  382. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
  383. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +41 -0
  384. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
  385. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
  386. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +41 -0
  387. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
  388. data/vendor/local/lib/pkgconfig/harfbuzz.pc +11 -0
  389. data/vendor/local/lib/pkgconfig/icu-i18n.pc +38 -0
  390. data/vendor/local/lib/pkgconfig/icu-io.pc +38 -0
  391. data/vendor/local/lib/pkgconfig/icu-le.pc +38 -0
  392. data/vendor/local/lib/pkgconfig/icu-lx.pc +38 -0
  393. data/vendor/local/lib/pkgconfig/icu-uc.pc +38 -0
  394. data/vendor/local/lib/pkgconfig/pango.pc +14 -0
  395. data/vendor/local/lib/pkgconfig/pangocairo.pc +11 -0
  396. data/vendor/local/lib/pkgconfig/pangoft2.pc +12 -0
  397. data/vendor/local/lib/pkgconfig/pangowin32.pc +11 -0
  398. data/vendor/local/share/gir-1.0/Pango-1.0.gir +13329 -0
  399. data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +833 -0
  400. data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +354 -0
  401. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +75 -0
  402. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +1449 -0
  403. data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +98 -0
  404. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +46 -0
  405. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +610 -0
  406. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1780 -0
  407. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +1337 -0
  408. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +144 -0
  409. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +99 -0
  410. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +630 -0
  411. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +2529 -0
  412. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +188 -0
  413. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +120 -0
  414. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +50 -0
  415. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +120 -0
  416. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +120 -0
  417. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +771 -0
  418. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +172 -0
  419. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +50 -0
  420. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +966 -0
  421. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +405 -0
  422. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +286 -0
  423. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1523 -0
  424. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +100 -0
  425. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +182 -0
  426. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +50 -0
  427. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +378 -0
  428. data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
  429. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +105 -0
  430. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +496 -0
  431. data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
  432. data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
  433. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +59 -0
  434. data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
  435. data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
  436. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +476 -0
  437. data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
  438. data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
  439. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +224 -0
  440. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +255 -0
  441. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +246 -0
  442. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +500 -0
  443. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +1001 -0
  444. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +301 -0
  445. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +1219 -0
  446. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +89 -0
  447. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +135 -0
  448. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +49 -0
  449. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +64 -0
  450. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +228 -0
  451. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +152 -0
  452. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +122 -0
  453. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +87 -0
  454. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +124 -0
  455. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +97 -0
  456. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +46 -0
  457. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +39 -0
  458. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +39 -0
  459. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +53 -0
  460. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +42 -0
  461. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +38 -0
  462. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +201 -0
  463. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +165 -0
  464. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +171 -0
  465. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +284 -0
  466. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2968 -0
  467. data/vendor/local/share/gtk-doc/html/pango/home.png +0 -0
  468. data/vendor/local/share/gtk-doc/html/pango/index.html +146 -0
  469. data/vendor/local/share/gtk-doc/html/pango/index.sgml +957 -0
  470. data/vendor/local/share/gtk-doc/html/pango/layout.gif +0 -0
  471. data/vendor/local/share/gtk-doc/html/pango/left-insensitive.png +0 -0
  472. data/vendor/local/share/gtk-doc/html/pango/left.png +0 -0
  473. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +68 -0
  474. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +514 -0
  475. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +1632 -0
  476. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +115 -0
  477. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +508 -0
  478. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +358 -0
  479. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +4154 -0
  480. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +956 -0
  481. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +2627 -0
  482. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4153 -0
  483. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +965 -0
  484. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +331 -0
  485. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +2202 -0
  486. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1430 -0
  487. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +582 -0
  488. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +3356 -0
  489. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +2079 -0
  490. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +325 -0
  491. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +523 -0
  492. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +1028 -0
  493. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1275 -0
  494. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +91 -0
  495. data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +131 -0
  496. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +786 -0
  497. data/vendor/local/share/gtk-doc/html/pango/pango.html +63 -0
  498. data/vendor/local/share/gtk-doc/html/pango/rendering.html +47 -0
  499. data/vendor/local/share/gtk-doc/html/pango/right-insensitive.png +0 -0
  500. data/vendor/local/share/gtk-doc/html/pango/right.png +0 -0
  501. data/vendor/local/share/gtk-doc/html/pango/rotated-text.png +0 -0
  502. data/vendor/local/share/gtk-doc/html/pango/style.css +476 -0
  503. data/vendor/local/share/gtk-doc/html/pango/tools.html +33 -0
  504. data/vendor/local/share/gtk-doc/html/pango/up-insensitive.png +0 -0
  505. data/vendor/local/share/gtk-doc/html/pango/up.png +0 -0
  506. data/vendor/local/share/icu/54.1/config/mh-mingw64 +158 -0
  507. data/vendor/local/share/icu/54.1/install-sh +251 -0
  508. data/vendor/local/share/icu/54.1/license.html +385 -0
  509. data/vendor/local/share/icu/54.1/mkinstalldirs +43 -0
  510. data/vendor/local/share/license/harfbuzz/AUTHORS +9 -0
  511. data/vendor/local/share/license/harfbuzz/COPYING +36 -0
  512. data/vendor/local/share/license/pango/AUTHORS +2 -0
  513. data/vendor/local/share/license/pango/COPYING +482 -0
  514. data/vendor/local/share/man/man1/derb.1 +196 -0
  515. data/vendor/local/share/man/man1/genbrk.1 +112 -0
  516. data/vendor/local/share/man/man1/gencfu.1 +91 -0
  517. data/vendor/local/share/man/man1/gencnval.1 +91 -0
  518. data/vendor/local/share/man/man1/gendict.1 +131 -0
  519. data/vendor/local/share/man/man1/genrb.1 +146 -0
  520. data/vendor/local/share/man/man1/icu-config.1 +288 -0
  521. data/vendor/local/share/man/man1/makeconv.1 +112 -0
  522. data/vendor/local/share/man/man1/pango-querymodules.1 +106 -0
  523. data/vendor/local/share/man/man1/pango-view.1 +1 -0
  524. data/vendor/local/share/man/man1/pkgdata.1 +258 -0
  525. data/vendor/local/share/man/man1/uconv.1 +443 -0
  526. data/vendor/local/share/man/man8/genccode.8 +106 -0
  527. data/vendor/local/share/man/man8/gencmn.8 +129 -0
  528. data/vendor/local/share/man/man8/gensprep.8 +102 -0
  529. data/vendor/local/share/man/man8/icupkg.8 +204 -0
  530. metadata +599 -0
@@ -0,0 +1,1632 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Pango Reference Manual: Cairo Rendering</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
+ <link rel="home" href="index.html" title="Pango Reference Manual">
8
+ <link rel="up" href="rendering.html" title="Rendering with Pango">
9
+ <link rel="prev" href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">
10
+ <link rel="next" href="pango-CoreText-Fonts.html" title="CoreText Fonts">
11
+ <meta name="generator" content="GTK-Doc V1.21.1 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#pango-Cairo-Rendering.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19
+ <a href="#pango-Cairo-Rendering.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_prerequisites">  <span class="dim">|</span> 
20
+ <a href="#pango-Cairo-Rendering.prerequisites" class="shortcut">Prerequisites</a></span>
21
+ </td>
22
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23
+ <td><a accesskey="u" href="rendering.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24
+ <td><a accesskey="p" href="pango-Xft-Fonts-and-Rendering.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25
+ <td><a accesskey="n" href="pango-CoreText-Fonts.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26
+ </tr></table>
27
+ <div class="refentry">
28
+ <a name="pango-Cairo-Rendering"></a><div class="titlepage"></div>
29
+ <div class="refnamediv"><table width="100%"><tr>
30
+ <td valign="top">
31
+ <h2><span class="refentrytitle"><a name="pango-Cairo-Rendering.top_of_page"></a>Cairo Rendering</span></h2>
32
+ <p>Cairo Rendering — Rendering with the Cairo backend</p>
33
+ </td>
34
+ <td class="gallery_image" valign="top" align="right"></td>
35
+ </tr></table></div>
36
+ <div class="refsect1">
37
+ <a name="pango-Cairo-Rendering.functions"></a><h2>Functions</h2>
38
+ <div class="informaltable"><table width="100%" border="0">
39
+ <colgroup>
40
+ <col width="150px" class="functions_return">
41
+ <col class="functions_name">
42
+ </colgroup>
43
+ <tbody>
44
+ <tr>
45
+ <td class="function_type">
46
+ <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
47
+ </td>
48
+ <td class="function_name">
49
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()">pango_cairo_font_map_get_default</a> <span class="c_punctuation">()</span>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <td class="function_type">
54
+ <span class="returnvalue">void</span>
55
+ </td>
56
+ <td class="function_name">
57
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()">pango_cairo_font_map_set_default</a> <span class="c_punctuation">()</span>
58
+ </td>
59
+ </tr>
60
+ <tr>
61
+ <td class="function_type">
62
+ <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
63
+ </td>
64
+ <td class="function_name">
65
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()">pango_cairo_font_map_new</a> <span class="c_punctuation">()</span>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <td class="function_type">
70
+ <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
71
+ </td>
72
+ <td class="function_name">
73
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new-for-font-type" title="pango_cairo_font_map_new_for_font_type ()">pango_cairo_font_map_new_for_font_type</a> <span class="c_punctuation">()</span>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <td class="function_type">
78
+ <span class="returnvalue">cairo_font_type_t</span>
79
+ </td>
80
+ <td class="function_name">
81
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-font-type" title="pango_cairo_font_map_get_font_type ()">pango_cairo_font_map_get_font_type</a> <span class="c_punctuation">()</span>
82
+ </td>
83
+ </tr>
84
+ <tr>
85
+ <td class="function_type">
86
+ <span class="returnvalue">void</span>
87
+ </td>
88
+ <td class="function_name">
89
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()">pango_cairo_font_map_set_resolution</a> <span class="c_punctuation">()</span>
90
+ </td>
91
+ </tr>
92
+ <tr>
93
+ <td class="function_type">
94
+ <span class="returnvalue">double</span>
95
+ </td>
96
+ <td class="function_name">
97
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-resolution" title="pango_cairo_font_map_get_resolution ()">pango_cairo_font_map_get_resolution</a> <span class="c_punctuation">()</span>
98
+ </td>
99
+ </tr>
100
+ <tr>
101
+ <td class="function_type">
102
+ <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *
103
+ </td>
104
+ <td class="function_name">
105
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()">pango_cairo_font_map_create_context</a> <span class="c_punctuation">()</span>
106
+ </td>
107
+ </tr>
108
+ <tr>
109
+ <td class="function_type">
110
+ <span class="returnvalue">cairo_scaled_font_t</span> *
111
+ </td>
112
+ <td class="function_name">
113
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-get-scaled-font" title="pango_cairo_font_get_scaled_font ()">pango_cairo_font_get_scaled_font</a> <span class="c_punctuation">()</span>
114
+ </td>
115
+ </tr>
116
+ <tr>
117
+ <td class="function_type">
118
+ <span class="returnvalue">void</span>
119
+ </td>
120
+ <td class="function_name">
121
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()">pango_cairo_context_set_resolution</a> <span class="c_punctuation">()</span>
122
+ </td>
123
+ </tr>
124
+ <tr>
125
+ <td class="function_type">
126
+ <span class="returnvalue">double</span>
127
+ </td>
128
+ <td class="function_name">
129
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-resolution" title="pango_cairo_context_get_resolution ()">pango_cairo_context_get_resolution</a> <span class="c_punctuation">()</span>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td class="function_type">
134
+ <span class="returnvalue">void</span>
135
+ </td>
136
+ <td class="function_name">
137
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()">pango_cairo_context_set_font_options</a> <span class="c_punctuation">()</span>
138
+ </td>
139
+ </tr>
140
+ <tr>
141
+ <td class="function_type">const <span class="returnvalue">cairo_font_options_t</span> *
142
+ </td>
143
+ <td class="function_name">
144
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-font-options" title="pango_cairo_context_get_font_options ()">pango_cairo_context_get_font_options</a> <span class="c_punctuation">()</span>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td class="function_type">
149
+ <span class="returnvalue">void</span>
150
+ </td>
151
+ <td class="function_name">
152
+ <span class="c_punctuation">(</span><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()">*PangoCairoShapeRendererFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
153
+ </td>
154
+ </tr>
155
+ <tr>
156
+ <td class="function_type">
157
+ <span class="returnvalue">void</span>
158
+ </td>
159
+ <td class="function_name">
160
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()">pango_cairo_context_set_shape_renderer</a> <span class="c_punctuation">()</span>
161
+ </td>
162
+ </tr>
163
+ <tr>
164
+ <td class="function_type">
165
+ <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a>
166
+ </td>
167
+ <td class="function_name">
168
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-shape-renderer" title="pango_cairo_context_get_shape_renderer ()">pango_cairo_context_get_shape_renderer</a> <span class="c_punctuation">()</span>
169
+ </td>
170
+ </tr>
171
+ <tr>
172
+ <td class="function_type">
173
+ <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *
174
+ </td>
175
+ <td class="function_name">
176
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-context" title="pango_cairo_create_context ()">pango_cairo_create_context</a> <span class="c_punctuation">()</span>
177
+ </td>
178
+ </tr>
179
+ <tr>
180
+ <td class="function_type">
181
+ <span class="returnvalue">void</span>
182
+ </td>
183
+ <td class="function_name">
184
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()">pango_cairo_update_context</a> <span class="c_punctuation">()</span>
185
+ </td>
186
+ </tr>
187
+ <tr>
188
+ <td class="function_type">
189
+ <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *
190
+ </td>
191
+ <td class="function_name">
192
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()">pango_cairo_create_layout</a> <span class="c_punctuation">()</span>
193
+ </td>
194
+ </tr>
195
+ <tr>
196
+ <td class="function_type">
197
+ <span class="returnvalue">void</span>
198
+ </td>
199
+ <td class="function_name">
200
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()">pango_cairo_update_layout</a> <span class="c_punctuation">()</span>
201
+ </td>
202
+ </tr>
203
+ <tr>
204
+ <td class="function_type">
205
+ <span class="returnvalue">void</span>
206
+ </td>
207
+ <td class="function_name">
208
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()">pango_cairo_show_glyph_string</a> <span class="c_punctuation">()</span>
209
+ </td>
210
+ </tr>
211
+ <tr>
212
+ <td class="function_type">
213
+ <span class="returnvalue">void</span>
214
+ </td>
215
+ <td class="function_name">
216
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-item" title="pango_cairo_show_glyph_item ()">pango_cairo_show_glyph_item</a> <span class="c_punctuation">()</span>
217
+ </td>
218
+ </tr>
219
+ <tr>
220
+ <td class="function_type">
221
+ <span class="returnvalue">void</span>
222
+ </td>
223
+ <td class="function_name">
224
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout-line" title="pango_cairo_show_layout_line ()">pango_cairo_show_layout_line</a> <span class="c_punctuation">()</span>
225
+ </td>
226
+ </tr>
227
+ <tr>
228
+ <td class="function_type">
229
+ <span class="returnvalue">void</span>
230
+ </td>
231
+ <td class="function_name">
232
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()">pango_cairo_show_layout</a> <span class="c_punctuation">()</span>
233
+ </td>
234
+ </tr>
235
+ <tr>
236
+ <td class="function_type">
237
+ <span class="returnvalue">void</span>
238
+ </td>
239
+ <td class="function_name">
240
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-error-underline" title="pango_cairo_show_error_underline ()">pango_cairo_show_error_underline</a> <span class="c_punctuation">()</span>
241
+ </td>
242
+ </tr>
243
+ <tr>
244
+ <td class="function_type">
245
+ <span class="returnvalue">void</span>
246
+ </td>
247
+ <td class="function_name">
248
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-glyph-string-path" title="pango_cairo_glyph_string_path ()">pango_cairo_glyph_string_path</a> <span class="c_punctuation">()</span>
249
+ </td>
250
+ </tr>
251
+ <tr>
252
+ <td class="function_type">
253
+ <span class="returnvalue">void</span>
254
+ </td>
255
+ <td class="function_name">
256
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()">pango_cairo_layout_line_path</a> <span class="c_punctuation">()</span>
257
+ </td>
258
+ </tr>
259
+ <tr>
260
+ <td class="function_type">
261
+ <span class="returnvalue">void</span>
262
+ </td>
263
+ <td class="function_name">
264
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()">pango_cairo_layout_path</a> <span class="c_punctuation">()</span>
265
+ </td>
266
+ </tr>
267
+ <tr>
268
+ <td class="function_type">
269
+ <span class="returnvalue">void</span>
270
+ </td>
271
+ <td class="function_name">
272
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-error-underline-path" title="pango_cairo_error_underline_path ()">pango_cairo_error_underline_path</a> <span class="c_punctuation">()</span>
273
+ </td>
274
+ </tr>
275
+ </tbody>
276
+ </table></div>
277
+ </div>
278
+ <a name="PangoCairoFont"></a><a name="PangoCairoFontMap"></a><div class="refsect1">
279
+ <a name="pango-Cairo-Rendering.other"></a><h2>Types and Values</h2>
280
+ <div class="informaltable"><table width="100%" border="0">
281
+ <colgroup>
282
+ <col width="150px" class="name">
283
+ <col class="description">
284
+ </colgroup>
285
+ <tbody>
286
+ <tr>
287
+ <td class="datatype_keyword"> </td>
288
+ <td class="function_name"><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont-struct" title="PangoCairoFont">PangoCairoFont</a></td>
289
+ </tr>
290
+ <tr>
291
+ <td class="datatype_keyword"> </td>
292
+ <td class="function_name"><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap-struct" title="PangoCairoFontMap">PangoCairoFontMap</a></td>
293
+ </tr>
294
+ </tbody>
295
+ </table></div>
296
+ </div>
297
+ <div class="refsect1">
298
+ <a name="pango-Cairo-Rendering.object-hierarchy"></a><h2>Object Hierarchy</h2>
299
+ <pre class="screen"> GInterface
300
+ <span class="lineart">├──</span> PangoCairoFont
301
+ <span class="lineart">╰──</span> PangoCairoFontMap
302
+ </pre>
303
+ </div>
304
+ <div class="refsect1">
305
+ <a name="pango-Cairo-Rendering.prerequisites"></a><h2>Prerequisites</h2>
306
+ <p>
307
+ PangoCairoFont requires
308
+ <a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a>.</p>
309
+ <p>
310
+ PangoCairoFontMap requires
311
+ <a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>.</p>
312
+ </div>
313
+ <div class="refsect1">
314
+ <a name="pango-Cairo-Rendering.description"></a><h2>Description</h2>
315
+ <p>The <a class="ulink" href="http://cairographics.org" target="_top">Cairo library</a> is a
316
+ vector graphics library with a powerful rendering model. It has such
317
+ features as anti-aliased primitives, alpha-compositing, and
318
+ gradients. Multiple backends for Cairo are available, to allow
319
+ rendering to images, to PDF files, and to the screen on X and on other
320
+ windowing systems. The functions in this section allow using Pango
321
+ to render to Cairo surfaces.</p>
322
+ <p>Using Pango with Cairo is straightforward. A <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> created
323
+ with <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()"><code class="function">pango_cairo_font_map_create_context()</code></a> can be used on any
324
+ Cairo context (cairo_t), but needs to be updated to match the
325
+ current transformation matrix and target surface of the Cairo context
326
+ using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>. The convenience functions
327
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> and <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()"><code class="function">pango_cairo_update_layout()</code></a> handle
328
+ the common case where the program doesn't need to manipulate the
329
+ properties of the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.</p>
330
+ <p>When you get the metrics of a layout or of a piece of a layout using
331
+ functions such as <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()"><code class="function">pango_layout_get_extents()</code></a>, the reported metrics
332
+ are in user-space coordinates. If a piece of text is 10 units long,
333
+ and you call cairo_scale (cr, 2.0), it still is more-or-less 10
334
+ units long. However, the results will be affected by hinting
335
+ (that is, the process of adjusting the text to look good on the
336
+ pixel grid), so you shouldn't assume they are completely independent
337
+ of the current transformation matrix. Note that the basic metrics
338
+ functions in Pango report results in integer Pango units. To get
339
+ to the floating point units used in Cairo divide by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>.</p>
340
+ <div class="example">
341
+ <a name="rotated-example"></a><p class="title"><b>Example 1. Using Pango with Cairo</b></p>
342
+ <div class="example-contents">
343
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
344
+ <tbody>
345
+ <tr>
346
+ <td class="listing_lines" align="right"><pre>1
347
+ 2
348
+ 3
349
+ 4
350
+ 5
351
+ 6
352
+ 7
353
+ 8
354
+ 9
355
+ 10
356
+ 11
357
+ 12
358
+ 13
359
+ 14
360
+ 15
361
+ 16
362
+ 17
363
+ 18
364
+ 19
365
+ 20
366
+ 21
367
+ 22
368
+ 23
369
+ 24
370
+ 25
371
+ 26
372
+ 27
373
+ 28
374
+ 29
375
+ 30
376
+ 31
377
+ 32
378
+ 33
379
+ 34
380
+ 35
381
+ 36
382
+ 37
383
+ 38
384
+ 39
385
+ 40
386
+ 41
387
+ 42
388
+ 43
389
+ 44
390
+ 45
391
+ 46
392
+ 47
393
+ 48
394
+ 49
395
+ 50
396
+ 51
397
+ 52
398
+ 53
399
+ 54
400
+ 55
401
+ 56
402
+ 57
403
+ 58
404
+ 59
405
+ 60
406
+ 61
407
+ 62
408
+ 63
409
+ 64
410
+ 65
411
+ 66
412
+ 67
413
+ 68
414
+ 69
415
+ 70
416
+ 71
417
+ 72
418
+ 73
419
+ 74
420
+ 75
421
+ 76
422
+ 77
423
+ 78
424
+ 79
425
+ 80
426
+ 81
427
+ 82
428
+ 83
429
+ 84
430
+ 85
431
+ 86
432
+ 87
433
+ 88
434
+ 89
435
+ 90</pre></td>
436
+ <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;math.h&gt;</span>
437
+ <span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;pango/pangocairo.h&gt;</span>
438
+
439
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
440
+ <span class="function">draw_text</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">)</span>
441
+ <span class="cbracket">{</span>
442
+ <span class="preproc">#define</span><span class="normal"> RADIUS </span><span class="number">150</span>
443
+ <span class="preproc">#define</span><span class="normal"> N_WORDS </span><span class="number">10</span>
444
+ <span class="preproc">#define</span><span class="normal"> FONT </span><span class="string">"Sans Bold 27"</span>
445
+
446
+ <span class="normal"> </span><span class="usertype">PangoLayout</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">layout</span><span class="symbol">;</span>
447
+ <span class="normal"> </span><span class="usertype">PangoFontDescription</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">desc</span><span class="symbol">;</span>
448
+ <span class="normal"> </span><span class="type">int</span><span class="normal"> i</span><span class="symbol">;</span>
449
+
450
+ <span class="normal"> </span><span class="comment">/* Center coordinates on the middle of the region we are drawing</span>
451
+ <span class="comment"> */</span>
452
+ <span class="normal"> </span><span class="function">cairo_translate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
453
+
454
+ <span class="normal"> </span><span class="comment">/* Create a PangoLayout, set the font and text */</span>
455
+ <span class="normal"> layout </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-create-layout">pango_cairo_create_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
456
+
457
+ <span class="normal"> </span><span class="function"><a href="pango-Layout-Objects.html#pango-layout-set-text">pango_layout_set_text</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Text"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
458
+ <span class="normal"> desc </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="pango-Fonts.html#pango-font-description-from-string">pango_font_description_from_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">FONT</span><span class="symbol">);</span>
459
+ <span class="normal"> </span><span class="function"><a href="pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> desc</span><span class="symbol">);</span>
460
+ <span class="normal"> </span><span class="function"><a href="pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">desc</span><span class="symbol">);</span>
461
+
462
+ <span class="normal"> </span><span class="comment">/* Draw the layout N_WORDS times in a circle */</span>
463
+ <span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">i </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> i </span><span class="symbol">&lt;</span><span class="normal"> N_WORDS</span><span class="symbol">;</span><span class="normal"> i</span><span class="symbol">++)</span>
464
+ <span class="normal"> </span><span class="cbracket">{</span>
465
+ <span class="normal"> </span><span class="type">int</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">;</span>
466
+ <span class="normal"> </span><span class="type">double</span><span class="normal"> angle </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">360</span><span class="symbol">.</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> i</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> N_WORDS</span><span class="symbol">;</span>
467
+ <span class="normal"> </span><span class="type">double</span><span class="normal"> red</span><span class="symbol">;</span>
468
+
469
+ <span class="normal"> </span><span class="function">cairo_save</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
470
+
471
+ <span class="normal"> </span><span class="comment">/* Gradient from red at angle == 60 to blue at angle == 240 */</span>
472
+ <span class="normal"> red </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="function">cos</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">angle </span><span class="symbol">-</span><span class="normal"> </span><span class="number">60</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.))</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">;</span>
473
+ <span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> red</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> red</span><span class="symbol">);</span>
474
+
475
+ <span class="normal"> </span><span class="function">cairo_rotate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> angle </span><span class="symbol">*</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.);</span>
476
+
477
+ <span class="normal"> </span><span class="comment">/* Inform Pango to re-layout the text with the new transformation */</span>
478
+ <span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-update-layout">pango_cairo_update_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
479
+
480
+ <span class="normal"> </span><span class="function"><a href="pango-Layout-Objects.html#pango-layout-get-size">pango_layout_get_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">height</span><span class="symbol">);</span>
481
+ <span class="normal"> </span><span class="function">cairo_move_to</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> </span><span class="symbol">((</span><span class="type">double</span><span class="symbol">)</span><span class="normal">width </span><span class="symbol">/</span><span class="normal"> <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS">PANGO_SCALE</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
482
+ <span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
483
+
484
+ <span class="normal"> </span><span class="function">cairo_restore</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
485
+ <span class="normal"> </span><span class="cbracket">}</span>
486
+
487
+ <span class="normal"> </span><span class="comment">/* free the layout object */</span>
488
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">);</span>
489
+ <span class="cbracket">}</span>
490
+
491
+ <span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span>
492
+ <span class="cbracket">{</span>
493
+ <span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
494
+ <span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">filename</span><span class="symbol">;</span>
495
+ <span class="normal"> </span><span class="usertype">cairo_status_t</span><span class="normal"> status</span><span class="symbol">;</span>
496
+ <span class="normal"> </span><span class="usertype">cairo_surface_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">surface</span><span class="symbol">;</span>
497
+
498
+ <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">!=</span><span class="normal"> </span><span class="number">2</span><span class="symbol">)</span>
499
+ <span class="normal"> </span><span class="cbracket">{</span>
500
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Usage: cairosimple OUTPUT_FILENAME</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
501
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
502
+ <span class="normal"> </span><span class="cbracket">}</span>
503
+
504
+ <span class="normal"> filename </span><span class="symbol">=</span><span class="normal"> argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">];</span>
505
+
506
+ <span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_image_surface_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">CAIRO_FORMAT_ARGB32</span><span class="symbol">,</span>
507
+ <span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
508
+ <span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
509
+
510
+ <span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">);</span>
511
+ <span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
512
+ <span class="normal"> </span><span class="function">draw_text</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
513
+ <span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
514
+
515
+ <span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_surface_write_to_png</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
516
+ <span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
517
+
518
+ <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">status </span><span class="symbol">!=</span><span class="normal"> CAIRO_STATUS_SUCCESS</span><span class="symbol">)</span>
519
+ <span class="normal"> </span><span class="cbracket">{</span>
520
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Could not save png to '%s'</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
521
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
522
+ <span class="normal"> </span><span class="cbracket">}</span>
523
+
524
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
525
+ <span class="cbracket">}</span></pre></td>
526
+ </tr>
527
+ </tbody>
528
+ </table>
529
+ </div>
530
+
531
+ </div>
532
+ <br class="example-break"><div class="figure">
533
+ <a name="rotated-example-output"></a><p class="title"><b>Figure 2. Output of <a class="xref" href="pango-Cairo-Rendering.html#rotated-example" title="Example 1. Using Pango with Cairo">Example 1, “Using Pango with Cairo”</a></b></p>
534
+ <div class="figure-contents"><div><img src="rotated-text.png" alt="Output of Example 1, “Using Pango with Cairo”"></div></div>
535
+ </div>
536
+ <br class="figure-break">
537
+ </div>
538
+ <div class="refsect1">
539
+ <a name="pango-Cairo-Rendering.functions_details"></a><h2>Functions</h2>
540
+ <div class="refsect2">
541
+ <a name="pango-cairo-font-map-get-default"></a><h3>pango_cairo_font_map_get_default ()</h3>
542
+ <pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
543
+ pango_cairo_font_map_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
544
+ <p>Gets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.</p>
545
+ <p>Note that the type of the returned object will depend
546
+ on the particular font backend Cairo was compiled to use;
547
+ You generally should only use the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> and
548
+ <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object.</p>
549
+ <p>The default Cairo fontmap can be changed by using
550
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()"><code class="function">pango_cairo_font_map_set_default()</code></a>. This can be used to
551
+ change the Cairo font backend that the default fontmap
552
+ uses for example.</p>
553
+ <p>Note that since Pango 1.32.6, the default fontmap is per-thread.
554
+ Each thread gets its own default fontmap. In this way,
555
+ PangoCairo can be used safely from multiple threads.</p>
556
+ <div class="refsect3">
557
+ <a name="id-1.3.5.10.2.8"></a><h4>Returns</h4>
558
+ <p> the default PangoCairo fontmap
559
+ for the current thread. This object is owned by Pango and must not be freed. </p>
560
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
561
+ </div>
562
+ <p class="since">Since 1.10</p>
563
+ </div>
564
+ <hr>
565
+ <div class="refsect2">
566
+ <a name="pango-cairo-font-map-set-default"></a><h3>pango_cairo_font_map_set_default ()</h3>
567
+ <pre class="programlisting"><span class="returnvalue">void</span>
568
+ pango_cairo_font_map_set_default (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
569
+ <p>Sets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.</p>
570
+ <p>This can be used to change the Cairo font backend that the
571
+ default fontmap uses for example. The old default font map
572
+ is unreffed and the new font map referenced.</p>
573
+ <p>Note that since Pango 1.32.6, the default fontmap is per-thread.
574
+ This function only changes the default fontmap for
575
+ the current thread. Default fontmaps of exisiting threads
576
+ are not changed. Default fontmaps of any new threads will
577
+ still be created using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
578
+ <p>A value of <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>fontmap</code></em>
579
+ will cause the current default
580
+ font map to be released and a new default font
581
+ map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
582
+ <div class="refsect3">
583
+ <a name="id-1.3.5.10.3.8"></a><h4>Parameters</h4>
584
+ <div class="informaltable"><table width="100%" border="0">
585
+ <colgroup>
586
+ <col width="150px" class="parameters_name">
587
+ <col class="parameters_description">
588
+ <col width="200px" class="parameters_annotations">
589
+ </colgroup>
590
+ <tbody><tr>
591
+ <td class="parameter_name"><p>fontmap</p></td>
592
+ <td class="parameter_description"><p>The new default font map, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
593
+ <td class="parameter_annotations"> </td>
594
+ </tr></tbody>
595
+ </table></div>
596
+ </div>
597
+ <p class="since">Since 1.22</p>
598
+ </div>
599
+ <hr>
600
+ <div class="refsect2">
601
+ <a name="pango-cairo-font-map-new"></a><h3>pango_cairo_font_map_new ()</h3>
602
+ <pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
603
+ pango_cairo_font_map_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
604
+ <p>Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object; a fontmap is used
605
+ to cache information about available fonts, and holds
606
+ certain global parameters such as the resolution.
607
+ In most cases, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a>
608
+ instead.</p>
609
+ <p>Note that the type of the returned object will depend
610
+ on the particular font backend Cairo was compiled to use;
611
+ You generally should only use the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> and
612
+ <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object.</p>
613
+ <p>You can override the type of backend returned by using an
614
+ environment variable <code class="literal">PANGOCAIRO_BACKEND</code>. Supported types,
615
+ based on your build, are fc (fontconfig), win32, and coretext.
616
+ If requested type is not available, NULL is returned. Ie.
617
+ this is only useful for testing, when at least two backends
618
+ are compiled in.</p>
619
+ <div class="refsect3">
620
+ <a name="id-1.3.5.10.4.7"></a><h4>Returns</h4>
621
+ <p> the newly allocated <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>,
622
+ which should be freed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
623
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
624
+ </div>
625
+ <p class="since">Since 1.10</p>
626
+ </div>
627
+ <hr>
628
+ <div class="refsect2">
629
+ <a name="pango-cairo-font-map-new-for-font-type"></a><h3>pango_cairo_font_map_new_for_font_type ()</h3>
630
+ <pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
631
+ pango_cairo_font_map_new_for_font_type
632
+ (<em class="parameter"><code><span class="type">cairo_font_type_t</span> fonttype</code></em>);</pre>
633
+ <p>Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object of the type suitable
634
+ to be used with cairo font backend of type <em class="parameter"><code>fonttype</code></em>
635
+ .</p>
636
+ <p>In most cases one should simply use <em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a></code></em>
637
+ ,
638
+ or in fact in most of those cases, just use
639
+ <em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a></code></em>
640
+ .</p>
641
+ <div class="refsect3">
642
+ <a name="id-1.3.5.10.5.6"></a><h4>Parameters</h4>
643
+ <div class="informaltable"><table width="100%" border="0">
644
+ <colgroup>
645
+ <col width="150px" class="parameters_name">
646
+ <col class="parameters_description">
647
+ <col width="200px" class="parameters_annotations">
648
+ </colgroup>
649
+ <tbody><tr>
650
+ <td class="parameter_name"><p>fonttype</p></td>
651
+ <td class="parameter_description"><p>desired <span class="type">cairo_font_type_t</span></p></td>
652
+ <td class="parameter_annotations"> </td>
653
+ </tr></tbody>
654
+ </table></div>
655
+ </div>
656
+ <div class="refsect3">
657
+ <a name="id-1.3.5.10.5.7"></a><h4>Returns</h4>
658
+ <p> (transfer full) : the newly allocated <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
659
+ of suitable type which should be freed with
660
+ <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the requested cairo
661
+ font backend is not supported / compiled in.</p>
662
+ <p></p>
663
+ </div>
664
+ <p class="since">Since 1.18</p>
665
+ </div>
666
+ <hr>
667
+ <div class="refsect2">
668
+ <a name="pango-cairo-font-map-get-font-type"></a><h3>pango_cairo_font_map_get_font_type ()</h3>
669
+ <pre class="programlisting"><span class="returnvalue">cairo_font_type_t</span>
670
+ pango_cairo_font_map_get_font_type (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
671
+ <p>Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em>
672
+ uses.</p>
673
+ <div class="refsect3">
674
+ <a name="id-1.3.5.10.6.5"></a><h4>Parameters</h4>
675
+ <div class="informaltable"><table width="100%" border="0">
676
+ <colgroup>
677
+ <col width="150px" class="parameters_name">
678
+ <col class="parameters_description">
679
+ <col width="200px" class="parameters_annotations">
680
+ </colgroup>
681
+ <tbody><tr>
682
+ <td class="parameter_name"><p>fontmap</p></td>
683
+ <td class="parameter_description"><p>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
684
+ <td class="parameter_annotations"> </td>
685
+ </tr></tbody>
686
+ </table></div>
687
+ </div>
688
+ <div class="refsect3">
689
+ <a name="id-1.3.5.10.6.6"></a><h4>Returns</h4>
690
+ <p> the <span class="type">cairo_font_type_t</span> cairo font backend type</p>
691
+ <p></p>
692
+ </div>
693
+ <p class="since">Since 1.18</p>
694
+ </div>
695
+ <hr>
696
+ <div class="refsect2">
697
+ <a name="pango-cairo-font-map-set-resolution"></a><h3>pango_cairo_font_map_set_resolution ()</h3>
698
+ <pre class="programlisting"><span class="returnvalue">void</span>
699
+ pango_cairo_font_map_set_resolution (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>,
700
+ <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
701
+ <p>Sets the resolution for the fontmap. This is a scale factor between
702
+ points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
703
+ default value is 96, meaning that a 10 point font will be 13
704
+ units high. (10 * 96. / 72. = 13.3).</p>
705
+ <div class="refsect3">
706
+ <a name="id-1.3.5.10.7.5"></a><h4>Parameters</h4>
707
+ <div class="informaltable"><table width="100%" border="0">
708
+ <colgroup>
709
+ <col width="150px" class="parameters_name">
710
+ <col class="parameters_description">
711
+ <col width="200px" class="parameters_annotations">
712
+ </colgroup>
713
+ <tbody>
714
+ <tr>
715
+ <td class="parameter_name"><p>fontmap</p></td>
716
+ <td class="parameter_description"><p>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
717
+ <td class="parameter_annotations"> </td>
718
+ </tr>
719
+ <tr>
720
+ <td class="parameter_name"><p>dpi</p></td>
721
+ <td class="parameter_description"><p>the resolution in "dots per inch". (Physical inches aren't actually
722
+ involved; the terminology is conventional.)</p></td>
723
+ <td class="parameter_annotations"> </td>
724
+ </tr>
725
+ </tbody>
726
+ </table></div>
727
+ </div>
728
+ <p class="since">Since 1.10</p>
729
+ </div>
730
+ <hr>
731
+ <div class="refsect2">
732
+ <a name="pango-cairo-font-map-get-resolution"></a><h3>pango_cairo_font_map_get_resolution ()</h3>
733
+ <pre class="programlisting"><span class="returnvalue">double</span>
734
+ pango_cairo_font_map_get_resolution (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
735
+ <p>Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a></p>
736
+ <div class="refsect3">
737
+ <a name="id-1.3.5.10.8.5"></a><h4>Parameters</h4>
738
+ <div class="informaltable"><table width="100%" border="0">
739
+ <colgroup>
740
+ <col width="150px" class="parameters_name">
741
+ <col class="parameters_description">
742
+ <col width="200px" class="parameters_annotations">
743
+ </colgroup>
744
+ <tbody><tr>
745
+ <td class="parameter_name"><p>fontmap</p></td>
746
+ <td class="parameter_description"><p>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
747
+ <td class="parameter_annotations"> </td>
748
+ </tr></tbody>
749
+ </table></div>
750
+ </div>
751
+ <div class="refsect3">
752
+ <a name="id-1.3.5.10.8.6"></a><h4>Returns</h4>
753
+ <p> the resolution in "dots per inch"</p>
754
+ <p></p>
755
+ </div>
756
+ <p class="since">Since 1.10</p>
757
+ </div>
758
+ <hr>
759
+ <div class="refsect2">
760
+ <a name="pango-cairo-font-map-create-context"></a><h3>pango_cairo_font_map_create_context ()</h3>
761
+ <pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *
762
+ pango_cairo_font_map_create_context (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
763
+ <div class="warning">
764
+ <p><code class="literal">pango_cairo_font_map_create_context</code> has been deprecated since version 1.22 and should not be used in newly-written code.</p>
765
+ <p>Use <a class="link" href="pango-Fonts.html#pango-font-map-create-context" title="pango_font_map_create_context ()"><code class="function">pango_font_map_create_context()</code></a> instead.</p>
766
+ </div>
767
+ <p>Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap.</p>
768
+ <div class="refsect3">
769
+ <a name="id-1.3.5.10.9.7"></a><h4>Parameters</h4>
770
+ <div class="informaltable"><table width="100%" border="0">
771
+ <colgroup>
772
+ <col width="150px" class="parameters_name">
773
+ <col class="parameters_description">
774
+ <col width="200px" class="parameters_annotations">
775
+ </colgroup>
776
+ <tbody><tr>
777
+ <td class="parameter_name"><p>fontmap</p></td>
778
+ <td class="parameter_description"><p>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
779
+ <td class="parameter_annotations"> </td>
780
+ </tr></tbody>
781
+ </table></div>
782
+ </div>
783
+ <div class="refsect3">
784
+ <a name="id-1.3.5.10.9.8"></a><h4>Returns</h4>
785
+ <p> the newly created context; free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
786
+ <p></p>
787
+ </div>
788
+ <p class="since">Since 1.10</p>
789
+ </div>
790
+ <hr>
791
+ <div class="refsect2">
792
+ <a name="pango-cairo-font-get-scaled-font"></a><h3>pango_cairo_font_get_scaled_font ()</h3>
793
+ <pre class="programlisting"><span class="returnvalue">cairo_scaled_font_t</span> *
794
+ pango_cairo_font_get_scaled_font (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> *font</code></em>);</pre>
795
+ <p>Gets the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>
796
+ .
797
+ The scaled font can be referenced and kept using
798
+ <code class="function">cairo_scaled_font_reference()</code>.</p>
799
+ <div class="refsect3">
800
+ <a name="id-1.3.5.10.10.5"></a><h4>Parameters</h4>
801
+ <div class="informaltable"><table width="100%" border="0">
802
+ <colgroup>
803
+ <col width="150px" class="parameters_name">
804
+ <col class="parameters_description">
805
+ <col width="200px" class="parameters_annotations">
806
+ </colgroup>
807
+ <tbody><tr>
808
+ <td class="parameter_name"><p>font</p></td>
809
+ <td class="parameter_description"><p>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
810
+ <td class="parameter_annotations"> </td>
811
+ </tr></tbody>
812
+ </table></div>
813
+ </div>
814
+ <div class="refsect3">
815
+ <a name="id-1.3.5.10.10.6"></a><h4>Returns</h4>
816
+ <p> the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>
817
+ ,
818
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>font</code></em>
819
+ is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
820
+ <p></p>
821
+ </div>
822
+ <p class="since">Since 1.18</p>
823
+ </div>
824
+ <hr>
825
+ <div class="refsect2">
826
+ <a name="pango-cairo-context-set-resolution"></a><h3>pango_cairo_context_set_resolution ()</h3>
827
+ <pre class="programlisting"><span class="returnvalue">void</span>
828
+ pango_cairo_context_set_resolution (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
829
+ <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
830
+ <p>Sets the resolution for the context. This is a scale factor between
831
+ points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
832
+ default value is 96, meaning that a 10 point font will be 13
833
+ units high. (10 * 96. / 72. = 13.3).</p>
834
+ <div class="refsect3">
835
+ <a name="id-1.3.5.10.11.5"></a><h4>Parameters</h4>
836
+ <div class="informaltable"><table width="100%" border="0">
837
+ <colgroup>
838
+ <col width="150px" class="parameters_name">
839
+ <col class="parameters_description">
840
+ <col width="200px" class="parameters_annotations">
841
+ </colgroup>
842
+ <tbody>
843
+ <tr>
844
+ <td class="parameter_name"><p>context</p></td>
845
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
846
+ <td class="parameter_annotations"> </td>
847
+ </tr>
848
+ <tr>
849
+ <td class="parameter_name"><p>dpi</p></td>
850
+ <td class="parameter_description"><p>the resolution in "dots per inch". (Physical inches aren't actually
851
+ involved; the terminology is conventional.) A 0 or negative value
852
+ means to use the resolution from the font map.</p></td>
853
+ <td class="parameter_annotations"> </td>
854
+ </tr>
855
+ </tbody>
856
+ </table></div>
857
+ </div>
858
+ <p class="since">Since 1.10</p>
859
+ </div>
860
+ <hr>
861
+ <div class="refsect2">
862
+ <a name="pango-cairo-context-get-resolution"></a><h3>pango_cairo_context_get_resolution ()</h3>
863
+ <pre class="programlisting"><span class="returnvalue">double</span>
864
+ pango_cairo_context_get_resolution (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
865
+ <p>Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a></p>
866
+ <div class="refsect3">
867
+ <a name="id-1.3.5.10.12.5"></a><h4>Parameters</h4>
868
+ <div class="informaltable"><table width="100%" border="0">
869
+ <colgroup>
870
+ <col width="150px" class="parameters_name">
871
+ <col class="parameters_description">
872
+ <col width="200px" class="parameters_annotations">
873
+ </colgroup>
874
+ <tbody><tr>
875
+ <td class="parameter_name"><p>context</p></td>
876
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
877
+ <td class="parameter_annotations"> </td>
878
+ </tr></tbody>
879
+ </table></div>
880
+ </div>
881
+ <div class="refsect3">
882
+ <a name="id-1.3.5.10.12.6"></a><h4>Returns</h4>
883
+ <p> the resolution in "dots per inch". A negative value will
884
+ be returned if no resolution has previously been set.</p>
885
+ <p></p>
886
+ </div>
887
+ <p class="since">Since 1.10</p>
888
+ </div>
889
+ <hr>
890
+ <div class="refsect2">
891
+ <a name="pango-cairo-context-set-font-options"></a><h3>pango_cairo_context_set_font_options ()</h3>
892
+ <pre class="programlisting"><span class="returnvalue">void</span>
893
+ pango_cairo_context_set_font_options (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
894
+ <em class="parameter"><code>const <span class="type">cairo_font_options_t</span> *options</code></em>);</pre>
895
+ <p>Sets the font options used when rendering text with this context.
896
+ These options override any options that <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>
897
+ derives from the target surface.</p>
898
+ <div class="refsect3">
899
+ <a name="id-1.3.5.10.13.5"></a><h4>Parameters</h4>
900
+ <div class="informaltable"><table width="100%" border="0">
901
+ <colgroup>
902
+ <col width="150px" class="parameters_name">
903
+ <col class="parameters_description">
904
+ <col width="200px" class="parameters_annotations">
905
+ </colgroup>
906
+ <tbody>
907
+ <tr>
908
+ <td class="parameter_name"><p>context</p></td>
909
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
910
+ <td class="parameter_annotations"> </td>
911
+ </tr>
912
+ <tr>
913
+ <td class="parameter_name"><p>options</p></td>
914
+ <td class="parameter_description"><p>a <span class="type">cairo_font_options_t</span>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset any previously set
915
+ options. A copy is made.</p></td>
916
+ <td class="parameter_annotations"> </td>
917
+ </tr>
918
+ </tbody>
919
+ </table></div>
920
+ </div>
921
+ <p class="since">Since 1.10</p>
922
+ </div>
923
+ <hr>
924
+ <div class="refsect2">
925
+ <a name="pango-cairo-context-get-font-options"></a><h3>pango_cairo_context_get_font_options ()</h3>
926
+ <pre class="programlisting">const <span class="returnvalue">cairo_font_options_t</span> *
927
+ pango_cairo_context_get_font_options (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
928
+ <p>Retrieves any font rendering options previously set with
929
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()"><code class="function">pango_cairo_context_set_font_options()</code></a>. This function does not report options
930
+ that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a></p>
931
+ <div class="refsect3">
932
+ <a name="id-1.3.5.10.14.5"></a><h4>Parameters</h4>
933
+ <div class="informaltable"><table width="100%" border="0">
934
+ <colgroup>
935
+ <col width="150px" class="parameters_name">
936
+ <col class="parameters_description">
937
+ <col width="200px" class="parameters_annotations">
938
+ </colgroup>
939
+ <tbody><tr>
940
+ <td class="parameter_name"><p>context</p></td>
941
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
942
+ <td class="parameter_annotations"> </td>
943
+ </tr></tbody>
944
+ </table></div>
945
+ </div>
946
+ <div class="refsect3">
947
+ <a name="id-1.3.5.10.14.6"></a><h4>Returns</h4>
948
+ <p> the font options previously set on the context, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
949
+ if no options have been set. This value is owned by the context
950
+ and must not be modified or freed.</p>
951
+ <p></p>
952
+ </div>
953
+ <p class="since">Since 1.10</p>
954
+ </div>
955
+ <hr>
956
+ <div class="refsect2">
957
+ <a name="PangoCairoShapeRendererFunc"></a><h3>PangoCairoShapeRendererFunc ()</h3>
958
+ <pre class="programlisting"><span class="returnvalue">void</span>
959
+ <span class="c_punctuation">(</span>*PangoCairoShapeRendererFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
960
+ <em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> *attr</code></em>,
961
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> do_path</code></em>,
962
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
963
+ <p>Function type for rendering attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>
964
+ with Pango's Cairo renderer.</p>
965
+ <div class="refsect3">
966
+ <a name="id-1.3.5.10.15.5"></a><h4>Parameters</h4>
967
+ <div class="informaltable"><table width="100%" border="0">
968
+ <colgroup>
969
+ <col width="150px" class="parameters_name">
970
+ <col class="parameters_description">
971
+ <col width="200px" class="parameters_annotations">
972
+ </colgroup>
973
+ <tbody>
974
+ <tr>
975
+ <td class="parameter_name"><p>cr</p></td>
976
+ <td class="parameter_description"><p>a Cairo context with current point set to where the shape should
977
+ be rendered</p></td>
978
+ <td class="parameter_annotations"> </td>
979
+ </tr>
980
+ <tr>
981
+ <td class="parameter_name"><p>attr</p></td>
982
+ <td class="parameter_description"><p>the <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a> to render</p></td>
983
+ <td class="parameter_annotations"> </td>
984
+ </tr>
985
+ <tr>
986
+ <td class="parameter_name"><p>do_path</p></td>
987
+ <td class="parameter_description"><p>whether only the shape path should be appended to current
988
+ path of <em class="parameter"><code>cr</code></em>
989
+ and no filling/stroking done. This will be set
990
+ to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> when called from <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()"><code class="function">pango_cairo_layout_path()</code></a> and
991
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()"><code class="function">pango_cairo_layout_line_path()</code></a> rendering functions.</p></td>
992
+ <td class="parameter_annotations"> </td>
993
+ </tr>
994
+ <tr>
995
+ <td class="parameter_name"><p>data</p></td>
996
+ <td class="parameter_description"><p>user data passed to <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a></p></td>
997
+ <td class="parameter_annotations"> </td>
998
+ </tr>
999
+ </tbody>
1000
+ </table></div>
1001
+ </div>
1002
+ </div>
1003
+ <hr>
1004
+ <div class="refsect2">
1005
+ <a name="pango-cairo-context-set-shape-renderer"></a><h3>pango_cairo_context_set_shape_renderer ()</h3>
1006
+ <pre class="programlisting"><span class="returnvalue">void</span>
1007
+ pango_cairo_context_set_shape_renderer
1008
+ (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
1009
+ <em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> func</code></em>,
1010
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
1011
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> dnotify</code></em>);</pre>
1012
+ <p>Sets callback function for context to use for rendering attributes
1013
+ of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
1014
+ details.</p>
1015
+ <div class="refsect3">
1016
+ <a name="id-1.3.5.10.16.5"></a><h4>Parameters</h4>
1017
+ <div class="informaltable"><table width="100%" border="0">
1018
+ <colgroup>
1019
+ <col width="150px" class="parameters_name">
1020
+ <col class="parameters_description">
1021
+ <col width="200px" class="parameters_annotations">
1022
+ </colgroup>
1023
+ <tbody>
1024
+ <tr>
1025
+ <td class="parameter_name"><p>context</p></td>
1026
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
1027
+ <td class="parameter_annotations"> </td>
1028
+ </tr>
1029
+ <tr>
1030
+ <td class="parameter_name"><p>func</p></td>
1031
+ <td class="parameter_description"><p>Callback function for rendering attributes of type
1032
+ <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to disable shape rendering.</p></td>
1033
+ <td class="parameter_annotations"> </td>
1034
+ </tr>
1035
+ <tr>
1036
+ <td class="parameter_name"><p>data</p></td>
1037
+ <td class="parameter_description"><p>User data that will be passed to <em class="parameter"><code>func</code></em>
1038
+ .</p></td>
1039
+ <td class="parameter_annotations"> </td>
1040
+ </tr>
1041
+ <tr>
1042
+ <td class="parameter_name"><p>dnotify</p></td>
1043
+ <td class="parameter_description"><p>Callback that will be called when the
1044
+ context is freed to release <em class="parameter"><code>data</code></em>
1045
+ , or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
1046
+ <td class="parameter_annotations"> </td>
1047
+ </tr>
1048
+ </tbody>
1049
+ </table></div>
1050
+ </div>
1051
+ <p class="since">Since 1.18</p>
1052
+ </div>
1053
+ <hr>
1054
+ <div class="refsect2">
1055
+ <a name="pango-cairo-context-get-shape-renderer"></a><h3>pango_cairo_context_get_shape_renderer ()</h3>
1056
+ <pre class="programlisting"><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a>
1057
+ pango_cairo_context_get_shape_renderer
1058
+ (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
1059
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>);</pre>
1060
+ <p>Sets callback function for context to use for rendering attributes
1061
+ of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
1062
+ details.</p>
1063
+ <p>Retrieves callback function and associated user data for rendering
1064
+ attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a> as set by
1065
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any.</p>
1066
+ <div class="refsect3">
1067
+ <a name="id-1.3.5.10.17.6"></a><h4>Parameters</h4>
1068
+ <div class="informaltable"><table width="100%" border="0">
1069
+ <colgroup>
1070
+ <col width="150px" class="parameters_name">
1071
+ <col class="parameters_description">
1072
+ <col width="200px" class="parameters_annotations">
1073
+ </colgroup>
1074
+ <tbody>
1075
+ <tr>
1076
+ <td class="parameter_name"><p>context</p></td>
1077
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
1078
+ <td class="parameter_annotations"> </td>
1079
+ </tr>
1080
+ <tr>
1081
+ <td class="parameter_name"><p>data</p></td>
1082
+ <td class="parameter_description"><p>Pointer to <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> to return user data</p></td>
1083
+ <td class="parameter_annotations"> </td>
1084
+ </tr>
1085
+ </tbody>
1086
+ </table></div>
1087
+ </div>
1088
+ <div class="refsect3">
1089
+ <a name="id-1.3.5.10.17.7"></a><h4>Returns</h4>
1090
+ <p> the shape rendering callback previously set on the context, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1091
+ if no shape rendering callback have been set.</p>
1092
+ <p></p>
1093
+ </div>
1094
+ <p class="since">Since 1.18</p>
1095
+ </div>
1096
+ <hr>
1097
+ <div class="refsect2">
1098
+ <a name="pango-cairo-create-context"></a><h3>pango_cairo_create_context ()</h3>
1099
+ <pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *
1100
+ pango_cairo_create_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
1101
+ <p>Creates a context object set up to match the current transformation
1102
+ and target surface of the Cairo context. This context can then be
1103
+ used to create a layout using <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()"><code class="function">pango_layout_new()</code></a>.</p>
1104
+ <p>This function is a convenience function that creates a context using
1105
+ the default font map, then updates it to <em class="parameter"><code>cr</code></em>
1106
+ . If you just need to
1107
+ create a layout for use with <em class="parameter"><code>cr</code></em>
1108
+ and do not need to access <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>
1109
+ directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead.</p>
1110
+ <div class="refsect3">
1111
+ <a name="id-1.3.5.10.18.6"></a><h4>Parameters</h4>
1112
+ <div class="informaltable"><table width="100%" border="0">
1113
+ <colgroup>
1114
+ <col width="150px" class="parameters_name">
1115
+ <col class="parameters_description">
1116
+ <col width="200px" class="parameters_annotations">
1117
+ </colgroup>
1118
+ <tbody><tr>
1119
+ <td class="parameter_name"><p>cr</p></td>
1120
+ <td class="parameter_description"><p>a Cairo context</p></td>
1121
+ <td class="parameter_annotations"> </td>
1122
+ </tr></tbody>
1123
+ </table></div>
1124
+ </div>
1125
+ <div class="refsect3">
1126
+ <a name="id-1.3.5.10.18.7"></a><h4>Returns</h4>
1127
+ <p> the newly created <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>. Free with
1128
+ <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
1129
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1130
+ </div>
1131
+ <p class="since">Since 1.22</p>
1132
+ </div>
1133
+ <hr>
1134
+ <div class="refsect2">
1135
+ <a name="pango-cairo-update-context"></a><h3>pango_cairo_update_context ()</h3>
1136
+ <pre class="programlisting"><span class="returnvalue">void</span>
1137
+ pango_cairo_update_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1138
+ <em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
1139
+ <p>Updates a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> previously created for use with Cairo to
1140
+ match the current transformation and target surface of a Cairo
1141
+ context. If any layouts have been created for the context,
1142
+ it's necessary to call <a class="link" href="pango-Layout-Objects.html#pango-layout-context-changed" title="pango_layout_context_changed ()"><code class="function">pango_layout_context_changed()</code></a> on those
1143
+ layouts.</p>
1144
+ <div class="refsect3">
1145
+ <a name="id-1.3.5.10.19.5"></a><h4>Parameters</h4>
1146
+ <div class="informaltable"><table width="100%" border="0">
1147
+ <colgroup>
1148
+ <col width="150px" class="parameters_name">
1149
+ <col class="parameters_description">
1150
+ <col width="200px" class="parameters_annotations">
1151
+ </colgroup>
1152
+ <tbody>
1153
+ <tr>
1154
+ <td class="parameter_name"><p>cr</p></td>
1155
+ <td class="parameter_description"><p>a Cairo context</p></td>
1156
+ <td class="parameter_annotations"> </td>
1157
+ </tr>
1158
+ <tr>
1159
+ <td class="parameter_name"><p>context</p></td>
1160
+ <td class="parameter_description"><p>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map</p></td>
1161
+ <td class="parameter_annotations"> </td>
1162
+ </tr>
1163
+ </tbody>
1164
+ </table></div>
1165
+ </div>
1166
+ <p class="since">Since 1.10</p>
1167
+ </div>
1168
+ <hr>
1169
+ <div class="refsect2">
1170
+ <a name="pango-cairo-create-layout"></a><h3>pango_cairo_create_layout ()</h3>
1171
+ <pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *
1172
+ pango_cairo_create_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
1173
+ <p>Creates a layout object set up to match the current transformation
1174
+ and target surface of the Cairo context. This layout can then be
1175
+ used for text measurement with functions like
1176
+ <a class="link" href="pango-Layout-Objects.html#pango-layout-get-size" title="pango_layout_get_size ()"><code class="function">pango_layout_get_size()</code></a> or drawing with functions like
1177
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()"><code class="function">pango_cairo_show_layout()</code></a>. If you change the transformation
1178
+ or target surface for <em class="parameter"><code>cr</code></em>
1179
+ , you need to call <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()"><code class="function">pango_cairo_update_layout()</code></a></p>
1180
+ <p>This function is the most convenient way to use Cairo with Pango,
1181
+ however it is slightly inefficient since it creates a separate
1182
+ <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> object for each layout. This might matter in an
1183
+ application that was laying out large amounts of text.</p>
1184
+ <div class="refsect3">
1185
+ <a name="id-1.3.5.10.20.6"></a><h4>Parameters</h4>
1186
+ <div class="informaltable"><table width="100%" border="0">
1187
+ <colgroup>
1188
+ <col width="150px" class="parameters_name">
1189
+ <col class="parameters_description">
1190
+ <col width="200px" class="parameters_annotations">
1191
+ </colgroup>
1192
+ <tbody><tr>
1193
+ <td class="parameter_name"><p>cr</p></td>
1194
+ <td class="parameter_description"><p>a Cairo context</p></td>
1195
+ <td class="parameter_annotations"> </td>
1196
+ </tr></tbody>
1197
+ </table></div>
1198
+ </div>
1199
+ <div class="refsect3">
1200
+ <a name="id-1.3.5.10.20.7"></a><h4>Returns</h4>
1201
+ <p> the newly created <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. Free with
1202
+ <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
1203
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1204
+ </div>
1205
+ <p class="since">Since 1.10</p>
1206
+ </div>
1207
+ <hr>
1208
+ <div class="refsect2">
1209
+ <a name="pango-cairo-update-layout"></a><h3>pango_cairo_update_layout ()</h3>
1210
+ <pre class="programlisting"><span class="returnvalue">void</span>
1211
+ pango_cairo_update_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1212
+ <em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
1213
+ <p>Updates the private <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> of a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> created with
1214
+ <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> to match the current transformation
1215
+ and target surface of a Cairo context.</p>
1216
+ <div class="refsect3">
1217
+ <a name="id-1.3.5.10.21.5"></a><h4>Parameters</h4>
1218
+ <div class="informaltable"><table width="100%" border="0">
1219
+ <colgroup>
1220
+ <col width="150px" class="parameters_name">
1221
+ <col class="parameters_description">
1222
+ <col width="200px" class="parameters_annotations">
1223
+ </colgroup>
1224
+ <tbody>
1225
+ <tr>
1226
+ <td class="parameter_name"><p>cr</p></td>
1227
+ <td class="parameter_description"><p>a Cairo context</p></td>
1228
+ <td class="parameter_annotations"> </td>
1229
+ </tr>
1230
+ <tr>
1231
+ <td class="parameter_name"><p>layout</p></td>
1232
+ <td class="parameter_description"><p>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, from <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a></p></td>
1233
+ <td class="parameter_annotations"> </td>
1234
+ </tr>
1235
+ </tbody>
1236
+ </table></div>
1237
+ </div>
1238
+ <p class="since">Since 1.10</p>
1239
+ </div>
1240
+ <hr>
1241
+ <div class="refsect2">
1242
+ <a name="pango-cairo-show-glyph-string"></a><h3>pango_cairo_show_glyph_string ()</h3>
1243
+ <pre class="programlisting"><span class="returnvalue">void</span>
1244
+ pango_cairo_show_glyph_string (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1245
+ <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
1246
+ <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
1247
+ <p>Draws the glyphs in <em class="parameter"><code>glyphs</code></em>
1248
+ in the specified cairo context.
1249
+ The origin of the glyphs (the left edge of the baseline) will
1250
+ be drawn at the current point of the cairo context.</p>
1251
+ <div class="refsect3">
1252
+ <a name="id-1.3.5.10.22.5"></a><h4>Parameters</h4>
1253
+ <div class="informaltable"><table width="100%" border="0">
1254
+ <colgroup>
1255
+ <col width="150px" class="parameters_name">
1256
+ <col class="parameters_description">
1257
+ <col width="200px" class="parameters_annotations">
1258
+ </colgroup>
1259
+ <tbody>
1260
+ <tr>
1261
+ <td class="parameter_name"><p>cr</p></td>
1262
+ <td class="parameter_description"><p>a Cairo context</p></td>
1263
+ <td class="parameter_annotations"> </td>
1264
+ </tr>
1265
+ <tr>
1266
+ <td class="parameter_name"><p>font</p></td>
1267
+ <td class="parameter_description"><p>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
1268
+ <td class="parameter_annotations"> </td>
1269
+ </tr>
1270
+ <tr>
1271
+ <td class="parameter_name"><p>glyphs</p></td>
1272
+ <td class="parameter_description"><p>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></p></td>
1273
+ <td class="parameter_annotations"> </td>
1274
+ </tr>
1275
+ </tbody>
1276
+ </table></div>
1277
+ </div>
1278
+ <p class="since">Since 1.10</p>
1279
+ </div>
1280
+ <hr>
1281
+ <div class="refsect2">
1282
+ <a name="pango-cairo-show-glyph-item"></a><h3>pango_cairo_show_glyph_item ()</h3>
1283
+ <pre class="programlisting"><span class="returnvalue">void</span>
1284
+ pango_cairo_show_glyph_item (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1285
+ <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
1286
+ <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);</pre>
1287
+ <p>Draws the glyphs in <em class="parameter"><code>glyph_item</code></em>
1288
+ in the specified cairo context,
1289
+ embedding the text associated with the glyphs in the output if the
1290
+ output format supports it (PDF for example), otherwise it acts
1291
+ similar to <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()"><code class="function">pango_cairo_show_glyph_string()</code></a>.</p>
1292
+ <p>The origin of the glyphs (the left edge of the baseline) will
1293
+ be drawn at the current point of the cairo context.</p>
1294
+ <p>Note that <em class="parameter"><code>text</code></em>
1295
+ is the start of the text for layout, which is then
1296
+ indexed by <code class="literal"><em class="parameter"><code>glyph_item-&gt;item-&gt;offset</code></em>
1297
+ </code>.</p>
1298
+ <div class="refsect3">
1299
+ <a name="id-1.3.5.10.23.7"></a><h4>Parameters</h4>
1300
+ <div class="informaltable"><table width="100%" border="0">
1301
+ <colgroup>
1302
+ <col width="150px" class="parameters_name">
1303
+ <col class="parameters_description">
1304
+ <col width="200px" class="parameters_annotations">
1305
+ </colgroup>
1306
+ <tbody>
1307
+ <tr>
1308
+ <td class="parameter_name"><p>cr</p></td>
1309
+ <td class="parameter_description"><p>a Cairo context</p></td>
1310
+ <td class="parameter_annotations"> </td>
1311
+ </tr>
1312
+ <tr>
1313
+ <td class="parameter_name"><p>text</p></td>
1314
+ <td class="parameter_description"><p>the UTF-8 text that <em class="parameter"><code>glyph_item</code></em>
1315
+ refers to</p></td>
1316
+ <td class="parameter_annotations"> </td>
1317
+ </tr>
1318
+ <tr>
1319
+ <td class="parameter_name"><p>glyph_item</p></td>
1320
+ <td class="parameter_description"><p>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a></p></td>
1321
+ <td class="parameter_annotations"> </td>
1322
+ </tr>
1323
+ </tbody>
1324
+ </table></div>
1325
+ </div>
1326
+ <p class="since">Since 1.22</p>
1327
+ </div>
1328
+ <hr>
1329
+ <div class="refsect2">
1330
+ <a name="pango-cairo-show-layout-line"></a><h3>pango_cairo_show_layout_line ()</h3>
1331
+ <pre class="programlisting"><span class="returnvalue">void</span>
1332
+ pango_cairo_show_layout_line (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1333
+ <em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
1334
+ <p>Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.
1335
+ The origin of the glyphs (the left edge of the line) will
1336
+ be drawn at the current point of the cairo context.</p>
1337
+ <div class="refsect3">
1338
+ <a name="id-1.3.5.10.24.5"></a><h4>Parameters</h4>
1339
+ <div class="informaltable"><table width="100%" border="0">
1340
+ <colgroup>
1341
+ <col width="150px" class="parameters_name">
1342
+ <col class="parameters_description">
1343
+ <col width="200px" class="parameters_annotations">
1344
+ </colgroup>
1345
+ <tbody>
1346
+ <tr>
1347
+ <td class="parameter_name"><p>cr</p></td>
1348
+ <td class="parameter_description"><p>a Cairo context</p></td>
1349
+ <td class="parameter_annotations"> </td>
1350
+ </tr>
1351
+ <tr>
1352
+ <td class="parameter_name"><p>line</p></td>
1353
+ <td class="parameter_description"><p>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a></p></td>
1354
+ <td class="parameter_annotations"> </td>
1355
+ </tr>
1356
+ </tbody>
1357
+ </table></div>
1358
+ </div>
1359
+ <p class="since">Since 1.10</p>
1360
+ </div>
1361
+ <hr>
1362
+ <div class="refsect2">
1363
+ <a name="pango-cairo-show-layout"></a><h3>pango_cairo_show_layout ()</h3>
1364
+ <pre class="programlisting"><span class="returnvalue">void</span>
1365
+ pango_cairo_show_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1366
+ <em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
1367
+ <p>Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> in the specified cairo context.
1368
+ The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> will be drawn
1369
+ at the current point of the cairo context.</p>
1370
+ <div class="refsect3">
1371
+ <a name="id-1.3.5.10.25.5"></a><h4>Parameters</h4>
1372
+ <div class="informaltable"><table width="100%" border="0">
1373
+ <colgroup>
1374
+ <col width="150px" class="parameters_name">
1375
+ <col class="parameters_description">
1376
+ <col width="200px" class="parameters_annotations">
1377
+ </colgroup>
1378
+ <tbody>
1379
+ <tr>
1380
+ <td class="parameter_name"><p>cr</p></td>
1381
+ <td class="parameter_description"><p>a Cairo context</p></td>
1382
+ <td class="parameter_annotations"> </td>
1383
+ </tr>
1384
+ <tr>
1385
+ <td class="parameter_name"><p>layout</p></td>
1386
+ <td class="parameter_description"><p>a Pango layout</p></td>
1387
+ <td class="parameter_annotations"> </td>
1388
+ </tr>
1389
+ </tbody>
1390
+ </table></div>
1391
+ </div>
1392
+ <p class="since">Since 1.10</p>
1393
+ </div>
1394
+ <hr>
1395
+ <div class="refsect2">
1396
+ <a name="pango-cairo-show-error-underline"></a><h3>pango_cairo_show_error_underline ()</h3>
1397
+ <pre class="programlisting"><span class="returnvalue">void</span>
1398
+ pango_cairo_show_error_underline (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1399
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
1400
+ <em class="parameter"><code><span class="type">double</span> y</code></em>,
1401
+ <em class="parameter"><code><span class="type">double</span> width</code></em>,
1402
+ <em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
1403
+ <p>Draw a squiggly line in the specified cairo context that approximately
1404
+ covers the given rectangle in the style of an underline used to indicate a
1405
+ spelling error. (The width of the underline is rounded to an integer
1406
+ number of up/down segments and the resulting rectangle is centered in the
1407
+ original rectangle)</p>
1408
+ <div class="refsect3">
1409
+ <a name="id-1.3.5.10.26.5"></a><h4>Parameters</h4>
1410
+ <div class="informaltable"><table width="100%" border="0">
1411
+ <colgroup>
1412
+ <col width="150px" class="parameters_name">
1413
+ <col class="parameters_description">
1414
+ <col width="200px" class="parameters_annotations">
1415
+ </colgroup>
1416
+ <tbody>
1417
+ <tr>
1418
+ <td class="parameter_name"><p>cr</p></td>
1419
+ <td class="parameter_description"><p>a Cairo context</p></td>
1420
+ <td class="parameter_annotations"> </td>
1421
+ </tr>
1422
+ <tr>
1423
+ <td class="parameter_name"><p>x</p></td>
1424
+ <td class="parameter_description"><p>The X coordinate of one corner of the rectangle</p></td>
1425
+ <td class="parameter_annotations"> </td>
1426
+ </tr>
1427
+ <tr>
1428
+ <td class="parameter_name"><p>y</p></td>
1429
+ <td class="parameter_description"><p>The Y coordinate of one corner of the rectangle</p></td>
1430
+ <td class="parameter_annotations"> </td>
1431
+ </tr>
1432
+ <tr>
1433
+ <td class="parameter_name"><p>width</p></td>
1434
+ <td class="parameter_description"><p>Non-negative width of the rectangle</p></td>
1435
+ <td class="parameter_annotations"> </td>
1436
+ </tr>
1437
+ <tr>
1438
+ <td class="parameter_name"><p>height</p></td>
1439
+ <td class="parameter_description"><p>Non-negative height of the rectangle</p></td>
1440
+ <td class="parameter_annotations"> </td>
1441
+ </tr>
1442
+ </tbody>
1443
+ </table></div>
1444
+ </div>
1445
+ <p class="since">Since 1.14</p>
1446
+ </div>
1447
+ <hr>
1448
+ <div class="refsect2">
1449
+ <a name="pango-cairo-glyph-string-path"></a><h3>pango_cairo_glyph_string_path ()</h3>
1450
+ <pre class="programlisting"><span class="returnvalue">void</span>
1451
+ pango_cairo_glyph_string_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1452
+ <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
1453
+ <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
1454
+ <p>Adds the glyphs in <em class="parameter"><code>glyphs</code></em>
1455
+ to the current path in the specified
1456
+ cairo context. The origin of the glyphs (the left edge of the baseline)
1457
+ will be at the current point of the cairo context.</p>
1458
+ <div class="refsect3">
1459
+ <a name="id-1.3.5.10.27.5"></a><h4>Parameters</h4>
1460
+ <div class="informaltable"><table width="100%" border="0">
1461
+ <colgroup>
1462
+ <col width="150px" class="parameters_name">
1463
+ <col class="parameters_description">
1464
+ <col width="200px" class="parameters_annotations">
1465
+ </colgroup>
1466
+ <tbody>
1467
+ <tr>
1468
+ <td class="parameter_name"><p>cr</p></td>
1469
+ <td class="parameter_description"><p>a Cairo context</p></td>
1470
+ <td class="parameter_annotations"> </td>
1471
+ </tr>
1472
+ <tr>
1473
+ <td class="parameter_name"><p>font</p></td>
1474
+ <td class="parameter_description"><p>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a></p></td>
1475
+ <td class="parameter_annotations"> </td>
1476
+ </tr>
1477
+ <tr>
1478
+ <td class="parameter_name"><p>glyphs</p></td>
1479
+ <td class="parameter_description"><p>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></p></td>
1480
+ <td class="parameter_annotations"> </td>
1481
+ </tr>
1482
+ </tbody>
1483
+ </table></div>
1484
+ </div>
1485
+ <p class="since">Since 1.10</p>
1486
+ </div>
1487
+ <hr>
1488
+ <div class="refsect2">
1489
+ <a name="pango-cairo-layout-line-path"></a><h3>pango_cairo_layout_line_path ()</h3>
1490
+ <pre class="programlisting"><span class="returnvalue">void</span>
1491
+ pango_cairo_layout_line_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1492
+ <em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
1493
+ <p>Adds the text in <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in the
1494
+ specified cairo context. The origin of the glyphs (the left edge
1495
+ of the line) will be at the current point of the cairo context.</p>
1496
+ <div class="refsect3">
1497
+ <a name="id-1.3.5.10.28.5"></a><h4>Parameters</h4>
1498
+ <div class="informaltable"><table width="100%" border="0">
1499
+ <colgroup>
1500
+ <col width="150px" class="parameters_name">
1501
+ <col class="parameters_description">
1502
+ <col width="200px" class="parameters_annotations">
1503
+ </colgroup>
1504
+ <tbody>
1505
+ <tr>
1506
+ <td class="parameter_name"><p>cr</p></td>
1507
+ <td class="parameter_description"><p>a Cairo context</p></td>
1508
+ <td class="parameter_annotations"> </td>
1509
+ </tr>
1510
+ <tr>
1511
+ <td class="parameter_name"><p>line</p></td>
1512
+ <td class="parameter_description"><p>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a></p></td>
1513
+ <td class="parameter_annotations"> </td>
1514
+ </tr>
1515
+ </tbody>
1516
+ </table></div>
1517
+ </div>
1518
+ <p class="since">Since 1.10</p>
1519
+ </div>
1520
+ <hr>
1521
+ <div class="refsect2">
1522
+ <a name="pango-cairo-layout-path"></a><h3>pango_cairo_layout_path ()</h3>
1523
+ <pre class="programlisting"><span class="returnvalue">void</span>
1524
+ pango_cairo_layout_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1525
+ <em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
1526
+ <p>Adds the text in a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to the current path in the
1527
+ specified cairo context. The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
1528
+ will be at the current point of the cairo context.</p>
1529
+ <div class="refsect3">
1530
+ <a name="id-1.3.5.10.29.5"></a><h4>Parameters</h4>
1531
+ <div class="informaltable"><table width="100%" border="0">
1532
+ <colgroup>
1533
+ <col width="150px" class="parameters_name">
1534
+ <col class="parameters_description">
1535
+ <col width="200px" class="parameters_annotations">
1536
+ </colgroup>
1537
+ <tbody>
1538
+ <tr>
1539
+ <td class="parameter_name"><p>cr</p></td>
1540
+ <td class="parameter_description"><p>a Cairo context</p></td>
1541
+ <td class="parameter_annotations"> </td>
1542
+ </tr>
1543
+ <tr>
1544
+ <td class="parameter_name"><p>layout</p></td>
1545
+ <td class="parameter_description"><p>a Pango layout</p></td>
1546
+ <td class="parameter_annotations"> </td>
1547
+ </tr>
1548
+ </tbody>
1549
+ </table></div>
1550
+ </div>
1551
+ <p class="since">Since 1.10</p>
1552
+ </div>
1553
+ <hr>
1554
+ <div class="refsect2">
1555
+ <a name="pango-cairo-error-underline-path"></a><h3>pango_cairo_error_underline_path ()</h3>
1556
+ <pre class="programlisting"><span class="returnvalue">void</span>
1557
+ pango_cairo_error_underline_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
1558
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
1559
+ <em class="parameter"><code><span class="type">double</span> y</code></em>,
1560
+ <em class="parameter"><code><span class="type">double</span> width</code></em>,
1561
+ <em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
1562
+ <p>Add a squiggly line to the current path in the specified cairo context that
1563
+ approximately covers the given rectangle in the style of an underline used
1564
+ to indicate a spelling error. (The width of the underline is rounded to an
1565
+ integer number of up/down segments and the resulting rectangle is centered
1566
+ in the original rectangle)</p>
1567
+ <div class="refsect3">
1568
+ <a name="id-1.3.5.10.30.5"></a><h4>Parameters</h4>
1569
+ <div class="informaltable"><table width="100%" border="0">
1570
+ <colgroup>
1571
+ <col width="150px" class="parameters_name">
1572
+ <col class="parameters_description">
1573
+ <col width="200px" class="parameters_annotations">
1574
+ </colgroup>
1575
+ <tbody>
1576
+ <tr>
1577
+ <td class="parameter_name"><p>cr</p></td>
1578
+ <td class="parameter_description"><p>a Cairo context</p></td>
1579
+ <td class="parameter_annotations"> </td>
1580
+ </tr>
1581
+ <tr>
1582
+ <td class="parameter_name"><p>x</p></td>
1583
+ <td class="parameter_description"><p>The X coordinate of one corner of the rectangle</p></td>
1584
+ <td class="parameter_annotations"> </td>
1585
+ </tr>
1586
+ <tr>
1587
+ <td class="parameter_name"><p>y</p></td>
1588
+ <td class="parameter_description"><p>The Y coordinate of one corner of the rectangle</p></td>
1589
+ <td class="parameter_annotations"> </td>
1590
+ </tr>
1591
+ <tr>
1592
+ <td class="parameter_name"><p>width</p></td>
1593
+ <td class="parameter_description"><p>Non-negative width of the rectangle</p></td>
1594
+ <td class="parameter_annotations"> </td>
1595
+ </tr>
1596
+ <tr>
1597
+ <td class="parameter_name"><p>height</p></td>
1598
+ <td class="parameter_description"><p>Non-negative height of the rectangle</p></td>
1599
+ <td class="parameter_annotations"> </td>
1600
+ </tr>
1601
+ </tbody>
1602
+ </table></div>
1603
+ </div>
1604
+ <p class="since">Since 1.14</p>
1605
+ </div>
1606
+ </div>
1607
+ <div class="refsect1">
1608
+ <a name="pango-Cairo-Rendering.other_details"></a><h2>Types and Values</h2>
1609
+ <div class="refsect2">
1610
+ <a name="PangoCairoFont-struct"></a><h3>PangoCairoFont</h3>
1611
+ <pre class="programlisting">typedef struct _PangoCairoFont PangoCairoFont;</pre>
1612
+ <p><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> is an interface exported by fonts for
1613
+ use with Cairo. The actual type of the font will depend
1614
+ on the particular font technology Cairo was compiled to use.</p>
1615
+ <p class="since">Since 1.18</p>
1616
+ </div>
1617
+ <hr>
1618
+ <div class="refsect2">
1619
+ <a name="PangoCairoFontMap-struct"></a><h3>PangoCairoFontMap</h3>
1620
+ <pre class="programlisting">typedef struct _PangoCairoFontMap PangoCairoFontMap;</pre>
1621
+ <p><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> is an interface exported by font maps for
1622
+ use with Cairo. The actual type of the font map will depend
1623
+ on the particular font technology Cairo was compiled to use.</p>
1624
+ <p class="since">Since 1.10</p>
1625
+ </div>
1626
+ </div>
1627
+ </div>
1628
+ <div class="footer">
1629
+ <hr>
1630
+ Generated by GTK-Doc V1.21.1</div>
1631
+ </body>
1632
+ </html>