pango 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +21 -2
- data/lib/2.0/pango.so +0 -0
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icu-config +820 -0
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +3 -3
- data/vendor/local/include/harfbuzz/hb-blob.h +3 -4
- data/vendor/local/include/harfbuzz/hb-buffer.h +22 -1
- data/vendor/local/include/harfbuzz/hb-common.h +23 -18
- data/vendor/local/include/harfbuzz/hb-icu.h +52 -0
- data/vendor/local/include/harfbuzz/hb-ot-font.h +41 -0
- data/vendor/local/include/harfbuzz/hb-ot-layout.h +11 -3
- data/vendor/local/include/harfbuzz/hb-ot-shape.h +10 -11
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
- data/vendor/local/include/harfbuzz/hb-version.h +7 -7
- data/vendor/local/include/layout/LEFontInstance.h +550 -0
- data/vendor/local/include/layout/LEGlyphFilter.h +45 -0
- data/vendor/local/include/layout/LEGlyphStorage.h +546 -0
- data/vendor/local/include/layout/LEInsertionList.h +177 -0
- data/vendor/local/include/layout/LELanguages.h +112 -0
- data/vendor/local/include/layout/LEScripts.h +263 -0
- data/vendor/local/include/layout/LESwaps.h +100 -0
- data/vendor/local/include/layout/LETableReference.h +418 -0
- data/vendor/local/include/layout/LETypes.h +728 -0
- data/vendor/local/include/layout/LayoutEngine.h +518 -0
- data/vendor/local/include/layout/ParagraphLayout.h +747 -0
- data/vendor/local/include/layout/RunArrays.h +676 -0
- data/vendor/local/include/layout/loengine.h +225 -0
- data/vendor/local/include/layout/playout.h +466 -0
- data/vendor/local/include/layout/plruns.h +441 -0
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-font.h +3 -1
- data/vendor/local/include/pango-1.0/pango/pango-item.h +11 -2
- data/vendor/local/include/unicode/alphaindex.h +752 -0
- data/vendor/local/include/unicode/appendable.h +232 -0
- data/vendor/local/include/unicode/basictz.h +214 -0
- data/vendor/local/include/unicode/brkiter.h +655 -0
- data/vendor/local/include/unicode/bytestream.h +257 -0
- data/vendor/local/include/unicode/bytestrie.h +519 -0
- data/vendor/local/include/unicode/bytestriebuilder.h +181 -0
- data/vendor/local/include/unicode/calendar.h +2519 -0
- data/vendor/local/include/unicode/caniter.h +208 -0
- data/vendor/local/include/unicode/chariter.h +722 -0
- data/vendor/local/include/unicode/choicfmt.h +594 -0
- data/vendor/local/include/unicode/coleitr.h +404 -0
- data/vendor/local/include/unicode/coll.h +1267 -0
- data/vendor/local/include/unicode/compactdecimalformat.h +330 -0
- data/vendor/local/include/unicode/curramt.h +130 -0
- data/vendor/local/include/unicode/currpinf.h +258 -0
- data/vendor/local/include/unicode/currunit.h +110 -0
- data/vendor/local/include/unicode/datefmt.h +883 -0
- data/vendor/local/include/unicode/dbbi.h +40 -0
- data/vendor/local/include/unicode/dcfmtsym.h +482 -0
- data/vendor/local/include/unicode/decimfmt.h +2479 -0
- data/vendor/local/include/unicode/docmain.h +215 -0
- data/vendor/local/include/unicode/dtfmtsym.h +912 -0
- data/vendor/local/include/unicode/dtintrv.h +158 -0
- data/vendor/local/include/unicode/dtitvfmt.h +985 -0
- data/vendor/local/include/unicode/dtitvinf.h +514 -0
- data/vendor/local/include/unicode/dtptngen.h +498 -0
- data/vendor/local/include/unicode/dtrule.h +250 -0
- data/vendor/local/include/unicode/enumset.h +64 -0
- data/vendor/local/include/unicode/errorcode.h +137 -0
- data/vendor/local/include/unicode/fieldpos.h +291 -0
- data/vendor/local/include/unicode/filteredbrk.h +131 -0
- data/vendor/local/include/unicode/fmtable.h +760 -0
- data/vendor/local/include/unicode/format.h +305 -0
- data/vendor/local/include/unicode/fpositer.h +117 -0
- data/vendor/local/include/unicode/gender.h +111 -0
- data/vendor/local/include/unicode/gregocal.h +777 -0
- data/vendor/local/include/unicode/icudataver.h +41 -0
- data/vendor/local/include/unicode/icuplug.h +371 -0
- data/vendor/local/include/unicode/idna.h +323 -0
- data/vendor/local/include/unicode/listformatter.h +167 -0
- data/vendor/local/include/unicode/localpointer.h +304 -0
- data/vendor/local/include/unicode/locdspnm.h +204 -0
- data/vendor/local/include/unicode/locid.h +815 -0
- data/vendor/local/include/unicode/measfmt.h +389 -0
- data/vendor/local/include/unicode/measunit.h +1443 -0
- data/vendor/local/include/unicode/measure.h +159 -0
- data/vendor/local/include/unicode/messagepattern.h +943 -0
- data/vendor/local/include/unicode/msgfmt.h +1093 -0
- data/vendor/local/include/unicode/normalizer2.h +658 -0
- data/vendor/local/include/unicode/normlzr.h +797 -0
- data/vendor/local/include/unicode/numfmt.h +1187 -0
- data/vendor/local/include/unicode/numsys.h +208 -0
- data/vendor/local/include/unicode/parseerr.h +92 -0
- data/vendor/local/include/unicode/parsepos.h +230 -0
- data/vendor/local/include/unicode/platform.h +751 -0
- data/vendor/local/include/unicode/plurfmt.h +615 -0
- data/vendor/local/include/unicode/plurrule.h +501 -0
- data/vendor/local/include/unicode/ptypes.h +126 -0
- data/vendor/local/include/unicode/putil.h +181 -0
- data/vendor/local/include/unicode/rbbi.h +782 -0
- data/vendor/local/include/unicode/rbnf.h +1032 -0
- data/vendor/local/include/unicode/rbtz.h +362 -0
- data/vendor/local/include/unicode/regex.h +1857 -0
- data/vendor/local/include/unicode/region.h +228 -0
- data/vendor/local/include/unicode/reldatefmt.h +498 -0
- data/vendor/local/include/unicode/rep.h +261 -0
- data/vendor/local/include/unicode/resbund.h +490 -0
- data/vendor/local/include/unicode/schriter.h +187 -0
- data/vendor/local/include/unicode/scientificformathelper.h +139 -0
- data/vendor/local/include/unicode/search.h +575 -0
- data/vendor/local/include/unicode/selfmt.h +367 -0
- data/vendor/local/include/unicode/simpletz.h +928 -0
- data/vendor/local/include/unicode/smpdtfmt.h +1592 -0
- data/vendor/local/include/unicode/sortkey.h +338 -0
- data/vendor/local/include/unicode/std_string.h +37 -0
- data/vendor/local/include/unicode/strenum.h +276 -0
- data/vendor/local/include/unicode/stringpiece.h +224 -0
- data/vendor/local/include/unicode/stringtriebuilder.h +402 -0
- data/vendor/local/include/unicode/stsearch.h +504 -0
- data/vendor/local/include/unicode/symtable.h +112 -0
- data/vendor/local/include/unicode/tblcoll.h +873 -0
- data/vendor/local/include/unicode/timezone.h +948 -0
- data/vendor/local/include/unicode/tmunit.h +129 -0
- data/vendor/local/include/unicode/tmutamt.h +168 -0
- data/vendor/local/include/unicode/tmutfmt.h +243 -0
- data/vendor/local/include/unicode/translit.h +1342 -0
- data/vendor/local/include/unicode/tzfmt.h +1098 -0
- data/vendor/local/include/unicode/tznames.h +404 -0
- data/vendor/local/include/unicode/tzrule.h +828 -0
- data/vendor/local/include/unicode/tztrans.h +195 -0
- data/vendor/local/include/unicode/ubidi.h +2186 -0
- data/vendor/local/include/unicode/ubrk.h +540 -0
- data/vendor/local/include/unicode/ucal.h +1560 -0
- data/vendor/local/include/unicode/ucasemap.h +423 -0
- data/vendor/local/include/unicode/ucat.h +158 -0
- data/vendor/local/include/unicode/uchar.h +3426 -0
- data/vendor/local/include/unicode/ucharstrie.h +576 -0
- data/vendor/local/include/unicode/ucharstriebuilder.h +185 -0
- data/vendor/local/include/unicode/uchriter.h +381 -0
- data/vendor/local/include/unicode/uclean.h +258 -0
- data/vendor/local/include/unicode/ucnv.h +2036 -0
- data/vendor/local/include/unicode/ucnv_cb.h +162 -0
- data/vendor/local/include/unicode/ucnv_err.h +463 -0
- data/vendor/local/include/unicode/ucnvsel.h +187 -0
- data/vendor/local/include/unicode/ucol.h +1474 -0
- data/vendor/local/include/unicode/ucoleitr.h +266 -0
- data/vendor/local/include/unicode/uconfig.h +430 -0
- data/vendor/local/include/unicode/ucsdet.h +413 -0
- data/vendor/local/include/unicode/ucurr.h +424 -0
- data/vendor/local/include/unicode/udat.h +1536 -0
- data/vendor/local/include/unicode/udata.h +430 -0
- data/vendor/local/include/unicode/udateintervalformat.h +181 -0
- data/vendor/local/include/unicode/udatpg.h +588 -0
- data/vendor/local/include/unicode/udisplaycontext.h +150 -0
- data/vendor/local/include/unicode/uenum.h +206 -0
- data/vendor/local/include/unicode/uformattable.h +280 -0
- data/vendor/local/include/unicode/ugender.h +82 -0
- data/vendor/local/include/unicode/uidna.h +762 -0
- data/vendor/local/include/unicode/uiter.h +707 -0
- data/vendor/local/include/unicode/uldnames.h +302 -0
- data/vendor/local/include/unicode/uloc.h +1256 -0
- data/vendor/local/include/unicode/ulocdata.h +277 -0
- data/vendor/local/include/unicode/umachine.h +356 -0
- data/vendor/local/include/unicode/umisc.h +60 -0
- data/vendor/local/include/unicode/umsg.h +623 -0
- data/vendor/local/include/unicode/unifilt.h +120 -0
- data/vendor/local/include/unicode/unifunct.h +125 -0
- data/vendor/local/include/unicode/unimatch.h +163 -0
- data/vendor/local/include/unicode/unirepl.h +97 -0
- data/vendor/local/include/unicode/uniset.h +1691 -0
- data/vendor/local/include/unicode/unistr.h +4470 -0
- data/vendor/local/include/unicode/unorm.h +561 -0
- data/vendor/local/include/unicode/unorm2.h +528 -0
- data/vendor/local/include/unicode/unum.h +1328 -0
- data/vendor/local/include/unicode/unumsys.h +170 -0
- data/vendor/local/include/unicode/uobject.h +320 -0
- data/vendor/local/include/unicode/upluralrules.h +145 -0
- data/vendor/local/include/unicode/uregex.h +1591 -0
- data/vendor/local/include/unicode/uregion.h +248 -0
- data/vendor/local/include/unicode/urename.h +1784 -0
- data/vendor/local/include/unicode/urep.h +155 -0
- data/vendor/local/include/unicode/ures.h +887 -0
- data/vendor/local/include/unicode/uscript.h +642 -0
- data/vendor/local/include/unicode/usearch.h +885 -0
- data/vendor/local/include/unicode/uset.h +1126 -0
- data/vendor/local/include/unicode/usetiter.h +318 -0
- data/vendor/local/include/unicode/ushape.h +474 -0
- data/vendor/local/include/unicode/uspoof.h +1064 -0
- data/vendor/local/include/unicode/usprep.h +269 -0
- data/vendor/local/include/unicode/ustdio.h +1018 -0
- data/vendor/local/include/unicode/ustream.h +68 -0
- data/vendor/local/include/unicode/ustring.h +1700 -0
- data/vendor/local/include/unicode/ustringtrie.h +95 -0
- data/vendor/local/include/unicode/utext.h +1600 -0
- data/vendor/local/include/unicode/utf.h +223 -0
- data/vendor/local/include/unicode/utf16.h +623 -0
- data/vendor/local/include/unicode/utf32.h +23 -0
- data/vendor/local/include/unicode/utf8.h +824 -0
- data/vendor/local/include/unicode/utf_old.h +1169 -0
- data/vendor/local/include/unicode/utmscale.h +481 -0
- data/vendor/local/include/unicode/utrace.h +359 -0
- data/vendor/local/include/unicode/utrans.h +658 -0
- data/vendor/local/include/unicode/utypes.h +723 -0
- data/vendor/local/include/unicode/uvernum.h +170 -0
- data/vendor/local/include/unicode/uversion.h +193 -0
- data/vendor/local/include/unicode/vtzone.h +455 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
- data/vendor/local/lib/icu/54.1/Makefile.inc +293 -0
- data/vendor/local/lib/icu/54.1/pkgdata.inc +17 -0
- data/vendor/local/lib/icu/Makefile.inc +293 -0
- data/vendor/local/lib/icu/pkgdata.inc +17 -0
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/icudt54.dll +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin54.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio54.dll +0 -0
- data/vendor/local/lib/icule.dll +0 -0
- data/vendor/local/lib/icule54.dll +0 -0
- data/vendor/local/lib/iculx.dll +0 -0
- data/vendor/local/lib/iculx54.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest54.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu54.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc54.dll +0 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +41 -0
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +3 -3
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicule.dll.a +0 -0
- data/vendor/local/lib/libiculx.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +2 -2
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +2 -2
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +2 -2
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +1 -1
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +1 -1
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +1 -1
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +13 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/icu-i18n.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-io.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-le.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-lx.pc +38 -0
- data/vendor/local/lib/pkgconfig/icu-uc.pc +38 -0
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +3009 -462
- data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +64 -22
- data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +4 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +30 -26
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +343 -313
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +6 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +442 -247
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1389 -654
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +954 -698
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +95 -18
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +36 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +477 -191
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +1951 -1039
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +123 -65
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +66 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +67 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +66 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +574 -347
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +104 -37
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +10 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +744 -318
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +294 -153
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +196 -104
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1100 -757
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +51 -18
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +110 -84
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +289 -503
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +161 -316
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +31 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +143 -105
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +150 -108
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +163 -112
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +348 -229
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +746 -514
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +853 -623
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +29 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +31 -33
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +10 -12
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +12 -14
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +53 -55
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +28 -30
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +29 -31
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +17 -19
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +28 -30
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +17 -19
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +9 -11
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +11 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +7 -9
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +49 -51
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +36 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +37 -39
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +68 -70
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +568 -570
- data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +229 -399
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +345 -259
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +979 -664
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +70 -43
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +349 -229
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +236 -153
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +3100 -2159
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +659 -472
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +1952 -1384
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +3050 -2135
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +676 -463
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +223 -146
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1589 -1199
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +1072 -842
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +406 -276
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +2541 -1792
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +1479 -1033
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +214 -154
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +374 -291
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +733 -498
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +893 -617
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +59 -59
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +578 -782
- data/vendor/local/share/gtk-doc/html/pango/pango.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/pango/tools.html +4 -4
- data/vendor/local/share/icu/54.1/config/mh-mingw +158 -0
- data/vendor/local/share/icu/54.1/install-sh +251 -0
- data/vendor/local/share/icu/54.1/license.html +385 -0
- data/vendor/local/share/icu/54.1/mkinstalldirs +43 -0
- data/vendor/local/share/license/harfbuzz/AUTHORS +1 -0
- data/vendor/local/share/man/man1/derb.1 +196 -0
- data/vendor/local/share/man/man1/genbrk.1 +112 -0
- data/vendor/local/share/man/man1/gencfu.1 +91 -0
- data/vendor/local/share/man/man1/gencnval.1 +91 -0
- data/vendor/local/share/man/man1/gendict.1 +131 -0
- data/vendor/local/share/man/man1/genrb.1 +146 -0
- data/vendor/local/share/man/man1/icu-config.1 +288 -0
- data/vendor/local/share/man/man1/makeconv.1 +112 -0
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -118
- data/vendor/local/share/man/man1/pkgdata.1 +258 -0
- data/vendor/local/share/man/man1/uconv.1 +443 -0
- data/vendor/local/share/man/man8/genccode.8 +106 -0
- data/vendor/local/share/man/man8/gencmn.8 +129 -0
- data/vendor/local/share/man/man8/gensprep.8 +102 -0
- data/vendor/local/share/man/man8/icupkg.8 +204 -0
- metadata +266 -14
- data/lib/1.9/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
@@ -8,17 +8,15 @@
|
|
8
8
|
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
|
9
9
|
<link rel="prev" href="pango-Bidirectional-Text.html" title="Bidirectional Text">
|
10
10
|
<link rel="next" href="rendering.html" title="Rendering with Pango">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.21.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
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="
|
16
|
-
<td width="100%" align="left">
|
17
|
-
<a href="#" class="shortcut">Top</a>
|
18
|
-
|
19
|
-
<a href="#pango-Vertical-Text.
|
20
|
-
|
|
21
|
-
<a href="#pango-Vertical-Text.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
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-Vertical-Text.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#pango-Vertical-Text.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
|
22
20
|
</td>
|
23
21
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
24
22
|
<td><a accesskey="u" href="pango.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
@@ -32,409 +30,494 @@
|
|
32
30
|
<h2><span class="refentrytitle"><a name="pango-Vertical-Text.top_of_page"></a>Vertical Text</span></h2>
|
33
31
|
<p>Vertical Text — Laying text out in vertical directions</p>
|
34
32
|
</td>
|
35
|
-
<td valign="top" align="right"></td>
|
33
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
36
34
|
</tr></table></div>
|
37
|
-
<div class="refsynopsisdiv">
|
38
|
-
<a name="pango-Vertical-Text.synopsis"></a><h2>Synopsis</h2>
|
39
|
-
<a name="PangoGravity"></a><a name="PangoGravityHint"></a><pre class="synopsis">enum <a class="link" href="pango-Vertical-Text.html#PangoGravity-enum" title="enum PangoGravity">PangoGravity</a>;
|
40
|
-
enum <a class="link" href="pango-Vertical-Text.html#PangoGravityHint-enum" title="enum PangoGravityHint">PangoGravityHint</a>;
|
41
|
-
#define <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-IS-IMPROPER:CAPS" title="PANGO_GRAVITY_IS_IMPROPER()">PANGO_GRAVITY_IS_IMPROPER</a> (gravity)
|
42
|
-
#define <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-IS-VERTICAL:CAPS" title="PANGO_GRAVITY_IS_VERTICAL()">PANGO_GRAVITY_IS_VERTICAL</a> (gravity)
|
43
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> <a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-matrix" title="pango_gravity_get_for_matrix ()">pango_gravity_get_for_matrix</a> (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);
|
44
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> <a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script" title="pango_gravity_get_for_script ()">pango_gravity_get_for_script</a> (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoScript"><span class="type">PangoScript</span></a> script</code></em>,
|
45
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> base_gravity</code></em>,
|
46
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);
|
47
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> <a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script-and-width" title="pango_gravity_get_for_script_and_width ()">pango_gravity_get_for_script_and_width</a>
|
48
|
-
(<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoScript"><span class="type">PangoScript</span></a> script</code></em>,
|
49
|
-
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> wide</code></em>,
|
50
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> base_gravity</code></em>,
|
51
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);
|
52
|
-
<span class="returnvalue">double</span> <a class="link" href="pango-Vertical-Text.html#pango-gravity-to-rotation" title="pango_gravity_to_rotation ()">pango_gravity_to_rotation</a> (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);
|
53
|
-
</pre>
|
54
|
-
</div>
|
55
|
-
<div class="refsect1">
|
56
|
-
<a name="pango-Vertical-Text.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
57
|
-
<pre class="synopsis">
|
58
|
-
GEnum
|
59
|
-
+----PangoGravity
|
60
|
-
</pre>
|
61
|
-
<pre class="synopsis">
|
62
|
-
GEnum
|
63
|
-
+----PangoGravityHint
|
64
|
-
</pre>
|
65
|
-
</div>
|
66
|
-
<div class="refsect1">
|
67
|
-
<a name="pango-Vertical-Text.description"></a><h2>Description</h2>
|
68
|
-
<p>
|
69
|
-
Since 1.16, Pango is able to correctly lay vertical text out. In fact, it can
|
70
|
-
set layouts of mixed vertical and non-vertical text. This section describes
|
71
|
-
the types used for setting vertical text parameters.</p>
|
72
|
-
<p>
|
73
|
-
The way this is implemented is through the concept of
|
74
|
-
<em class="firstterm">gravity</em>. Gravity of normal Latin text is south. A
|
75
|
-
gravity value of east means that glyphs will be rotated ninety degrees
|
76
|
-
counterclockwise. So, to render vertical text one needs to set the gravity
|
77
|
-
and rotate the layout using the matrix machinery already in place. This has
|
78
|
-
the huge advantage that most algorithms working on a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> do not need
|
79
|
-
any change as the assumption that lines run in the X direction and stack in
|
80
|
-
the Y direction holds even for vertical text layouts.</p>
|
81
|
-
<p>
|
82
|
-
Applications should only need to set base gravity on <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> in use, and
|
83
|
-
let Pango decide the gravity assigned to each run of text. This automatically
|
84
|
-
handles text with mixed scripts. A very common use is to set the context base
|
85
|
-
gravity to auto using <a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>
|
86
|
-
and rotate the layout normally. Pango will make sure that
|
87
|
-
Asian languages take the right form, while other scripts are rotated normally.</p>
|
88
|
-
<p>
|
89
|
-
The correct way to set gravity on a layout is to set it on the context
|
90
|
-
associated with it using <a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>. The context
|
91
|
-
of a layout can be accessed using <a class="link" href="pango-Layout-Objects.html#pango-layout-get-context" title="pango_layout_get_context ()"><code class="function">pango_layout_get_context()</code></a>. The currently
|
92
|
-
set base gravity of the context can be accessed using
|
93
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()"><code class="function">pango_context_get_base_gravity()</code></a> and the <em class="firstterm">resolved</em>
|
94
|
-
gravity of it using <a class="link" href="pango-Text-Processing.html#pango-context-get-gravity" title="pango_context_get_gravity ()"><code class="function">pango_context_get_gravity()</code></a>. The resolved gravity is
|
95
|
-
the same as the base gravity for the most part, except that if the base
|
96
|
-
gravity is set to <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, the resolved gravity will depend
|
97
|
-
on the current matrix set on context, and is derived using
|
98
|
-
<a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-matrix" title="pango_gravity_get_for_matrix ()"><code class="function">pango_gravity_get_for_matrix()</code></a>.</p>
|
99
|
-
<p>
|
100
|
-
The next thing an application may want to set on the context is the
|
101
|
-
<em class="firstterm">gravity hint</em>. A <a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> instructs how
|
102
|
-
different scripts should react to the set base gravity.</p>
|
103
|
-
<p>
|
104
|
-
Font descriptions have a gravity property too, that can be set using
|
105
|
-
<a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity ()"><code class="function">pango_font_description_set_gravity()</code></a> and accessed using
|
106
|
-
<a class="link" href="pango-Fonts.html#pango-font-description-get-gravity" title="pango_font_description_get_gravity ()"><code class="function">pango_font_description_get_gravity()</code></a>. However, those are rarely useful
|
107
|
-
from application code and are mainly used by <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> internally.</p>
|
108
|
-
<p>
|
109
|
-
Last but not least, one can create <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>s for gravity
|
110
|
-
and gravity hint using <a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new ()"><code class="function">pango_attr_gravity_new()</code></a> and
|
111
|
-
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new ()"><code class="function">pango_attr_gravity_hint_new()</code></a>.</p>
|
112
|
-
</div>
|
113
35
|
<div class="refsect1">
|
114
|
-
<a name="pango-Vertical-Text.
|
115
|
-
<div class="
|
116
|
-
<a name="PangoGravity-enum"></a><h3>enum PangoGravity</h3>
|
117
|
-
<pre class="programlisting">typedef enum {
|
118
|
-
PANGO_GRAVITY_SOUTH,
|
119
|
-
PANGO_GRAVITY_EAST,
|
120
|
-
PANGO_GRAVITY_NORTH,
|
121
|
-
PANGO_GRAVITY_WEST,
|
122
|
-
PANGO_GRAVITY_AUTO
|
123
|
-
} PangoGravity;
|
124
|
-
</pre>
|
125
|
-
<p>
|
126
|
-
The <a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> type represents the orientation of glyphs in a segment
|
127
|
-
of text. This is useful when rendering vertical text layouts. In
|
128
|
-
those situations, the layout is rotated using a non-identity PangoMatrix,
|
129
|
-
and then glyph orientation is controlled using <a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a>.
|
130
|
-
Not every value in this enumeration makes sense for every usage of
|
131
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a>; for example, <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a> only can be passed to
|
132
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a> and can only be returned by
|
133
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()"><code class="function">pango_context_get_base_gravity()</code></a>.</p>
|
134
|
-
<p>
|
135
|
-
See also: <a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a></p>
|
136
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
36
|
+
<a name="pango-Vertical-Text.functions"></a><h2>Functions</h2>
|
37
|
+
<div class="informaltable"><table width="100%" border="0">
|
137
38
|
<colgroup>
|
138
|
-
<col
|
139
|
-
<col>
|
39
|
+
<col width="150px" class="functions_return">
|
40
|
+
<col class="functions_name">
|
140
41
|
</colgroup>
|
141
42
|
<tbody>
|
142
43
|
<tr>
|
143
|
-
<td
|
144
|
-
<td>
|
44
|
+
<td class="define_keyword">#define</td>
|
45
|
+
<td class="function_name">
|
46
|
+
<a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-IS-IMPROPER:CAPS" title="PANGO_GRAVITY_IS_IMPROPER()">PANGO_GRAVITY_IS_IMPROPER</a><span class="c_punctuation">()</span>
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
<tr>
|
50
|
+
<td class="define_keyword">#define</td>
|
51
|
+
<td class="function_name">
|
52
|
+
<a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-IS-VERTICAL:CAPS" title="PANGO_GRAVITY_IS_VERTICAL()">PANGO_GRAVITY_IS_VERTICAL</a><span class="c_punctuation">()</span>
|
145
53
|
</td>
|
146
54
|
</tr>
|
147
55
|
<tr>
|
148
|
-
<td
|
149
|
-
<
|
56
|
+
<td class="function_type">
|
57
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
58
|
+
</td>
|
59
|
+
<td class="function_name">
|
60
|
+
<a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-matrix" title="pango_gravity_get_for_matrix ()">pango_gravity_get_for_matrix</a> <span class="c_punctuation">()</span>
|
150
61
|
</td>
|
151
62
|
</tr>
|
152
63
|
<tr>
|
153
|
-
<td
|
154
|
-
<
|
64
|
+
<td class="function_type">
|
65
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
66
|
+
</td>
|
67
|
+
<td class="function_name">
|
68
|
+
<a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script" title="pango_gravity_get_for_script ()">pango_gravity_get_for_script</a> <span class="c_punctuation">()</span>
|
155
69
|
</td>
|
156
70
|
</tr>
|
157
71
|
<tr>
|
158
|
-
<td
|
159
|
-
<
|
72
|
+
<td class="function_type">
|
73
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
74
|
+
</td>
|
75
|
+
<td class="function_name">
|
76
|
+
<a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script-and-width" title="pango_gravity_get_for_script_and_width ()">pango_gravity_get_for_script_and_width</a> <span class="c_punctuation">()</span>
|
160
77
|
</td>
|
161
78
|
</tr>
|
162
79
|
<tr>
|
163
|
-
<td
|
164
|
-
<
|
80
|
+
<td class="function_type">
|
81
|
+
<span class="returnvalue">double</span>
|
82
|
+
</td>
|
83
|
+
<td class="function_name">
|
84
|
+
<a class="link" href="pango-Vertical-Text.html#pango-gravity-to-rotation" title="pango_gravity_to_rotation ()">pango_gravity_to_rotation</a> <span class="c_punctuation">()</span>
|
165
85
|
</td>
|
166
86
|
</tr>
|
167
87
|
</tbody>
|
168
88
|
</table></div>
|
169
|
-
<p class="since">Since 1.16</p>
|
170
89
|
</div>
|
171
|
-
<
|
172
|
-
<
|
173
|
-
<
|
174
|
-
<pre class="programlisting">typedef enum {
|
175
|
-
PANGO_GRAVITY_HINT_NATURAL,
|
176
|
-
PANGO_GRAVITY_HINT_STRONG,
|
177
|
-
PANGO_GRAVITY_HINT_LINE
|
178
|
-
} PangoGravityHint;
|
179
|
-
</pre>
|
180
|
-
<p>
|
181
|
-
The <a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> defines how horizontal scripts should behave in a
|
182
|
-
vertical context. That is, English excerpt in a vertical paragraph for
|
183
|
-
example.</p>
|
184
|
-
<p>
|
185
|
-
See <a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a>.</p>
|
186
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
90
|
+
<div class="refsect1">
|
91
|
+
<a name="pango-Vertical-Text.other"></a><h2>Types and Values</h2>
|
92
|
+
<div class="informaltable"><table width="100%" border="0">
|
187
93
|
<colgroup>
|
188
|
-
<col
|
189
|
-
<col>
|
94
|
+
<col width="150px" class="name">
|
95
|
+
<col class="description">
|
190
96
|
</colgroup>
|
191
97
|
<tbody>
|
192
98
|
<tr>
|
193
|
-
<td
|
194
|
-
<td
|
195
|
-
on the base gravity and the script. This is the default.
|
196
|
-
</td>
|
99
|
+
<td class="datatype_keyword">enum</td>
|
100
|
+
<td class="function_name"><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity">PangoGravity</a></td>
|
197
101
|
</tr>
|
198
102
|
<tr>
|
199
|
-
<td
|
200
|
-
<td
|
201
|
-
the script.
|
202
|
-
</td>
|
203
|
-
</tr>
|
204
|
-
<tr>
|
205
|
-
<td><p><a name="PANGO-GRAVITY-HINT-LINE:CAPS"></a><span class="term"><code class="literal">PANGO_GRAVITY_HINT_LINE</code></span></p></td>
|
206
|
-
<td>for scripts not in their natural direction (eg.
|
207
|
-
Latin in East gravity), choose per-script gravity such that every script
|
208
|
-
respects the line progression. This means, Latin and Arabic will take
|
209
|
-
opposite gravities and both flow top-to-bottom for example.
|
210
|
-
</td>
|
103
|
+
<td class="datatype_keyword">enum</td>
|
104
|
+
<td class="function_name"><a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint">PangoGravityHint</a></td>
|
211
105
|
</tr>
|
212
106
|
</tbody>
|
213
107
|
</table></div>
|
214
|
-
<p class="since">Since 1.16</p>
|
215
108
|
</div>
|
216
|
-
<
|
109
|
+
<div class="refsect1">
|
110
|
+
<a name="pango-Vertical-Text.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
111
|
+
<pre class="screen"> GEnum
|
112
|
+
<span class="lineart">├──</span> PangoGravity
|
113
|
+
<span class="lineart">╰──</span> PangoGravityHint
|
114
|
+
</pre>
|
115
|
+
</div>
|
116
|
+
<div class="refsect1">
|
117
|
+
<a name="pango-Vertical-Text.description"></a><h2>Description</h2>
|
118
|
+
<p>Since 1.16, Pango is able to correctly lay vertical text out. In fact, it can
|
119
|
+
set layouts of mixed vertical and non-vertical text. This section describes
|
120
|
+
the types used for setting vertical text parameters.</p>
|
121
|
+
<p>The way this is implemented is through the concept of
|
122
|
+
<em class="firstterm">gravity</em>. Gravity of normal Latin text is south. A
|
123
|
+
gravity value of east means that glyphs will be rotated ninety degrees
|
124
|
+
counterclockwise. So, to render vertical text one needs to set the gravity
|
125
|
+
and rotate the layout using the matrix machinery already in place. This has
|
126
|
+
the huge advantage that most algorithms working on a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> do not need
|
127
|
+
any change as the assumption that lines run in the X direction and stack in
|
128
|
+
the Y direction holds even for vertical text layouts.</p>
|
129
|
+
<p>Applications should only need to set base gravity on <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> in use, and
|
130
|
+
let Pango decide the gravity assigned to each run of text. This automatically
|
131
|
+
handles text with mixed scripts. A very common use is to set the context base
|
132
|
+
gravity to auto using <a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>
|
133
|
+
and rotate the layout normally. Pango will make sure that
|
134
|
+
Asian languages take the right form, while other scripts are rotated normally.</p>
|
135
|
+
<p>The correct way to set gravity on a layout is to set it on the context
|
136
|
+
associated with it using <a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>. The context
|
137
|
+
of a layout can be accessed using <a class="link" href="pango-Layout-Objects.html#pango-layout-get-context" title="pango_layout_get_context ()"><code class="function">pango_layout_get_context()</code></a>. The currently
|
138
|
+
set base gravity of the context can be accessed using
|
139
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()"><code class="function">pango_context_get_base_gravity()</code></a> and the <em class="firstterm">resolved</em>
|
140
|
+
gravity of it using <a class="link" href="pango-Text-Processing.html#pango-context-get-gravity" title="pango_context_get_gravity ()"><code class="function">pango_context_get_gravity()</code></a>. The resolved gravity is
|
141
|
+
the same as the base gravity for the most part, except that if the base
|
142
|
+
gravity is set to <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, the resolved gravity will depend
|
143
|
+
on the current matrix set on context, and is derived using
|
144
|
+
<a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-matrix" title="pango_gravity_get_for_matrix ()"><code class="function">pango_gravity_get_for_matrix()</code></a>.</p>
|
145
|
+
<p>The next thing an application may want to set on the context is the
|
146
|
+
<em class="firstterm">gravity hint</em>. A <a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a> instructs how
|
147
|
+
different scripts should react to the set base gravity.</p>
|
148
|
+
<p>Font descriptions have a gravity property too, that can be set using
|
149
|
+
<a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity ()"><code class="function">pango_font_description_set_gravity()</code></a> and accessed using
|
150
|
+
<a class="link" href="pango-Fonts.html#pango-font-description-get-gravity" title="pango_font_description_get_gravity ()"><code class="function">pango_font_description_get_gravity()</code></a>. However, those are rarely useful
|
151
|
+
from application code and are mainly used by <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> internally.</p>
|
152
|
+
<p>Last but not least, one can create <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>s for gravity
|
153
|
+
and gravity hint using <a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new ()"><code class="function">pango_attr_gravity_new()</code></a> and
|
154
|
+
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new ()"><code class="function">pango_attr_gravity_hint_new()</code></a>.</p>
|
155
|
+
</div>
|
156
|
+
<div class="refsect1">
|
157
|
+
<a name="pango-Vertical-Text.functions_details"></a><h2>Functions</h2>
|
217
158
|
<div class="refsect2">
|
218
159
|
<a name="PANGO-GRAVITY-IS-IMPROPER:CAPS"></a><h3>PANGO_GRAVITY_IS_IMPROPER()</h3>
|
219
160
|
<pre class="programlisting">#define PANGO_GRAVITY_IS_IMPROPER(gravity)</pre>
|
220
|
-
<p>
|
221
|
-
|
222
|
-
<
|
161
|
+
<p>Whether a <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> represents a gravity that results in reversal of text direction.</p>
|
162
|
+
<div class="refsect3">
|
163
|
+
<a name="id-1.2.11.7.2.5"></a><h4>Parameters</h4>
|
164
|
+
<div class="informaltable"><table width="100%" border="0">
|
223
165
|
<colgroup>
|
224
|
-
<col
|
225
|
-
<col>
|
166
|
+
<col width="150px" class="parameters_name">
|
167
|
+
<col class="parameters_description">
|
168
|
+
<col width="200px" class="parameters_annotations">
|
226
169
|
</colgroup>
|
227
|
-
<tbody>
|
228
|
-
<
|
229
|
-
<td><p
|
230
|
-
<td
|
231
|
-
</tr>
|
232
|
-
<tr>
|
233
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
234
|
-
<td>
|
235
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>gravity</code></em> is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-WEST:CAPS"><code class="literal">PANGO_GRAVITY_WEST</code></a> or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-NORTH:CAPS"><code class="literal">PANGO_GRAVITY_NORTH</code></a>,
|
236
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
|
237
|
-
</tr>
|
238
|
-
</tbody>
|
170
|
+
<tbody><tr>
|
171
|
+
<td class="parameter_name"><p>gravity</p></td>
|
172
|
+
<td class="parameter_description"><p>the <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> to check</p></td>
|
173
|
+
<td class="parameter_annotations"> </td>
|
174
|
+
</tr></tbody>
|
239
175
|
</table></div>
|
176
|
+
</div>
|
177
|
+
<div class="refsect3">
|
178
|
+
<a name="id-1.2.11.7.2.6"></a><h4>Returns</h4>
|
179
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>gravity</code></em>
|
180
|
+
is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-WEST:CAPS"><code class="literal">PANGO_GRAVITY_WEST</code></a> or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-NORTH:CAPS"><code class="literal">PANGO_GRAVITY_NORTH</code></a>,
|
181
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
182
|
+
<p></p>
|
183
|
+
</div>
|
240
184
|
<p class="since">Since 1.32</p>
|
241
185
|
</div>
|
242
186
|
<hr>
|
243
187
|
<div class="refsect2">
|
244
188
|
<a name="PANGO-GRAVITY-IS-VERTICAL:CAPS"></a><h3>PANGO_GRAVITY_IS_VERTICAL()</h3>
|
245
189
|
<pre class="programlisting">#define PANGO_GRAVITY_IS_VERTICAL(gravity)</pre>
|
246
|
-
<p>
|
247
|
-
|
248
|
-
<
|
190
|
+
<p>Whether a <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> represents vertical writing directions.</p>
|
191
|
+
<div class="refsect3">
|
192
|
+
<a name="id-1.2.11.7.3.5"></a><h4>Parameters</h4>
|
193
|
+
<div class="informaltable"><table width="100%" border="0">
|
249
194
|
<colgroup>
|
250
|
-
<col
|
251
|
-
<col>
|
195
|
+
<col width="150px" class="parameters_name">
|
196
|
+
<col class="parameters_description">
|
197
|
+
<col width="200px" class="parameters_annotations">
|
252
198
|
</colgroup>
|
253
|
-
<tbody>
|
254
|
-
<
|
255
|
-
<td><p
|
256
|
-
<td
|
257
|
-
</tr>
|
258
|
-
<tr>
|
259
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
260
|
-
<td>
|
261
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>gravity</code></em> is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-EAST:CAPS"><code class="literal">PANGO_GRAVITY_EAST</code></a> or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-WEST:CAPS"><code class="literal">PANGO_GRAVITY_WEST</code></a>,
|
262
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
|
263
|
-
</tr>
|
264
|
-
</tbody>
|
199
|
+
<tbody><tr>
|
200
|
+
<td class="parameter_name"><p>gravity</p></td>
|
201
|
+
<td class="parameter_description"><p>the <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> to check</p></td>
|
202
|
+
<td class="parameter_annotations"> </td>
|
203
|
+
</tr></tbody>
|
265
204
|
</table></div>
|
205
|
+
</div>
|
206
|
+
<div class="refsect3">
|
207
|
+
<a name="id-1.2.11.7.3.6"></a><h4>Returns</h4>
|
208
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>gravity</code></em>
|
209
|
+
is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-EAST:CAPS"><code class="literal">PANGO_GRAVITY_EAST</code></a> or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-WEST:CAPS"><code class="literal">PANGO_GRAVITY_WEST</code></a>,
|
210
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
211
|
+
<p></p>
|
212
|
+
</div>
|
266
213
|
<p class="since">Since 1.16</p>
|
267
214
|
</div>
|
268
215
|
<hr>
|
269
216
|
<div class="refsect2">
|
270
|
-
<a name="pango-gravity-get-for-matrix"></a><h3>pango_gravity_get_for_matrix
|
271
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
272
|
-
<
|
273
|
-
Finds the gravity that best matches the rotation component
|
217
|
+
<a name="pango-gravity-get-for-matrix"></a><h3>pango_gravity_get_for_matrix ()</h3>
|
218
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
219
|
+
pango_gravity_get_for_matrix (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);</pre>
|
220
|
+
<p>Finds the gravity that best matches the rotation component
|
274
221
|
in a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>.</p>
|
275
|
-
<div class="
|
222
|
+
<div class="refsect3">
|
223
|
+
<a name="id-1.2.11.7.4.5"></a><h4>Parameters</h4>
|
224
|
+
<div class="informaltable"><table width="100%" border="0">
|
276
225
|
<colgroup>
|
277
|
-
<col
|
278
|
-
<col>
|
226
|
+
<col width="150px" class="parameters_name">
|
227
|
+
<col class="parameters_description">
|
228
|
+
<col width="200px" class="parameters_annotations">
|
279
229
|
</colgroup>
|
280
|
-
<tbody>
|
281
|
-
<
|
282
|
-
<td><p
|
283
|
-
<td
|
284
|
-
</
|
285
|
-
</tr>
|
286
|
-
<tr>
|
287
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
288
|
-
<td>the gravity of <em class="parameter"><code>matrix</code></em>, which will never be
|
289
|
-
<a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-SOUTH:CAPS"><code class="literal">PANGO_GRAVITY_SOUTH</code></a> if <em class="parameter"><code>matrix</code></em> is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
290
|
-
</td>
|
291
|
-
</tr>
|
292
|
-
</tbody>
|
230
|
+
<tbody><tr>
|
231
|
+
<td class="parameter_name"><p>matrix</p></td>
|
232
|
+
<td class="parameter_description"><p>a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></p></td>
|
233
|
+
<td class="parameter_annotations"> </td>
|
234
|
+
</tr></tbody>
|
293
235
|
</table></div>
|
236
|
+
</div>
|
237
|
+
<div class="refsect3">
|
238
|
+
<a name="id-1.2.11.7.4.6"></a><h4>Returns</h4>
|
239
|
+
<p> the gravity of <em class="parameter"><code>matrix</code></em>
|
240
|
+
, which will never be
|
241
|
+
<a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, or <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-SOUTH:CAPS"><code class="literal">PANGO_GRAVITY_SOUTH</code></a> if <em class="parameter"><code>matrix</code></em>
|
242
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
243
|
+
<p></p>
|
244
|
+
</div>
|
294
245
|
<p class="since">Since 1.16</p>
|
295
246
|
</div>
|
296
247
|
<hr>
|
297
248
|
<div class="refsect2">
|
298
|
-
<a name="pango-gravity-get-for-script"></a><h3>pango_gravity_get_for_script
|
299
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
300
|
-
|
301
|
-
|
302
|
-
<
|
303
|
-
Based on the script, base gravity, and hint, returns actual gravity
|
249
|
+
<a name="pango-gravity-get-for-script"></a><h3>pango_gravity_get_for_script ()</h3>
|
250
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
251
|
+
pango_gravity_get_for_script (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoScript" title="enum PangoScript"><span class="type">PangoScript</span></a> script</code></em>,
|
252
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> base_gravity</code></em>,
|
253
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
|
254
|
+
<p>Based on the script, base gravity, and hint, returns actual gravity
|
304
255
|
to use in laying out a single <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>.</p>
|
305
|
-
<p>
|
306
|
-
|
307
|
-
preferred gravity of <em class="parameter"><code>script</code></em
|
256
|
+
<p>If <em class="parameter"><code>base_gravity</code></em>
|
257
|
+
is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, it is first replaced with the
|
258
|
+
preferred gravity of <em class="parameter"><code>script</code></em>
|
259
|
+
. To get the preferred gravity of a script,
|
308
260
|
pass <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a> and <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-HINT-STRONG:CAPS"><code class="literal">PANGO_GRAVITY_HINT_STRONG</code></a> in.</p>
|
309
|
-
<div class="
|
261
|
+
<div class="refsect3">
|
262
|
+
<a name="id-1.2.11.7.5.6"></a><h4>Parameters</h4>
|
263
|
+
<div class="informaltable"><table width="100%" border="0">
|
310
264
|
<colgroup>
|
311
|
-
<col
|
312
|
-
<col>
|
265
|
+
<col width="150px" class="parameters_name">
|
266
|
+
<col class="parameters_description">
|
267
|
+
<col width="200px" class="parameters_annotations">
|
313
268
|
</colgroup>
|
314
269
|
<tbody>
|
315
270
|
<tr>
|
316
|
-
<td
|
317
|
-
<td>
|
318
|
-
<
|
319
|
-
</tr>
|
320
|
-
<tr>
|
321
|
-
<td><p><span class="term"><em class="parameter"><code>base_gravity</code></em> :</span></p></td>
|
322
|
-
<td>base gravity of the paragraph</td>
|
271
|
+
<td class="parameter_name"><p>script</p></td>
|
272
|
+
<td class="parameter_description"><p><a class="link" href="pango-Scripts-and-Languages.html#PangoScript" title="enum PangoScript"><span class="type">PangoScript</span></a> to query</p></td>
|
273
|
+
<td class="parameter_annotations"> </td>
|
323
274
|
</tr>
|
324
275
|
<tr>
|
325
|
-
<td
|
326
|
-
<td>
|
276
|
+
<td class="parameter_name"><p>base_gravity</p></td>
|
277
|
+
<td class="parameter_description"><p>base gravity of the paragraph</p></td>
|
278
|
+
<td class="parameter_annotations"> </td>
|
327
279
|
</tr>
|
328
280
|
<tr>
|
329
|
-
<td
|
330
|
-
<td>
|
331
|
-
|
281
|
+
<td class="parameter_name"><p>hint</p></td>
|
282
|
+
<td class="parameter_description"><p>orientation hint</p></td>
|
283
|
+
<td class="parameter_annotations"> </td>
|
332
284
|
</tr>
|
333
285
|
</tbody>
|
334
286
|
</table></div>
|
287
|
+
</div>
|
288
|
+
<div class="refsect3">
|
289
|
+
<a name="id-1.2.11.7.5.7"></a><h4>Returns</h4>
|
290
|
+
<p> resolved gravity suitable to use for a run of text
|
291
|
+
with <em class="parameter"><code>script</code></em>
|
292
|
+
.</p>
|
293
|
+
<p></p>
|
294
|
+
</div>
|
335
295
|
<p class="since">Since 1.16</p>
|
336
296
|
</div>
|
337
297
|
<hr>
|
338
298
|
<div class="refsect2">
|
339
|
-
<a name="pango-gravity-get-for-script-and-width"></a><h3>pango_gravity_get_for_script_and_width
|
340
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
<
|
346
|
-
Based on the script, East Asian width, base gravity, and hint,
|
299
|
+
<a name="pango-gravity-get-for-script-and-width"></a><h3>pango_gravity_get_for_script_and_width ()</h3>
|
300
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="returnvalue">PangoGravity</span></a>
|
301
|
+
pango_gravity_get_for_script_and_width
|
302
|
+
(<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoScript" title="enum PangoScript"><span class="type">PangoScript</span></a> script</code></em>,
|
303
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> wide</code></em>,
|
304
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> base_gravity</code></em>,
|
305
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
|
306
|
+
<p>Based on the script, East Asian width, base gravity, and hint,
|
347
307
|
returns actual gravity to use in laying out a single character
|
348
308
|
or <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>.</p>
|
349
|
-
<p>
|
350
|
-
This function is similar to <a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script" title="pango_gravity_get_for_script ()"><code class="function">pango_gravity_get_for_script()</code></a> except
|
309
|
+
<p>This function is similar to <a class="link" href="pango-Vertical-Text.html#pango-gravity-get-for-script" title="pango_gravity_get_for_script ()"><code class="function">pango_gravity_get_for_script()</code></a> except
|
351
310
|
that this function makes a distinction between narrow/half-width and
|
352
311
|
wide/full-width characters also. Wide/full-width characters always
|
353
312
|
stand <span class="emphasis"><em>upright</em></span>, that is, they always take the base gravity,
|
354
313
|
whereas narrow/full-width characters are always rotated in vertical
|
355
314
|
context.</p>
|
356
|
-
<p>
|
357
|
-
|
358
|
-
preferred gravity of <em class="parameter"><code>script</code></em
|
359
|
-
|
315
|
+
<p>If <em class="parameter"><code>base_gravity</code></em>
|
316
|
+
is <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, it is first replaced with the
|
317
|
+
preferred gravity of <em class="parameter"><code>script</code></em>
|
318
|
+
.</p>
|
319
|
+
<div class="refsect3">
|
320
|
+
<a name="id-1.2.11.7.6.7"></a><h4>Parameters</h4>
|
321
|
+
<div class="informaltable"><table width="100%" border="0">
|
322
|
+
<colgroup>
|
323
|
+
<col width="150px" class="parameters_name">
|
324
|
+
<col class="parameters_description">
|
325
|
+
<col width="200px" class="parameters_annotations">
|
326
|
+
</colgroup>
|
327
|
+
<tbody>
|
328
|
+
<tr>
|
329
|
+
<td class="parameter_name"><p>script</p></td>
|
330
|
+
<td class="parameter_description"><p><a class="link" href="pango-Scripts-and-Languages.html#PangoScript" title="enum PangoScript"><span class="type">PangoScript</span></a> to query</p></td>
|
331
|
+
<td class="parameter_annotations"> </td>
|
332
|
+
</tr>
|
333
|
+
<tr>
|
334
|
+
<td class="parameter_name"><p>wide</p></td>
|
335
|
+
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for wide characters as returned by <a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#g-unichar-iswide"><code class="function">g_unichar_iswide()</code></a></p></td>
|
336
|
+
<td class="parameter_annotations"> </td>
|
337
|
+
</tr>
|
338
|
+
<tr>
|
339
|
+
<td class="parameter_name"><p>base_gravity</p></td>
|
340
|
+
<td class="parameter_description"><p>base gravity of the paragraph</p></td>
|
341
|
+
<td class="parameter_annotations"> </td>
|
342
|
+
</tr>
|
343
|
+
<tr>
|
344
|
+
<td class="parameter_name"><p>hint</p></td>
|
345
|
+
<td class="parameter_description"><p>orientation hint</p></td>
|
346
|
+
<td class="parameter_annotations"> </td>
|
347
|
+
</tr>
|
348
|
+
</tbody>
|
349
|
+
</table></div>
|
350
|
+
</div>
|
351
|
+
<div class="refsect3">
|
352
|
+
<a name="id-1.2.11.7.6.8"></a><h4>Returns</h4>
|
353
|
+
<p> resolved gravity suitable to use for a run of text
|
354
|
+
with <em class="parameter"><code>script</code></em>
|
355
|
+
and <em class="parameter"><code>wide</code></em>
|
356
|
+
.</p>
|
357
|
+
<p></p>
|
358
|
+
</div>
|
359
|
+
<p class="since">Since 1.26</p>
|
360
|
+
</div>
|
361
|
+
<hr>
|
362
|
+
<div class="refsect2">
|
363
|
+
<a name="pango-gravity-to-rotation"></a><h3>pango_gravity_to_rotation ()</h3>
|
364
|
+
<pre class="programlisting"><span class="returnvalue">double</span>
|
365
|
+
pango_gravity_to_rotation (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
|
366
|
+
<p>Converts a <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> value to its natural rotation in radians.
|
367
|
+
<em class="parameter"><code>gravity</code></em>
|
368
|
+
should not be <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>.</p>
|
369
|
+
<p>Note that <a class="link" href="pango-Glyph-Storage.html#pango-matrix-rotate" title="pango_matrix_rotate ()"><code class="function">pango_matrix_rotate()</code></a> takes angle in degrees, not radians.
|
370
|
+
So, to call <a class="link" href="pango-Glyph-Storage.html#pango-matrix-rotate" title="pango_matrix_rotate ()"><code class="function">pango_matrix_rotate()</code></a> with the output of this function
|
371
|
+
you should multiply it by (180. / G_PI).</p>
|
372
|
+
<div class="refsect3">
|
373
|
+
<a name="id-1.2.11.7.7.6"></a><h4>Parameters</h4>
|
374
|
+
<div class="informaltable"><table width="100%" border="0">
|
360
375
|
<colgroup>
|
361
|
-
<col
|
362
|
-
<col>
|
376
|
+
<col width="150px" class="parameters_name">
|
377
|
+
<col class="parameters_description">
|
378
|
+
<col width="200px" class="parameters_annotations">
|
379
|
+
</colgroup>
|
380
|
+
<tbody><tr>
|
381
|
+
<td class="parameter_name"><p>gravity</p></td>
|
382
|
+
<td class="parameter_description"><p>gravity to query</p></td>
|
383
|
+
<td class="parameter_annotations"> </td>
|
384
|
+
</tr></tbody>
|
385
|
+
</table></div>
|
386
|
+
</div>
|
387
|
+
<div class="refsect3">
|
388
|
+
<a name="id-1.2.11.7.7.7"></a><h4>Returns</h4>
|
389
|
+
<p> the rotation value corresponding to <em class="parameter"><code>gravity</code></em>
|
390
|
+
.</p>
|
391
|
+
<p></p>
|
392
|
+
</div>
|
393
|
+
<p class="since">Since 1.16</p>
|
394
|
+
</div>
|
395
|
+
</div>
|
396
|
+
<div class="refsect1">
|
397
|
+
<a name="pango-Vertical-Text.other_details"></a><h2>Types and Values</h2>
|
398
|
+
<div class="refsect2">
|
399
|
+
<a name="PangoGravity"></a><h3>enum PangoGravity</h3>
|
400
|
+
<p>The <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> type represents the orientation of glyphs in a segment
|
401
|
+
of text. This is useful when rendering vertical text layouts. In
|
402
|
+
those situations, the layout is rotated using a non-identity PangoMatrix,
|
403
|
+
and then glyph orientation is controlled using <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a>.
|
404
|
+
Not every value in this enumeration makes sense for every usage of
|
405
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a>; for example, <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a> only can be passed to
|
406
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a> and can only be returned by
|
407
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()"><code class="function">pango_context_get_base_gravity()</code></a>.</p>
|
408
|
+
<p>See also: <a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a></p>
|
409
|
+
<div class="refsect3">
|
410
|
+
<a name="id-1.2.11.8.2.5"></a><h4>Members</h4>
|
411
|
+
<div class="informaltable"><table width="100%" border="0">
|
412
|
+
<colgroup>
|
413
|
+
<col width="300px" class="enum_members_name">
|
414
|
+
<col class="enum_members_description">
|
415
|
+
<col width="200px" class="enum_members_annotations">
|
363
416
|
</colgroup>
|
364
417
|
<tbody>
|
365
418
|
<tr>
|
366
|
-
<td
|
367
|
-
<td>
|
368
|
-
<
|
419
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-SOUTH:CAPS"></a>PANGO_GRAVITY_SOUTH</p></td>
|
420
|
+
<td class="enum_member_description">
|
421
|
+
<p>Glyphs stand upright (default)</p>
|
422
|
+
</td>
|
423
|
+
<td class="enum_member_annotations"> </td>
|
369
424
|
</tr>
|
370
425
|
<tr>
|
371
|
-
<td
|
372
|
-
<td>
|
373
|
-
<
|
426
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-EAST:CAPS"></a>PANGO_GRAVITY_EAST</p></td>
|
427
|
+
<td class="enum_member_description">
|
428
|
+
<p>Glyphs are rotated 90 degrees clockwise</p>
|
374
429
|
</td>
|
430
|
+
<td class="enum_member_annotations"> </td>
|
375
431
|
</tr>
|
376
432
|
<tr>
|
377
|
-
<td
|
378
|
-
<td
|
433
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-NORTH:CAPS"></a>PANGO_GRAVITY_NORTH</p></td>
|
434
|
+
<td class="enum_member_description">
|
435
|
+
<p>Glyphs are upside-down</p>
|
436
|
+
</td>
|
437
|
+
<td class="enum_member_annotations"> </td>
|
379
438
|
</tr>
|
380
439
|
<tr>
|
381
|
-
<td
|
382
|
-
<td
|
440
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-WEST:CAPS"></a>PANGO_GRAVITY_WEST</p></td>
|
441
|
+
<td class="enum_member_description">
|
442
|
+
<p>Glyphs are rotated 90 degrees counter-clockwise</p>
|
443
|
+
</td>
|
444
|
+
<td class="enum_member_annotations"> </td>
|
383
445
|
</tr>
|
384
446
|
<tr>
|
385
|
-
<td
|
386
|
-
<td>
|
387
|
-
|
447
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-AUTO:CAPS"></a>PANGO_GRAVITY_AUTO</p></td>
|
448
|
+
<td class="enum_member_description">
|
449
|
+
<p>Gravity is resolved from the context matrix</p>
|
450
|
+
</td>
|
451
|
+
<td class="enum_member_annotations"> </td>
|
388
452
|
</tr>
|
389
453
|
</tbody>
|
390
454
|
</table></div>
|
391
|
-
|
455
|
+
</div>
|
456
|
+
<p class="since">Since 1.16</p>
|
392
457
|
</div>
|
393
458
|
<hr>
|
394
459
|
<div class="refsect2">
|
395
|
-
<a name="
|
396
|
-
<
|
397
|
-
|
398
|
-
|
399
|
-
<
|
400
|
-
<
|
401
|
-
|
402
|
-
|
403
|
-
you should multiply it by (180. / G_PI).</p>
|
404
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
460
|
+
<a name="PangoGravityHint"></a><h3>enum PangoGravityHint</h3>
|
461
|
+
<p>The <a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a> defines how horizontal scripts should behave in a
|
462
|
+
vertical context. That is, English excerpt in a vertical paragraph for
|
463
|
+
example.</p>
|
464
|
+
<p>See <a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a>.</p>
|
465
|
+
<div class="refsect3">
|
466
|
+
<a name="id-1.2.11.8.3.5"></a><h4>Members</h4>
|
467
|
+
<div class="informaltable"><table width="100%" border="0">
|
405
468
|
<colgroup>
|
406
|
-
<col
|
407
|
-
<col>
|
469
|
+
<col width="300px" class="enum_members_name">
|
470
|
+
<col class="enum_members_description">
|
471
|
+
<col width="200px" class="enum_members_annotations">
|
408
472
|
</colgroup>
|
409
473
|
<tbody>
|
410
474
|
<tr>
|
411
|
-
<td
|
412
|
-
<td
|
475
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-HINT-NATURAL:CAPS"></a>PANGO_GRAVITY_HINT_NATURAL</p></td>
|
476
|
+
<td class="enum_member_description">
|
477
|
+
<p>scripts will take their natural gravity based
|
478
|
+
on the base gravity and the script. This is the default.</p>
|
479
|
+
</td>
|
480
|
+
<td class="enum_member_annotations"> </td>
|
481
|
+
</tr>
|
482
|
+
<tr>
|
483
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-HINT-STRONG:CAPS"></a>PANGO_GRAVITY_HINT_STRONG</p></td>
|
484
|
+
<td class="enum_member_description">
|
485
|
+
<p>always use the base gravity set, regardless of
|
486
|
+
the script.</p>
|
487
|
+
</td>
|
488
|
+
<td class="enum_member_annotations"> </td>
|
413
489
|
</tr>
|
414
490
|
<tr>
|
415
|
-
<td
|
416
|
-
<td
|
491
|
+
<td class="enum_member_name"><p><a name="PANGO-GRAVITY-HINT-LINE:CAPS"></a>PANGO_GRAVITY_HINT_LINE</p></td>
|
492
|
+
<td class="enum_member_description">
|
493
|
+
<p>for scripts not in their natural direction (eg.
|
494
|
+
Latin in East gravity), choose per-script gravity such that every script
|
495
|
+
respects the line progression. This means, Latin and Arabic will take
|
496
|
+
opposite gravities and both flow top-to-bottom for example.</p>
|
497
|
+
</td>
|
498
|
+
<td class="enum_member_annotations"> </td>
|
417
499
|
</tr>
|
418
500
|
</tbody>
|
419
501
|
</table></div>
|
502
|
+
</div>
|
420
503
|
<p class="since">Since 1.16</p>
|
421
504
|
</div>
|
422
505
|
</div>
|
423
506
|
<div class="refsect1">
|
424
507
|
<a name="pango-Vertical-Text.see-also"></a><h2>See Also</h2>
|
425
|
-
pango_context_get_base_gravity(),
|
426
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity
|
427
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-get-gravity" title="pango_context_get_gravity
|
428
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-get-gravity-hint" title="pango_context_get_gravity_hint
|
429
|
-
<a class="link" href="pango-Text-Processing.html#pango-context-set-gravity-hint" title="pango_context_set_gravity_hint
|
430
|
-
<a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity
|
431
|
-
<a class="link" href="pango-Fonts.html#pango-font-description-get-gravity" title="pango_font_description_get_gravity
|
432
|
-
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new
|
433
|
-
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new
|
508
|
+
<p>pango_context_get_base_gravity(),
|
509
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>,
|
510
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-get-gravity" title="pango_context_get_gravity ()"><code class="function">pango_context_get_gravity()</code></a>,
|
511
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-get-gravity-hint" title="pango_context_get_gravity_hint ()"><code class="function">pango_context_get_gravity_hint()</code></a>,
|
512
|
+
<a class="link" href="pango-Text-Processing.html#pango-context-set-gravity-hint" title="pango_context_set_gravity_hint ()"><code class="function">pango_context_set_gravity_hint()</code></a>,
|
513
|
+
<a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity ()"><code class="function">pango_font_description_set_gravity()</code></a>,
|
514
|
+
<a class="link" href="pango-Fonts.html#pango-font-description-get-gravity" title="pango_font_description_get_gravity ()"><code class="function">pango_font_description_get_gravity()</code></a>,
|
515
|
+
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new ()"><code class="function">pango_attr_gravity_new()</code></a>,
|
516
|
+
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new ()"><code class="function">pango_attr_gravity_hint_new()</code></a></p>
|
434
517
|
</div>
|
435
518
|
</div>
|
436
519
|
<div class="footer">
|
437
520
|
<hr>
|
438
|
-
Generated by GTK-Doc V1.
|
521
|
+
Generated by GTK-Doc V1.21.1</div>
|
439
522
|
</body>
|
440
523
|
</html>
|