cairo 1.8.5-x86-mingw32 → 1.10.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- data/NEWS +2 -2
- data/Rakefile +44 -7
- data/ext/cairo/cairo.def +28 -1
- data/ext/cairo/extconf.rb +14 -16
- data/ext/cairo/rb_cairo.c +4 -1
- data/ext/cairo/rb_cairo.h +65 -1
- data/ext/cairo/rb_cairo_constants.c +150 -3
- data/ext/cairo/rb_cairo_context.c +17 -0
- data/ext/cairo/rb_cairo_device.c +406 -0
- data/ext/cairo/rb_cairo_exception.c +83 -32
- data/ext/cairo/rb_cairo_io.c +166 -0
- data/ext/cairo/rb_cairo_io.h +44 -0
- data/ext/cairo/rb_cairo_matrix.c +1 -1
- data/ext/cairo/rb_cairo_private.h +3 -0
- data/ext/cairo/rb_cairo_region.c +385 -0
- data/ext/cairo/rb_cairo_surface.c +674 -199
- data/lib/1.8/cairo.so +0 -0
- data/lib/1.9/cairo.so +0 -0
- data/samples/blur.rb +2 -3
- data/samples/{pac2.rb → pac-nomralize.rb} +5 -6
- data/samples/pac-tee.rb +170 -0
- data/samples/pac.rb +2 -3
- data/samples/png.rb +2 -3
- data/samples/scalable.rb +2 -3
- data/samples/text-on-path.rb +2 -3
- data/samples/text2.rb +2 -3
- data/test/cairo-test-utils.rb +15 -0
- data/test/run-test.rb +5 -4
- data/test/test_context.rb +4 -4
- data/test/test_font_face.rb +34 -21
- data/test/test_recording_surface.rb +18 -0
- data/test/test_region.rb +102 -0
- data/test/test_script_device.rb +46 -0
- data/test/test_script_surface.rb +13 -0
- data/test/test_surface.rb +14 -4
- data/test/test_tee_surface.rb +32 -0
- data/test/test_xml_device.rb +22 -0
- data/test/test_xml_surface.rb +32 -0
- data/tmp/i386-mingw32/cairo/1.9.2/rbconfig.rb +1 -1
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/include/cairo/cairo-deprecated.h +1 -16
- data/vendor/local/include/cairo/cairo-features.h +7 -0
- data/vendor/local/include/cairo/cairo-ft.h +16 -9
- data/vendor/local/include/cairo/cairo-gobject.h +186 -0
- data/vendor/local/include/cairo/cairo-pdf.h +27 -1
- data/vendor/local/include/cairo/cairo-ps.h +1 -1
- data/vendor/local/include/cairo/cairo-script-interpreter.h +117 -0
- data/vendor/local/include/cairo/cairo-svg.h +1 -1
- data/vendor/local/include/cairo/cairo-version.h +2 -2
- data/vendor/local/include/cairo/cairo-win32.h +1 -1
- data/vendor/local/include/cairo/cairo.h +382 -26
- data/vendor/local/lib/cairo.def +44 -0
- data/vendor/local/lib/cairo.lib +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +4 -4
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-png.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo.pc +4 -4
- data/vendor/local/manifest/{cairo-dev_1.8.10-4_win32.mft → cairo-dev_1.10.0-1_win32.mft} +34 -27
- data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +5 -0
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING +9 -8
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-LGPL-2.1 +2 -2
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +4 -14
- data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +5 -15
- data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +7 -17
- data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +23 -28
- data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +3 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +3 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +7 -17
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +373 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +330 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +478 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +344 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +320 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1291 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +622 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +134 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +210 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +834 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +318 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +410 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +169 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +715 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +410 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +335 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +291 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +470 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +595 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +384 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +644 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +574 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +1457 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +1076 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1396 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2743 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -20
- data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -23
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +11 -21
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +19 -26
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +279 -326
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +411 -355
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +579 -480
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +147 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +88 -65
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +72 -47
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +43 -32
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +42 -41
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +542 -345
- data/vendor/local/share/gtk-doc/html/cairo/index.html +36 -39
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +674 -444
- data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/style.css +152 -54
- data/vendor/local/src/tml/packaging/cairo_1.10.0-1_win32.log +1262 -0
- data/vendor/local/src/tml/packaging/{cairo_1.8.10-4_win32.sh → cairo_1.10.0-1_win32.sh} +3 -3
- metadata +137 -389
- data/doc/doc.css +0 -91
- data/doc/en/cairo-antialias.html +0 -38
- data/doc/en/cairo-clip-not-representable-error.html +0 -47
- data/doc/en/cairo-color-base.html +0 -69
- data/doc/en/cairo-color-cmyk.html +0 -157
- data/doc/en/cairo-color-hsv.html +0 -137
- data/doc/en/cairo-color-rgb.html +0 -142
- data/doc/en/cairo-color-x11.html +0 -173
- data/doc/en/cairo-color.html +0 -238
- data/doc/en/cairo-content.html +0 -37
- data/doc/en/cairo-context-blur.html +0 -39
- data/doc/en/cairo-context-circle.html +0 -39
- data/doc/en/cairo-context-color.html +0 -39
- data/doc/en/cairo-context-path.html +0 -44
- data/doc/en/cairo-context-rectangle.html +0 -39
- data/doc/en/cairo-context-triangle.html +0 -39
- data/doc/en/cairo-context.html +0 -643
- data/doc/en/cairo-error.html +0 -44
- data/doc/en/cairo-extend.html +0 -38
- data/doc/en/cairo-file-not-found.html +0 -47
- data/doc/en/cairo-fill-rule.html +0 -36
- data/doc/en/cairo-filter.html +0 -40
- data/doc/en/cairo-font-extents.html +0 -129
- data/doc/en/cairo-font-face.html +0 -38
- data/doc/en/cairo-font-options.html +0 -139
- data/doc/en/cairo-font-slant.html +0 -37
- data/doc/en/cairo-font-type-mismatch.html +0 -47
- data/doc/en/cairo-font-weight.html +0 -36
- data/doc/en/cairo-format.html +0 -46
- data/doc/en/cairo-glyph.html +0 -99
- data/doc/en/cairo-gradient-pattern.html +0 -74
- data/doc/en/cairo-hint-metrics.html +0 -37
- data/doc/en/cairo-hint-style.html +0 -39
- data/doc/en/cairo-image-surface.html +0 -82
- data/doc/en/cairo-invalid-clusters.html +0 -47
- data/doc/en/cairo-invalid-content-error.html +0 -47
- data/doc/en/cairo-invalid-dash-error.html +0 -47
- data/doc/en/cairo-invalid-dsc-comment-error.html +0 -47
- data/doc/en/cairo-invalid-format-error.html +0 -47
- data/doc/en/cairo-invalid-index-error.html +0 -47
- data/doc/en/cairo-invalid-matrix-error.html +0 -47
- data/doc/en/cairo-invalid-path-data-error.html +0 -47
- data/doc/en/cairo-invalid-pop-group-error.html +0 -47
- data/doc/en/cairo-invalid-restore-error.html +0 -47
- data/doc/en/cairo-invalid-slant.html +0 -47
- data/doc/en/cairo-invalid-status-error.html +0 -47
- data/doc/en/cairo-invalid-stride-error.html +0 -47
- data/doc/en/cairo-invalid-string-error.html +0 -47
- data/doc/en/cairo-invalid-visual-error.html +0 -47
- data/doc/en/cairo-invalid-weight.html +0 -47
- data/doc/en/cairo-line-cap.html +0 -37
- data/doc/en/cairo-line-join.html +0 -37
- data/doc/en/cairo-linear-pattern.html +0 -60
- data/doc/en/cairo-matrix.html +0 -259
- data/doc/en/cairo-negative-count.html +0 -47
- data/doc/en/cairo-no-current-point-error.html +0 -47
- data/doc/en/cairo-null-pointer-error.html +0 -47
- data/doc/en/cairo-operator.html +0 -48
- data/doc/en/cairo-paper-parse-error.html +0 -47
- data/doc/en/cairo-paper-unknown-paper-name.html +0 -66
- data/doc/en/cairo-paper-unknown-unit.html +0 -66
- data/doc/en/cairo-paper-unrecognized-paper-description.html +0 -66
- data/doc/en/cairo-paper.html +0 -184
- data/doc/en/cairo-path-close-path.html +0 -49
- data/doc/en/cairo-path-curve-to.html +0 -49
- data/doc/en/cairo-path-data-type.html +0 -38
- data/doc/en/cairo-path-data.html +0 -98
- data/doc/en/cairo-path-line-to.html +0 -49
- data/doc/en/cairo-path-move-to.html +0 -49
- data/doc/en/cairo-path.html +0 -155
- data/doc/en/cairo-pattern-type-mismatch-error.html +0 -47
- data/doc/en/cairo-pattern.html +0 -99
- data/doc/en/cairo-pdf-surface.html +0 -57
- data/doc/en/cairo-point.html +0 -74
- data/doc/en/cairo-ps-level.html +0 -49
- data/doc/en/cairo-ps-surface.html +0 -92
- data/doc/en/cairo-quartz-image-surface.html +0 -57
- data/doc/en/cairo-quartz-surface.html +0 -57
- data/doc/en/cairo-radial-pattern.html +0 -60
- data/doc/en/cairo-read-error.html +0 -47
- data/doc/en/cairo-rectangle.html +0 -89
- data/doc/en/cairo-scaled-font.html +0 -94
- data/doc/en/cairo-solid-pattern.html +0 -62
- data/doc/en/cairo-subpixel-order.html +0 -39
- data/doc/en/cairo-surface-finished-error.html +0 -47
- data/doc/en/cairo-surface-pattern.html +0 -57
- data/doc/en/cairo-surface-type-mismatch-error.html +0 -47
- data/doc/en/cairo-surface.html +0 -121
- data/doc/en/cairo-svg-surface.html +0 -77
- data/doc/en/cairo-svg-version.html +0 -49
- data/doc/en/cairo-temp-file-error.html +0 -47
- data/doc/en/cairo-text-cluster-flag.html +0 -35
- data/doc/en/cairo-text-cluster.html +0 -84
- data/doc/en/cairo-text-extents.html +0 -144
- data/doc/en/cairo-toy-font-face.html +0 -67
- data/doc/en/cairo-user-font-error.html +0 -47
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +0 -94
- data/doc/en/cairo-user-font-face.html +0 -72
- data/doc/en/cairo-user-font-immutable.html +0 -47
- data/doc/en/cairo-win32-printing-surface.html +0 -57
- data/doc/en/cairo-win32-surface.html +0 -62
- data/doc/en/cairo-write-error.html +0 -47
- data/doc/en/cairo.html +0 -131
- data/doc/en/index.html +0 -1154
- data/doc/index.html +0 -18
- data/doc/ja/cairo-antialias.html +0 -57
- data/doc/ja/cairo-clip-not-representable-error.html +0 -56
- data/doc/ja/cairo-color-base.html +0 -75
- data/doc/ja/cairo-color-cmyk.html +0 -152
- data/doc/ja/cairo-color-hsv.html +0 -135
- data/doc/ja/cairo-color-rgb.html +0 -145
- data/doc/ja/cairo-color-x11.html +0 -183
- data/doc/ja/cairo-color.html +0 -317
- data/doc/ja/cairo-content.html +0 -51
- data/doc/ja/cairo-context-blur.html +0 -53
- data/doc/ja/cairo-context-circle.html +0 -54
- data/doc/ja/cairo-context-color.html +0 -52
- data/doc/ja/cairo-context-path.html +0 -77
- data/doc/ja/cairo-context-rectangle.html +0 -60
- data/doc/ja/cairo-context-triangle.html +0 -47
- data/doc/ja/cairo-context.html +0 -1542
- data/doc/ja/cairo-error.html +0 -56
- data/doc/ja/cairo-extend.html +0 -56
- data/doc/ja/cairo-file-not-found.html +0 -51
- data/doc/ja/cairo-fill-rule.html +0 -58
- data/doc/ja/cairo-filter.html +0 -43
- data/doc/ja/cairo-font-extents.html +0 -164
- data/doc/ja/cairo-font-face.html +0 -55
- data/doc/ja/cairo-font-options.html +0 -189
- data/doc/ja/cairo-font-slant.html +0 -50
- data/doc/ja/cairo-font-type-mismatch.html +0 -52
- data/doc/ja/cairo-font-weight.html +0 -47
- data/doc/ja/cairo-format.html +0 -81
- data/doc/ja/cairo-glyph.html +0 -115
- data/doc/ja/cairo-gradient-pattern.html +0 -119
- data/doc/ja/cairo-hint-metrics.html +0 -57
- data/doc/ja/cairo-hint-style.html +0 -64
- data/doc/ja/cairo-image-surface.html +0 -131
- data/doc/ja/cairo-invalid-clusters.html +0 -55
- data/doc/ja/cairo-invalid-content-error.html +0 -54
- data/doc/ja/cairo-invalid-dash-error.html +0 -54
- data/doc/ja/cairo-invalid-dsc-comment-error.html +0 -54
- data/doc/ja/cairo-invalid-format-error.html +0 -54
- data/doc/ja/cairo-invalid-index-error.html +0 -54
- data/doc/ja/cairo-invalid-matrix-error.html +0 -54
- data/doc/ja/cairo-invalid-path-data-error.html +0 -54
- data/doc/ja/cairo-invalid-pop-group-error.html +0 -54
- data/doc/ja/cairo-invalid-restore-error.html +0 -55
- data/doc/ja/cairo-invalid-slant.html +0 -57
- data/doc/ja/cairo-invalid-status-error.html +0 -55
- data/doc/ja/cairo-invalid-stride-error.html +0 -55
- data/doc/ja/cairo-invalid-string-error.html +0 -54
- data/doc/ja/cairo-invalid-visual-error.html +0 -57
- data/doc/ja/cairo-invalid-weight.html +0 -57
- data/doc/ja/cairo-line-cap.html +0 -50
- data/doc/ja/cairo-line-join.html +0 -53
- data/doc/ja/cairo-linear-pattern.html +0 -87
- data/doc/ja/cairo-matrix.html +0 -354
- data/doc/ja/cairo-negative-count.html +0 -52
- data/doc/ja/cairo-no-current-point-error.html +0 -54
- data/doc/ja/cairo-null-pointer-error.html +0 -54
- data/doc/ja/cairo-operator.html +0 -51
- data/doc/ja/cairo-paper-parse-error.html +0 -55
- data/doc/ja/cairo-paper-unknown-paper-name.html +0 -76
- data/doc/ja/cairo-paper-unknown-unit.html +0 -75
- data/doc/ja/cairo-paper-unrecognized-paper-description.html +0 -76
- data/doc/ja/cairo-paper.html +0 -357
- data/doc/ja/cairo-path-close-path.html +0 -57
- data/doc/ja/cairo-path-curve-to.html +0 -70
- data/doc/ja/cairo-path-data-type.html +0 -53
- data/doc/ja/cairo-path-data.html +0 -127
- data/doc/ja/cairo-path-line-to.html +0 -62
- data/doc/ja/cairo-path-move-to.html +0 -62
- data/doc/ja/cairo-path.html +0 -144
- data/doc/ja/cairo-pattern-type-mismatch-error.html +0 -56
- data/doc/ja/cairo-pattern.html +0 -128
- data/doc/ja/cairo-pdf-surface.html +0 -86
- data/doc/ja/cairo-point.html +0 -90
- data/doc/ja/cairo-ps-level.html +0 -62
- data/doc/ja/cairo-ps-surface.html +0 -214
- data/doc/ja/cairo-quartz-image-surface.html +0 -75
- data/doc/ja/cairo-quartz-surface.html +0 -93
- data/doc/ja/cairo-radial-pattern.html +0 -93
- data/doc/ja/cairo-read-error.html +0 -55
- data/doc/ja/cairo-rectangle.html +0 -109
- data/doc/ja/cairo-scaled-font.html +0 -180
- data/doc/ja/cairo-solid-pattern.html +0 -87
- data/doc/ja/cairo-subpixel-order.html +0 -57
- data/doc/ja/cairo-surface-finished-error.html +0 -54
- data/doc/ja/cairo-surface-pattern.html +0 -68
- data/doc/ja/cairo-surface-type-mismatch-error.html +0 -56
- data/doc/ja/cairo-surface.html +0 -213
- data/doc/ja/cairo-svg-surface.html +0 -114
- data/doc/ja/cairo-svg-version.html +0 -66
- data/doc/ja/cairo-temp-file-error.html +0 -50
- data/doc/ja/cairo-text-cluster-flag.html +0 -46
- data/doc/ja/cairo-text-cluster.html +0 -102
- data/doc/ja/cairo-text-extents.html +0 -163
- data/doc/ja/cairo-toy-font-face.html +0 -107
- data/doc/ja/cairo-user-font-error.html +0 -55
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +0 -156
- data/doc/ja/cairo-user-font-face.html +0 -268
- data/doc/ja/cairo-user-font-immutable.html +0 -54
- data/doc/ja/cairo-win32-printing-surface.html +0 -80
- data/doc/ja/cairo-win32-surface.html +0 -100
- data/doc/ja/cairo-write-error.html +0 -55
- data/doc/ja/cairo.html +0 -177
- data/doc/ja/index.html +0 -1156
- data/pkg-config.rb +0 -313
- data/test-unit/Rakefile +0 -30
- data/test-unit/bin/testrb +0 -5
- data/test-unit/lib/test/unit.rb +0 -280
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -14
- data/test-unit/lib/test/unit/assertions.rb +0 -722
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -254
- data/test-unit/lib/test/unit/collector.rb +0 -43
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -135
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/color.rb +0 -61
- data/test-unit/lib/test/unit/diff.rb +0 -524
- data/test-unit/lib/test/unit/error.rb +0 -124
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -110
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -125
- data/test-unit/lib/test/unit/omission.rb +0 -143
- data/test-unit/lib/test/unit/pending.rb +0 -146
- data/test-unit/lib/test/unit/priority.rb +0 -146
- data/test-unit/lib/test/unit/runner/console.rb +0 -46
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/testcase.rb +0 -281
- data/test-unit/lib/test/unit/testresult.rb +0 -89
- data/test-unit/lib/test/unit/testsuite.rb +0 -110
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -195
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -49
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -20
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/tc_adder.rb +0 -18
- data/test-unit/sample/tc_subtracter.rb +0 -18
- data/test-unit/sample/ts_examples.rb +0 -7
- data/test-unit/test/collector/test_descendant.rb +0 -135
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_load.rb +0 -333
- data/test-unit/test/collector/test_objectspace.rb +0 -98
- data/test-unit/test/run-test.rb +0 -13
- data/test-unit/test/test_assertions.rb +0 -693
- data/test-unit/test/test_attribute.rb +0 -86
- data/test-unit/test/test_color.rb +0 -37
- data/test-unit/test/test_diff.rb +0 -477
- data/test-unit/test/test_emacs_runner.rb +0 -60
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_fixture.rb +0 -252
- data/test-unit/test/test_notification.rb +0 -33
- data/test-unit/test/test_omission.rb +0 -81
- data/test-unit/test/test_pending.rb +0 -70
- data/test-unit/test/test_priority.rb +0 -89
- data/test-unit/test/test_testcase.rb +0 -430
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -129
- data/test-unit/test/testunit_test_util.rb +0 -14
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/test/test_pkg_config.rb +0 -123
- data/vendor/local/include/libpng14/png.h +0 -2701
- data/vendor/local/include/libpng14/pngconf.h +0 -1525
- data/vendor/local/include/png.h +0 -2701
- data/vendor/local/include/pngconf.h +0 -1525
- data/vendor/local/include/zconf.h +0 -461
- data/vendor/local/include/zlib.h +0 -1589
- data/vendor/local/lib/libpng.def +0 -192
- data/vendor/local/lib/libpng.lib +0 -0
- data/vendor/local/lib/libpng14.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
- data/vendor/local/lib/pkgconfig/libpng14.pc +0 -11
- data/vendor/local/lib/zdll.lib +0 -0
- data/vendor/local/lib/zlib.def +0 -67
- data/vendor/local/manifest/cairo_1.8.10-4_win32.mft +0 -5
- data/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +0 -15
- data/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +0 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +0 -2643
- data/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +0 -360
- data/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +0 -408
- data/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +0 -678
- data/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +0 -319
- data/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +0 -473
- data/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +0 -596
- data/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +0 -1274
- data/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +0 -1485
- data/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +0 -238
- data/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +0 -341
- data/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +0 -622
- data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +0 -151
- data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +0 -219
- data/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +0 -1023
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +0 -1026
- data/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +0 -321
- data/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +0 -436
- data/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +0 -133
- data/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +0 -735
- data/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +0 -345
- data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +0 -358
- data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +0 -312
- data/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +0 -492
- data/vendor/local/share/man/man3/libpng.3 +0 -4455
- data/vendor/local/share/man/man3/libpngpf.3 +0 -808
- data/vendor/local/share/man/man5/png.5 +0 -74
- data/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +0 -920
- data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +0 -272
- data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +0 -71
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +0 -42
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +0 -189
@@ -7,19 +7,9 @@
|
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
|
9
9
|
<link rel="prev" href="index.html" title="Cairo: A Vector Graphics Library">
|
10
|
-
<link rel="next" href="cairo-
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
10
|
+
<link rel="next" href="cairo-cairo-t.html" title="cairo_t">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
-
<link rel="index" href="index-all.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
23
13
|
</head>
|
24
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -27,31 +17,34 @@
|
|
27
17
|
<td> </td>
|
28
18
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
19
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-
|
20
|
+
<td><a accesskey="n" href="cairo-cairo-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
21
|
</tr></table>
|
32
22
|
<div class="chapter" title="Drawing">
|
33
23
|
<div class="titlepage"><div><div><h2 class="title">
|
34
24
|
<a name="cairo-drawing"></a>Drawing</h2></div></div></div>
|
35
25
|
<div class="toc"><dl>
|
36
26
|
<dt>
|
37
|
-
<span class="refentrytitle"><a href="cairo-
|
27
|
+
<span class="refentrytitle"><a href="cairo-cairo-t.html">cairo_t</a></span><span class="refpurpose"> — The cairo drawing context</span>
|
38
28
|
</dt>
|
39
29
|
<dt>
|
40
|
-
<span class="refentrytitle"><a href="cairo-
|
30
|
+
<span class="refentrytitle"><a href="cairo-Paths.html">Paths</a></span><span class="refpurpose"> — Creating paths and manipulating path data</span>
|
41
31
|
</dt>
|
42
32
|
<dt>
|
43
|
-
<span class="refentrytitle"><a href="cairo-pattern.html">cairo_pattern_t</a></span><span class="refpurpose"> — Sources for drawing</span>
|
33
|
+
<span class="refentrytitle"><a href="cairo-cairo-pattern-t.html">cairo_pattern_t</a></span><span class="refpurpose"> — Sources for drawing</span>
|
44
34
|
</dt>
|
45
35
|
<dt>
|
46
|
-
<span class="refentrytitle"><a href="cairo-
|
36
|
+
<span class="refentrytitle"><a href="cairo-Regions.html">Regions</a></span><span class="refpurpose"> — Representing a pixel-aligned area</span>
|
47
37
|
</dt>
|
48
38
|
<dt>
|
49
|
-
<span class="refentrytitle"><a href="cairo-
|
39
|
+
<span class="refentrytitle"><a href="cairo-Transformations.html">Transformations</a></span><span class="refpurpose"> — Manipulating the current transformation matrix</span>
|
40
|
+
</dt>
|
41
|
+
<dt>
|
42
|
+
<span class="refentrytitle"><a href="cairo-text.html">text</a></span><span class="refpurpose"> — Rendering text and glyphs</span>
|
50
43
|
</dt>
|
51
44
|
</dl></div>
|
52
45
|
</div>
|
53
46
|
<div class="footer">
|
54
47
|
<hr>
|
55
|
-
Generated by GTK-Doc V1.
|
48
|
+
Generated by GTK-Doc V1.15</div>
|
56
49
|
</body>
|
57
|
-
</html>
|
50
|
+
</html>
|
@@ -6,20 +6,10 @@
|
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
|
9
|
-
<link rel="prev" href="cairo-text.html" title="
|
10
|
-
<link rel="next" href="cairo-font-face.html" title="cairo_font_face_t">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
9
|
+
<link rel="prev" href="cairo-text.html" title="text">
|
10
|
+
<link rel="next" href="cairo-cairo-font-face-t.html" title="cairo_font_face_t">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
-
<link rel="index" href="index-all.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
23
13
|
</head>
|
24
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -27,37 +17,37 @@
|
|
27
17
|
<td> </td>
|
28
18
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
19
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-font-face.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
20
|
+
<td><a accesskey="n" href="cairo-cairo-font-face-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
21
|
</tr></table>
|
32
22
|
<div class="chapter" title="Fonts">
|
33
23
|
<div class="titlepage"><div><div><h2 class="title">
|
34
24
|
<a name="cairo-fonts"></a>Fonts</h2></div></div></div>
|
35
25
|
<div class="toc"><dl>
|
36
26
|
<dt>
|
37
|
-
<span class="refentrytitle"><a href="cairo-font-face.html">cairo_font_face_t</a></span><span class="refpurpose"> — Base class for font faces</span>
|
27
|
+
<span class="refentrytitle"><a href="cairo-cairo-font-face-t.html">cairo_font_face_t</a></span><span class="refpurpose"> — Base class for font faces</span>
|
38
28
|
</dt>
|
39
29
|
<dt>
|
40
|
-
<span class="refentrytitle"><a href="cairo-scaled-font.html">cairo_scaled_font_t</a></span><span class="refpurpose"> — Font face at particular size and options</span>
|
30
|
+
<span class="refentrytitle"><a href="cairo-cairo-scaled-font-t.html">cairo_scaled_font_t</a></span><span class="refpurpose"> — Font face at particular size and options</span>
|
41
31
|
</dt>
|
42
32
|
<dt>
|
43
|
-
<span class="refentrytitle"><a href="cairo-font-options.html">cairo_font_options_t</a></span><span class="refpurpose"> — How a font should be rendered</span>
|
33
|
+
<span class="refentrytitle"><a href="cairo-cairo-font-options-t.html">cairo_font_options_t</a></span><span class="refpurpose"> — How a font should be rendered</span>
|
44
34
|
</dt>
|
45
35
|
<dt>
|
46
|
-
<span class="refentrytitle"><a href="cairo-
|
36
|
+
<span class="refentrytitle"><a href="cairo-FreeType-Fonts.html">FreeType Fonts</a></span><span class="refpurpose"> — Font support for FreeType</span>
|
47
37
|
</dt>
|
48
38
|
<dt>
|
49
|
-
<span class="refentrytitle"><a href="cairo-
|
39
|
+
<span class="refentrytitle"><a href="cairo-Win32-Fonts.html">Win32 Fonts</a></span><span class="refpurpose"> — Font support for Microsoft Windows</span>
|
50
40
|
</dt>
|
51
41
|
<dt>
|
52
|
-
<span class="refentrytitle"><a href="cairo-
|
42
|
+
<span class="refentrytitle"><a href="cairo-Quartz-(CGFont)-Fonts.html">Quartz (CGFont) Fonts</a></span><span class="refpurpose"> — Font support via CGFont on OS X</span>
|
53
43
|
</dt>
|
54
44
|
<dt>
|
55
|
-
<span class="refentrytitle"><a href="cairo-
|
45
|
+
<span class="refentrytitle"><a href="cairo-User-Fonts.html">User Fonts</a></span><span class="refpurpose"> — Font support with font data provided by the user</span>
|
56
46
|
</dt>
|
57
47
|
</dl></div>
|
58
48
|
</div>
|
59
49
|
<div class="footer">
|
60
50
|
<hr>
|
61
|
-
Generated by GTK-Doc V1.
|
51
|
+
Generated by GTK-Doc V1.15</div>
|
62
52
|
</body>
|
63
|
-
</html>
|
53
|
+
</html>
|
@@ -6,49 +6,39 @@
|
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
|
9
|
-
<link rel="prev" href="cairo-
|
10
|
-
<link rel="next" href="cairo-matrix.html" title="cairo_matrix_t">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
9
|
+
<link rel="prev" href="cairo-XLib-Surfaces.html" title="XLib Surfaces">
|
10
|
+
<link rel="next" href="cairo-cairo-matrix-t.html" title="cairo_matrix_t">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
-
<link rel="index" href="index-all.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
23
13
|
</head>
|
24
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="cairo-
|
16
|
+
<td><a accesskey="p" href="cairo-XLib-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
17
|
<td> </td>
|
28
18
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
19
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-matrix.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
20
|
+
<td><a accesskey="n" href="cairo-cairo-matrix-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
21
|
</tr></table>
|
32
22
|
<div class="chapter" title="Utilities">
|
33
23
|
<div class="titlepage"><div><div><h2 class="title">
|
34
24
|
<a name="cairo-support"></a>Utilities</h2></div></div></div>
|
35
25
|
<div class="toc"><dl>
|
36
26
|
<dt>
|
37
|
-
<span class="refentrytitle"><a href="cairo-matrix.html">cairo_matrix_t</a></span><span class="refpurpose"> — Generic matrix operations</span>
|
27
|
+
<span class="refentrytitle"><a href="cairo-cairo-matrix-t.html">cairo_matrix_t</a></span><span class="refpurpose"> — Generic matrix operations</span>
|
38
28
|
</dt>
|
39
29
|
<dt>
|
40
|
-
<span class="refentrytitle"><a href="cairo-
|
30
|
+
<span class="refentrytitle"><a href="cairo-Error-handling.html">Error handling</a></span><span class="refpurpose"> — Decoding cairo's status</span>
|
41
31
|
</dt>
|
42
32
|
<dt>
|
43
|
-
<span class="refentrytitle"><a href="cairo-
|
33
|
+
<span class="refentrytitle"><a href="cairo-Version-Information.html">Version Information</a></span><span class="refpurpose"> — Compile-time and run-time version checks.</span>
|
44
34
|
</dt>
|
45
35
|
<dt>
|
46
|
-
<span class="refentrytitle"><a href="cairo-
|
36
|
+
<span class="refentrytitle"><a href="cairo-Types.html">Types</a></span><span class="refpurpose"> — Generic data types</span>
|
47
37
|
</dt>
|
48
38
|
</dl></div>
|
49
39
|
</div>
|
50
40
|
<div class="footer">
|
51
41
|
<hr>
|
52
|
-
Generated by GTK-Doc V1.
|
42
|
+
Generated by GTK-Doc V1.15</div>
|
53
43
|
</body>
|
54
|
-
</html>
|
44
|
+
</html>
|
@@ -6,64 +6,57 @@
|
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
|
9
|
-
<link rel="prev" href="cairo-
|
10
|
-
<link rel="next" href="cairo-
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
9
|
+
<link rel="prev" href="cairo-User-Fonts.html" title="User Fonts">
|
10
|
+
<link rel="next" href="cairo-cairo-device-t.html" title="cairo_device_t">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
-
<link rel="index" href="index-all.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
23
13
|
</head>
|
24
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="cairo-
|
16
|
+
<td><a accesskey="p" href="cairo-User-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
17
|
<td> </td>
|
28
18
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
19
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-
|
20
|
+
<td><a accesskey="n" href="cairo-cairo-device-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
21
|
</tr></table>
|
32
22
|
<div class="chapter" title="Surfaces">
|
33
23
|
<div class="titlepage"><div><div><h2 class="title">
|
34
24
|
<a name="cairo-surfaces"></a>Surfaces</h2></div></div></div>
|
35
25
|
<div class="toc"><dl>
|
36
26
|
<dt>
|
37
|
-
<span class="refentrytitle"><a href="cairo-
|
27
|
+
<span class="refentrytitle"><a href="cairo-cairo-device-t.html">cairo_device_t</a></span><span class="refpurpose"> — interface to underlying rendering system</span>
|
38
28
|
</dt>
|
39
29
|
<dt>
|
40
|
-
<span class="refentrytitle"><a href="cairo-
|
30
|
+
<span class="refentrytitle"><a href="cairo-cairo-surface-t.html">cairo_surface_t</a></span><span class="refpurpose"> — Base class for surfaces</span>
|
41
31
|
</dt>
|
42
32
|
<dt>
|
43
|
-
<span class="refentrytitle"><a href="cairo-
|
33
|
+
<span class="refentrytitle"><a href="cairo-Image-Surfaces.html">Image Surfaces</a></span><span class="refpurpose"> — Rendering to memory buffers</span>
|
44
34
|
</dt>
|
45
35
|
<dt>
|
46
|
-
<span class="refentrytitle"><a href="cairo-
|
36
|
+
<span class="refentrytitle"><a href="cairo-PDF-Surfaces.html">PDF Surfaces</a></span><span class="refpurpose"> — Rendering PDF documents</span>
|
47
37
|
</dt>
|
48
38
|
<dt>
|
49
|
-
<span class="refentrytitle"><a href="cairo-
|
39
|
+
<span class="refentrytitle"><a href="cairo-PNG-Support.html">PNG Support</a></span><span class="refpurpose"> — Reading and writing PNG images</span>
|
50
40
|
</dt>
|
51
41
|
<dt>
|
52
|
-
<span class="refentrytitle"><a href="cairo-
|
42
|
+
<span class="refentrytitle"><a href="cairo-PostScript-Surfaces.html">PostScript Surfaces</a></span><span class="refpurpose"> — Rendering PostScript documents</span>
|
53
43
|
</dt>
|
54
44
|
<dt>
|
55
|
-
<span class="refentrytitle"><a href="cairo-
|
45
|
+
<span class="refentrytitle"><a href="cairo-Win32-Surfaces.html">Win32 Surfaces</a></span><span class="refpurpose"> — Microsoft Windows surface support</span>
|
56
46
|
</dt>
|
57
47
|
<dt>
|
58
|
-
<span class="refentrytitle"><a href="cairo-
|
48
|
+
<span class="refentrytitle"><a href="cairo-SVG-Surfaces.html">SVG Surfaces</a></span><span class="refpurpose"> — Rendering SVG documents</span>
|
59
49
|
</dt>
|
60
50
|
<dt>
|
61
|
-
<span class="refentrytitle"><a href="cairo-
|
51
|
+
<span class="refentrytitle"><a href="cairo-Quartz-Surfaces.html">Quartz Surfaces</a></span><span class="refpurpose"> — Rendering to Quartz surfaces</span>
|
52
|
+
</dt>
|
53
|
+
<dt>
|
54
|
+
<span class="refentrytitle"><a href="cairo-XLib-Surfaces.html">XLib Surfaces</a></span><span class="refpurpose"> — X Window System rendering using XLib</span>
|
62
55
|
</dt>
|
63
56
|
</dl></div>
|
64
57
|
</div>
|
65
58
|
<div class="footer">
|
66
59
|
<hr>
|
67
|
-
Generated by GTK-Doc V1.
|
60
|
+
Generated by GTK-Doc V1.15</div>
|
68
61
|
</body>
|
69
|
-
</html>
|
62
|
+
</html>
|
@@ -2,29 +2,19 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>
|
5
|
+
<title>text</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="cairo-drawing.html" title="Drawing">
|
9
|
-
<link rel="prev" href="cairo-
|
9
|
+
<link rel="prev" href="cairo-Transformations.html" title="Transformations">
|
10
10
|
<link rel="next" href="cairo-fonts.html" title="Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
-
<link rel="index" href="index-all.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
23
13
|
</head>
|
24
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
26
16
|
<tr valign="middle">
|
27
|
-
<td><a accesskey="p" href="cairo-
|
17
|
+
<td><a accesskey="p" href="cairo-Transformations.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
28
18
|
<td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
29
19
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
30
20
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
@@ -32,109 +22,101 @@
|
|
32
22
|
</tr>
|
33
23
|
<tr><td colspan="5" class="shortcuts">
|
34
24
|
<a href="#cairo-text.synopsis" class="shortcut">Top</a>
|
35
|
-
|
36
|
-
|
25
|
+
|
|
26
|
+
<a href="#cairo-text.description" class="shortcut">Description</a>
|
37
27
|
</td></tr>
|
38
28
|
</table>
|
39
|
-
<div class="refentry" title="
|
29
|
+
<div class="refentry" title="text">
|
40
30
|
<a name="cairo-text"></a><div class="titlepage"></div>
|
41
31
|
<div class="refnamediv"><table width="100%"><tr>
|
42
32
|
<td valign="top">
|
43
|
-
<h2><span class="refentrytitle"><a name="cairo-text.top_of_page"></a>
|
44
|
-
<p>
|
33
|
+
<h2><span class="refentrytitle"><a name="cairo-text.top_of_page"></a>text</span></h2>
|
34
|
+
<p>text — Rendering text and glyphs</p>
|
45
35
|
</td>
|
46
36
|
<td valign="top" align="right"></td>
|
47
37
|
</tr></table></div>
|
48
38
|
<div class="refsynopsisdiv" title="Synopsis">
|
49
39
|
<a name="cairo-text.synopsis"></a><h2>Synopsis</h2>
|
50
|
-
<pre class="synopsis">
|
51
|
-
<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a>;
|
40
|
+
<pre class="synopsis"> <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a>;
|
52
41
|
enum <a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a>;
|
53
42
|
enum <a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a>;
|
54
43
|
<a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a>;
|
55
44
|
enum <a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t">cairo_text_cluster_flags_t</a>;
|
56
|
-
void <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()">cairo_select_font_face</a> (<a class="link" href="cairo-
|
57
|
-
const char *family
|
58
|
-
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> slant
|
59
|
-
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> weight);
|
60
|
-
void <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()">cairo_set_font_size</a> (<a class="link" href="cairo-
|
61
|
-
double size);
|
62
|
-
void <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()">cairo_set_font_matrix</a> (<a class="link" href="cairo-
|
63
|
-
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
64
|
-
void <a class="link" href="cairo-text.html#cairo-get-font-matrix" title="cairo_get_font_matrix ()">cairo_get_font_matrix</a> (<a class="link" href="cairo-
|
65
|
-
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
66
|
-
void <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()">cairo_set_font_options</a> (<a class="link" href="cairo-
|
67
|
-
const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);
|
68
|
-
void <a class="link" href="cairo-text.html#cairo-get-font-options" title="cairo_get_font_options ()">cairo_get_font_options</a> (<a class="link" href="cairo-
|
69
|
-
<a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);
|
70
|
-
void <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()">cairo_set_font_face</a> (<a class="link" href="cairo-
|
71
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);
|
72
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * <a class="link" href="cairo-text.html#cairo-get-font-face" title="cairo_get_font_face ()">cairo_get_font_face</a> (<a class="link" href="cairo-
|
73
|
-
void <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()">cairo_set_scaled_font</a> (<a class="link" href="cairo-
|
74
|
-
const <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
|
75
|
-
<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> * <a class="link" href="cairo-text.html#cairo-get-scaled-font" title="cairo_get_scaled_font ()">cairo_get_scaled_font</a> (<a class="link" href="cairo-
|
76
|
-
void <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()">cairo_show_text</a> (<a class="link" href="cairo-
|
77
|
-
const char *utf8);
|
78
|
-
void <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()">cairo_show_glyphs</a> (<a class="link" href="cairo-
|
79
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
80
|
-
int num_glyphs);
|
81
|
-
void <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()">cairo_show_text_glyphs</a> (<a class="link" href="cairo-
|
82
|
-
const char *utf8
|
83
|
-
int utf8_len
|
84
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
85
|
-
int num_glyphs
|
86
|
-
const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> *clusters
|
87
|
-
int num_clusters
|
88
|
-
<a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t">cairo_text_cluster_flags_t</a> cluster_flags);
|
89
|
-
void <a class="link" href="cairo-text.html#cairo-font-extents" title="cairo_font_extents ()">cairo_font_extents</a> (<a class="link" href="cairo-
|
90
|
-
<a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t">cairo_font_extents_t</a> *extents);
|
91
|
-
void <a class="link" href="cairo-text.html#cairo-text-extents" title="cairo_text_extents ()">cairo_text_extents</a> (<a class="link" href="cairo-
|
92
|
-
const char *utf8
|
93
|
-
<a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);
|
94
|
-
void <a class="link" href="cairo-text.html#cairo-glyph-extents" title="cairo_glyph_extents ()">cairo_glyph_extents</a> (<a class="link" href="cairo-
|
95
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
96
|
-
int num_glyphs
|
97
|
-
<a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);
|
98
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()">cairo_toy_font_face_create</a> (const char *family
|
99
|
-
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> slant
|
100
|
-
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> weight);
|
101
|
-
const char * <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()">cairo_toy_font_face_get_family</a> (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);
|
102
|
-
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-slant" title="cairo_toy_font_face_get_slant ()">cairo_toy_font_face_get_slant</a> (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);
|
103
|
-
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-weight" title="cairo_toy_font_face_get_weight ()">cairo_toy_font_face_get_weight</a> (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);
|
104
|
-
<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> * <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()">cairo_glyph_allocate</a> (int num_glyphs);
|
105
|
-
void <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()">cairo_glyph_free</a> (<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs);
|
106
|
-
<a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> * <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()">cairo_text_cluster_allocate</a> (int num_clusters);
|
107
|
-
void <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()">cairo_text_cluster_free</a> (<a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> *clusters);
|
45
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()">cairo_select_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
46
|
+
<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
|
47
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
|
48
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);
|
49
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()">cairo_set_font_size</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
50
|
+
<em class="parameter"><code><span class="type">double</span> size</code></em>);
|
51
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()">cairo_set_font_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
52
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
|
53
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-get-font-matrix" title="cairo_get_font_matrix ()">cairo_get_font_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
54
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
|
55
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()">cairo_set_font_options</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
56
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
|
57
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-get-font-options" title="cairo_get_font_options ()">cairo_get_font_options</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
58
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
|
59
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()">cairo_set_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
60
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
|
61
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-text.html#cairo-get-font-face" title="cairo_get_font_face ()">cairo_get_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
|
62
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()">cairo_set_scaled_font</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
63
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);
|
64
|
+
<a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> * <a class="link" href="cairo-text.html#cairo-get-scaled-font" title="cairo_get_scaled_font ()">cairo_get_scaled_font</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
|
65
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()">cairo_show_text</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
66
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>);
|
67
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()">cairo_show_glyphs</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
68
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
69
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);
|
70
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()">cairo_show_text_glyphs</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
71
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
|
72
|
+
<em class="parameter"><code><span class="type">int</span> utf8_len</code></em>,
|
73
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
74
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
|
75
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>,
|
76
|
+
<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>,
|
77
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t"><span class="type">cairo_text_cluster_flags_t</span></a> cluster_flags</code></em>);
|
78
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-font-extents" title="cairo_font_extents ()">cairo_font_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
79
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> *extents</code></em>);
|
80
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-text-extents" title="cairo_text_extents ()">cairo_text_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
81
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
|
82
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);
|
83
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-glyph-extents" title="cairo_glyph_extents ()">cairo_glyph_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
84
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
85
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
|
86
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);
|
87
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()">cairo_toy_font_face_create</a> (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
|
88
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
|
89
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);
|
90
|
+
const <span class="returnvalue">char</span> * <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()">cairo_toy_font_face_get_family</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
|
91
|
+
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-slant" title="cairo_toy_font_face_get_slant ()">cairo_toy_font_face_get_slant</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
|
92
|
+
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-weight" title="cairo_toy_font_face_get_weight ()">cairo_toy_font_face_get_weight</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
|
93
|
+
<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> * <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()">cairo_glyph_allocate</a> (<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);
|
94
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()">cairo_glyph_free</a> (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>);
|
95
|
+
<a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> * <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()">cairo_text_cluster_allocate</a> (<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>);
|
96
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()">cairo_text_cluster_free</a> (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>);
|
108
97
|
</pre>
|
109
98
|
</div>
|
110
99
|
<div class="refsect1" title="Description">
|
111
100
|
<a name="cairo-text.description"></a><h2>Description</h2>
|
112
101
|
<p>
|
113
|
-
|
102
|
+
The functions with <span class="emphasis"><em>text</em></span> in their name form cairo's
|
103
|
+
<em class="firstterm">toy</em> text API. The toy API takes UTF-8 encoded
|
104
|
+
text and is limited in its functionality to rendering simple
|
105
|
+
left-to-right text with no advanced features. That means for example
|
106
|
+
that most complex scripts like Hebrew, Arabic, and Indic scripts are
|
107
|
+
out of question. No kerning or correct positioning of diacritical marks
|
108
|
+
either. The font selection is pretty limited too and doesn't handle the
|
109
|
+
case that the selected font does not cover the characters in the text.
|
110
|
+
This set of functions are really that, a toy text API, for testing and
|
111
|
+
demonstration purposes. Any serious application should avoid them.
|
114
112
|
</p>
|
115
|
-
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
116
|
-
<li class="listitem">
|
117
|
-
The functions with <span class="emphasis"><em>text</em></span> in their name form cairo's
|
118
|
-
<em class="firstterm">toy</em> text API. The toy API takes UTF-8 encoded
|
119
|
-
text and is limited in its functionality to rendering simple
|
120
|
-
left-to-right text with no advanced features. That means for example
|
121
|
-
that most complex scripts like Hebrew, Arabic, and Indic scripts are
|
122
|
-
out of question. No kerning or correct positioning of diacritical marks
|
123
|
-
either. The font selection is pretty limited too and doesn't handle the
|
124
|
-
case that the selected font does not cover the characters in the text.
|
125
|
-
This set of functions are really that, a toy text API, for testing and
|
126
|
-
demonstration purposes. Any serious application should avoid them.
|
127
|
-
</li>
|
128
|
-
<li class="listitem">
|
129
|
-
The functions with <span class="emphasis"><em>glyphs</em></span> in their name form cairo's
|
130
|
-
<em class="firstterm">low-level</em> text API. The low-level API relies on
|
131
|
-
the user to convert text to a set of glyph indexes and positions. This
|
132
|
-
is a very hard problem and is best handled by external libraries, like
|
133
|
-
the pangocairo that is part of the Pango text layout and rendering library.
|
134
|
-
Pango is available from <a class="ulink" href="http://www.pango.org/" target="_top">http://www.pango.org/</a>.
|
135
|
-
</li>
|
136
|
-
</ul></div>
|
137
113
|
<p>
|
114
|
+
The functions with <span class="emphasis"><em>glyphs</em></span> in their name form cairo's
|
115
|
+
<em class="firstterm">low-level</em> text API. The low-level API relies on
|
116
|
+
the user to convert text to a set of glyph indexes and positions. This
|
117
|
+
is a very hard problem and is best handled by external libraries, like
|
118
|
+
the pangocairo that is part of the Pango text layout and rendering library.
|
119
|
+
Pango is available from <a class="ulink" href="http://www.pango.org/" target="_top">http://www.pango.org/</a>.
|
138
120
|
</p>
|
139
121
|
</div>
|
140
122
|
<div class="refsect1" title="Details">
|
@@ -162,27 +144,26 @@ underlying font system.
|
|
162
144
|
<p>
|
163
145
|
Note that the offsets given by <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> are not cumulative. When
|
164
146
|
drawing or measuring text, each glyph is individually positioned
|
165
|
-
with respect to the overall origin
|
166
|
-
<p>
|
147
|
+
with respect to the overall origin
|
167
148
|
</p>
|
168
149
|
<div class="variablelist"><table border="0">
|
169
150
|
<col align="left" valign="top">
|
170
151
|
<tbody>
|
171
152
|
<tr>
|
172
|
-
<td><p><span class="term">unsigned long <em class="structfield"><code>index</code></em>;</span></p></td>
|
173
|
-
<td>
|
153
|
+
<td><p><span class="term">unsigned <span class="type">long</span> <em class="structfield"><code><a name="cairo-glyph-t.index"></a>index</code></em>;</span></p></td>
|
154
|
+
<td>glyph index in the font. The exact interpretation of the
|
174
155
|
glyph index depends on the font technology being used.
|
175
156
|
</td>
|
176
157
|
</tr>
|
177
158
|
<tr>
|
178
|
-
<td><p><span class="term">double <em class="structfield"><code>x</code></em>;</span></p></td>
|
179
|
-
<td>
|
159
|
+
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.x"></a>x</code></em>;</span></p></td>
|
160
|
+
<td>the offset in the X direction between the origin used for
|
180
161
|
drawing or measuring the string and the origin of this glyph.
|
181
162
|
</td>
|
182
163
|
</tr>
|
183
164
|
<tr>
|
184
|
-
<td><p><span class="term">double <em class="structfield"><code>y</code></em>;</span></p></td>
|
185
|
-
<td>
|
165
|
+
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.y"></a>y</code></em>;</span></p></td>
|
166
|
+
<td>the offset in the Y direction between the origin used for
|
186
167
|
drawing or measuring the string and the origin of this glyph.
|
187
168
|
</td>
|
188
169
|
</tr>
|
@@ -199,25 +180,24 @@ with respect to the overall origin</p>
|
|
199
180
|
} cairo_font_slant_t;
|
200
181
|
</pre>
|
201
182
|
<p>
|
202
|
-
Specifies variants of a font face based on their slant
|
203
|
-
<p>
|
183
|
+
Specifies variants of a font face based on their slant.
|
204
184
|
</p>
|
205
185
|
<div class="variablelist"><table border="0">
|
206
186
|
<col align="left" valign="top">
|
207
187
|
<tbody>
|
208
188
|
<tr>
|
209
|
-
<td><p><a name="CAIRO-FONT-SLANT-NORMAL
|
210
|
-
<td>
|
189
|
+
<td><p><a name="CAIRO-FONT-SLANT-NORMAL:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_NORMAL</code></span></p></td>
|
190
|
+
<td>Upright font style
|
211
191
|
</td>
|
212
192
|
</tr>
|
213
193
|
<tr>
|
214
|
-
<td><p><a name="CAIRO-FONT-SLANT-ITALIC
|
215
|
-
<td>
|
194
|
+
<td><p><a name="CAIRO-FONT-SLANT-ITALIC:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_ITALIC</code></span></p></td>
|
195
|
+
<td>Italic font style
|
216
196
|
</td>
|
217
197
|
</tr>
|
218
198
|
<tr>
|
219
|
-
<td><p><a name="CAIRO-FONT-SLANT-OBLIQUE
|
220
|
-
<td>
|
199
|
+
<td><p><a name="CAIRO-FONT-SLANT-OBLIQUE:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_OBLIQUE</code></span></p></td>
|
200
|
+
<td>Oblique font style
|
221
201
|
</td>
|
222
202
|
</tr>
|
223
203
|
</tbody>
|
@@ -232,20 +212,19 @@ Specifies variants of a font face based on their slant.</p>
|
|
232
212
|
} cairo_font_weight_t;
|
233
213
|
</pre>
|
234
214
|
<p>
|
235
|
-
Specifies variants of a font face based on their weight
|
236
|
-
<p>
|
215
|
+
Specifies variants of a font face based on their weight.
|
237
216
|
</p>
|
238
217
|
<div class="variablelist"><table border="0">
|
239
218
|
<col align="left" valign="top">
|
240
219
|
<tbody>
|
241
220
|
<tr>
|
242
|
-
<td><p><a name="CAIRO-FONT-WEIGHT-NORMAL
|
243
|
-
<td>
|
221
|
+
<td><p><a name="CAIRO-FONT-WEIGHT-NORMAL:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_WEIGHT_NORMAL</code></span></p></td>
|
222
|
+
<td>Normal font weight
|
244
223
|
</td>
|
245
224
|
</tr>
|
246
225
|
<tr>
|
247
|
-
<td><p><a name="CAIRO-FONT-WEIGHT-BOLD
|
248
|
-
<td>
|
226
|
+
<td><p><a name="CAIRO-FONT-WEIGHT-BOLD:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_WEIGHT_BOLD</code></span></p></td>
|
227
|
+
<td>Bold font weight
|
249
228
|
</td>
|
250
229
|
</tr>
|
251
230
|
</tbody>
|
@@ -273,20 +252,19 @@ ignore those clusters when PDF text is being selected.
|
|
273
252
|
</p>
|
274
253
|
<p>
|
275
254
|
See <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> for how clusters are used in advanced
|
276
|
-
text operations
|
277
|
-
<p>
|
255
|
+
text operations.
|
278
256
|
</p>
|
279
257
|
<div class="variablelist"><table border="0">
|
280
258
|
<col align="left" valign="top">
|
281
259
|
<tbody>
|
282
260
|
<tr>
|
283
|
-
<td><p><span class="term">int <em class="structfield"><code>num_bytes</code></em>;</span></p></td>
|
284
|
-
<td>
|
261
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-bytes"></a>num_bytes</code></em>;</span></p></td>
|
262
|
+
<td>the number of bytes of UTF-8 text covered by cluster
|
285
263
|
</td>
|
286
264
|
</tr>
|
287
265
|
<tr>
|
288
|
-
<td><p><span class="term">int <em class="structfield"><code>num_glyphs</code></em>;</span></p></td>
|
289
|
-
<td>
|
266
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-glyphs"></a>num_glyphs</code></em>;</span></p></td>
|
267
|
+
<td>the number of glyphs covered by cluster
|
290
268
|
</td>
|
291
269
|
</tr>
|
292
270
|
</tbody>
|
@@ -301,14 +279,13 @@ text operations.</p>
|
|
301
279
|
} cairo_text_cluster_flags_t;
|
302
280
|
</pre>
|
303
281
|
<p>
|
304
|
-
Specifies properties of a text cluster mapping
|
305
|
-
<p>
|
282
|
+
Specifies properties of a text cluster mapping.
|
306
283
|
</p>
|
307
284
|
<div class="variablelist"><table border="0">
|
308
285
|
<col align="left" valign="top">
|
309
286
|
<tbody><tr>
|
310
|
-
<td><p><a name="CAIRO-TEXT-CLUSTER-FLAG-BACKWARD
|
311
|
-
<td>
|
287
|
+
<td><p><a name="CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"></a><span class="term"><code class="literal">CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</code></span></p></td>
|
288
|
+
<td>The clusters in the cluster array
|
312
289
|
map to glyphs in the glyph array from end to start.
|
313
290
|
</td>
|
314
291
|
</tr></tbody>
|
@@ -318,10 +295,10 @@ map to glyphs in the glyph array from end to start.
|
|
318
295
|
<hr>
|
319
296
|
<div class="refsect2" title="cairo_select_font_face ()">
|
320
297
|
<a name="cairo-select-font-face"></a><h3>cairo_select_font_face ()</h3>
|
321
|
-
<pre class="programlisting">void cairo_select_font_face (<a class="link" href="cairo-
|
322
|
-
const char *family
|
323
|
-
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> slant
|
324
|
-
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> weight);</pre>
|
298
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_select_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
299
|
+
<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
|
300
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
|
301
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
|
325
302
|
<p>
|
326
303
|
Note: The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function call is part of what
|
327
304
|
the cairo designers call the "toy" text API. It is convenient for
|
@@ -337,12 +314,20 @@ remember), but the standard CSS2 generic family names, ("serif",
|
|
337
314
|
work as expected.
|
338
315
|
</p>
|
339
316
|
<p>
|
317
|
+
If <em class="parameter"><code>family</code></em> starts with the string "<em class="parameter"><code>cairo</code></em>:", or if no native font
|
318
|
+
backends are compiled in, cairo will use an internal font family.
|
319
|
+
The internal font family recognizes many modifiers in the <em class="parameter"><code>family</code></em>
|
320
|
+
string, most notably, it recognizes the string "monospace". That is,
|
321
|
+
the family name "<em class="parameter"><code>cairo</code></em>:monospace" will use the monospace version of
|
322
|
+
the internal font family.
|
323
|
+
</p>
|
324
|
+
<p>
|
340
325
|
For "real" font selection, see the font-backend-specific
|
341
326
|
font_face_create functions for the font backend you are using. (For
|
342
327
|
example, if you are using the freetype-based cairo-ft font backend,
|
343
|
-
see <a class="link" href="cairo-
|
344
|
-
<a class="link" href="cairo-
|
345
|
-
could then be used with <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> and
|
328
|
+
see <a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a> or
|
329
|
+
<a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()"><code class="function">cairo_ft_font_face_create_for_pattern()</code></a>.) The resulting font face
|
330
|
+
could then be used with <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> and
|
346
331
|
<a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>.
|
347
332
|
</p>
|
348
333
|
<p>
|
@@ -359,35 +344,34 @@ pango), in conjunction with cairo.
|
|
359
344
|
If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a>, (nor
|
360
345
|
<a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
|
361
346
|
family is platform-specific, but is essentially "sans-serif".
|
362
|
-
Default slant is <a class="link" href="cairo-text.html#CAIRO-FONT-SLANT-NORMAL
|
363
|
-
<a class="link" href="cairo-text.html#CAIRO-FONT-WEIGHT-NORMAL
|
347
|
+
Default slant is <a class="link" href="cairo-text.html#CAIRO-FONT-SLANT-NORMAL:CAPS"><code class="literal">CAIRO_FONT_SLANT_NORMAL</code></a>, and default weight is
|
348
|
+
<a class="link" href="cairo-text.html#CAIRO-FONT-WEIGHT-NORMAL:CAPS"><code class="literal">CAIRO_FONT_WEIGHT_NORMAL</code></a>.
|
364
349
|
</p>
|
365
350
|
<p>
|
366
351
|
This function is equivalent to a call to <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()"><code class="function">cairo_toy_font_face_create()</code></a>
|
367
|
-
followed by <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a
|
368
|
-
<p>
|
352
|
+
followed by <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a>.
|
369
353
|
</p>
|
370
354
|
<div class="variablelist"><table border="0">
|
371
355
|
<col align="left" valign="top">
|
372
356
|
<tbody>
|
373
357
|
<tr>
|
374
358
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
375
|
-
<td>
|
359
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
376
360
|
</td>
|
377
361
|
</tr>
|
378
362
|
<tr>
|
379
363
|
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
|
380
|
-
<td>
|
364
|
+
<td>a font family name, encoded in UTF-8
|
381
365
|
</td>
|
382
366
|
</tr>
|
383
367
|
<tr>
|
384
368
|
<td><p><span class="term"><em class="parameter"><code>slant</code></em> :</span></p></td>
|
385
|
-
<td>
|
369
|
+
<td>the slant for the font
|
386
370
|
</td>
|
387
371
|
</tr>
|
388
372
|
<tr>
|
389
373
|
<td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
|
390
|
-
<td>
|
374
|
+
<td>the weight for the font
|
391
375
|
</td>
|
392
376
|
</tr>
|
393
377
|
</tbody>
|
@@ -396,8 +380,8 @@ followed by <a class="link" href="cairo-text.html#cairo-set-font-face" title="ca
|
|
396
380
|
<hr>
|
397
381
|
<div class="refsect2" title="cairo_set_font_size ()">
|
398
382
|
<a name="cairo-set-font-size"></a><h3>cairo_set_font_size ()</h3>
|
399
|
-
<pre class="programlisting">void cairo_set_font_size (<a class="link" href="cairo-
|
400
|
-
double size);</pre>
|
383
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_size (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
384
|
+
<em class="parameter"><code><span class="type">double</span> size</code></em>);</pre>
|
401
385
|
<p>
|
402
386
|
Sets the current font matrix to a scale by a factor of <em class="parameter"><code>size</code></em>, replacing
|
403
387
|
any font matrix previously set with <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a> or
|
@@ -408,20 +392,19 @@ em-square being a <em class="parameter"><code>size</code></em> by <em class="par
|
|
408
392
|
<p>
|
409
393
|
If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>, (nor
|
410
394
|
<a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
|
411
|
-
font size is 10.0
|
412
|
-
<p>
|
395
|
+
font size is 10.0.
|
413
396
|
</p>
|
414
397
|
<div class="variablelist"><table border="0">
|
415
398
|
<col align="left" valign="top">
|
416
399
|
<tbody>
|
417
400
|
<tr>
|
418
401
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
419
|
-
<td>
|
402
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
420
403
|
</td>
|
421
404
|
</tr>
|
422
405
|
<tr>
|
423
406
|
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
424
|
-
<td>
|
407
|
+
<td>the new font size, in user space units
|
425
408
|
</td>
|
426
409
|
</tr>
|
427
410
|
</tbody>
|
@@ -430,28 +413,27 @@ font size is 10.0.</p>
|
|
430
413
|
<hr>
|
431
414
|
<div class="refsect2" title="cairo_set_font_matrix ()">
|
432
415
|
<a name="cairo-set-font-matrix"></a><h3>cairo_set_font_matrix ()</h3>
|
433
|
-
<pre class="programlisting">void cairo_set_font_matrix (<a class="link" href="cairo-
|
434
|
-
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
416
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
417
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
435
418
|
<p>
|
436
419
|
Sets the current font matrix to <em class="parameter"><code>matrix</code></em>. The font matrix gives a
|
437
420
|
transformation from the design space of the font (in this space,
|
438
421
|
the em-square is 1 unit by 1 unit) to user space. Normally, a
|
439
422
|
simple scale is used (see <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>), but a more
|
440
423
|
complex font matrix can be used to shear the font
|
441
|
-
or stretch it unequally along the two axes
|
442
|
-
<p>
|
424
|
+
or stretch it unequally along the two axes
|
443
425
|
</p>
|
444
426
|
<div class="variablelist"><table border="0">
|
445
427
|
<col align="left" valign="top">
|
446
428
|
<tbody>
|
447
429
|
<tr>
|
448
430
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
449
|
-
<td>
|
431
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
450
432
|
</td>
|
451
433
|
</tr>
|
452
434
|
<tr>
|
453
435
|
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
454
|
-
<td>
|
436
|
+
<td>a <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> describing a transform to be applied to
|
455
437
|
the current font.
|
456
438
|
</td>
|
457
439
|
</tr>
|
@@ -461,24 +443,23 @@ the current font.
|
|
461
443
|
<hr>
|
462
444
|
<div class="refsect2" title="cairo_get_font_matrix ()">
|
463
445
|
<a name="cairo-get-font-matrix"></a><h3>cairo_get_font_matrix ()</h3>
|
464
|
-
<pre class="programlisting">void cairo_get_font_matrix (<a class="link" href="cairo-
|
465
|
-
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
446
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_get_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
447
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
466
448
|
<p>
|
467
449
|
Stores the current font matrix into <em class="parameter"><code>matrix</code></em>. See
|
468
|
-
<a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a
|
469
|
-
<p>
|
450
|
+
<a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a>.
|
470
451
|
</p>
|
471
452
|
<div class="variablelist"><table border="0">
|
472
453
|
<col align="left" valign="top">
|
473
454
|
<tbody>
|
474
455
|
<tr>
|
475
456
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
476
|
-
<td>
|
457
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
477
458
|
</td>
|
478
459
|
</tr>
|
479
460
|
<tr>
|
480
461
|
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
481
|
-
<td>
|
462
|
+
<td>return value for the matrix
|
482
463
|
</td>
|
483
464
|
</tr>
|
484
465
|
</tbody>
|
@@ -487,27 +468,26 @@ Stores the current font matrix into <em class="parameter"><code>matrix</code></e
|
|
487
468
|
<hr>
|
488
469
|
<div class="refsect2" title="cairo_set_font_options ()">
|
489
470
|
<a name="cairo-set-font-options"></a><h3>cairo_set_font_options ()</h3>
|
490
|
-
<pre class="programlisting">void cairo_set_font_options (<a class="link" href="cairo-
|
491
|
-
const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);</pre>
|
471
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
472
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
|
492
473
|
<p>
|
493
|
-
Sets a set of custom font rendering options for the <a class="link" href="cairo-
|
474
|
+
Sets a set of custom font rendering options for the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
|
494
475
|
Rendering options are derived by merging these options with the
|
495
476
|
options derived from underlying surface; if the value in <em class="parameter"><code>options</code></em>
|
496
|
-
has a default value (like <a class="link" href="cairo-
|
497
|
-
from the surface is used
|
498
|
-
<p>
|
477
|
+
has a default value (like <a class="link" href="cairo-cairo-t.html#CAIRO-ANTIALIAS-DEFAULT:CAPS"><code class="literal">CAIRO_ANTIALIAS_DEFAULT</code></a>), then the value
|
478
|
+
from the surface is used.
|
499
479
|
</p>
|
500
480
|
<div class="variablelist"><table border="0">
|
501
481
|
<col align="left" valign="top">
|
502
482
|
<tbody>
|
503
483
|
<tr>
|
504
484
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
505
|
-
<td>
|
485
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
506
486
|
</td>
|
507
487
|
</tr>
|
508
488
|
<tr>
|
509
489
|
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
510
|
-
<td>
|
490
|
+
<td>font options to use
|
511
491
|
</td>
|
512
492
|
</tr>
|
513
493
|
</tbody>
|
@@ -516,26 +496,25 @@ from the surface is used.</p>
|
|
516
496
|
<hr>
|
517
497
|
<div class="refsect2" title="cairo_get_font_options ()">
|
518
498
|
<a name="cairo-get-font-options"></a><h3>cairo_get_font_options ()</h3>
|
519
|
-
<pre class="programlisting">void cairo_get_font_options (<a class="link" href="cairo-
|
520
|
-
<a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);</pre>
|
499
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_get_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
500
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
|
521
501
|
<p>
|
522
502
|
Retrieves font rendering options set via <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><span class="type">cairo_set_font_options</span></a>.
|
523
503
|
Note that the returned options do not include any options derived
|
524
504
|
from the underlying surface; they are literally the options
|
525
|
-
passed to <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><code class="function">cairo_set_font_options()</code></a
|
526
|
-
<p>
|
505
|
+
passed to <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><code class="function">cairo_set_font_options()</code></a>.
|
527
506
|
</p>
|
528
507
|
<div class="variablelist"><table border="0">
|
529
508
|
<col align="left" valign="top">
|
530
509
|
<tbody>
|
531
510
|
<tr>
|
532
511
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
533
|
-
<td>
|
512
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
534
513
|
</td>
|
535
514
|
</tr>
|
536
515
|
<tr>
|
537
516
|
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
538
|
-
<td>
|
517
|
+
<td>a <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> object into which to store
|
539
518
|
the retrieved options. All existing values are overwritten
|
540
519
|
</td>
|
541
520
|
</tr>
|
@@ -545,25 +524,24 @@ passed to <a class="link" href="cairo-text.html#cairo-set-font-options" title="c
|
|
545
524
|
<hr>
|
546
525
|
<div class="refsect2" title="cairo_set_font_face ()">
|
547
526
|
<a name="cairo-set-font-face"></a><h3>cairo_set_font_face ()</h3>
|
548
|
-
<pre class="programlisting">void cairo_set_font_face (<a class="link" href="cairo-
|
549
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);</pre>
|
550
|
-
<p>
|
551
|
-
Replaces the current <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object in the <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with
|
552
|
-
<em class="parameter"><code>font_face</code></em>. The replaced font face in the <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> will be
|
553
|
-
destroyed if there are no other references to it.</p>
|
527
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
528
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
|
554
529
|
<p>
|
530
|
+
Replaces the current <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with
|
531
|
+
<em class="parameter"><code>font_face</code></em>. The replaced font face in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> will be
|
532
|
+
destroyed if there are no other references to it.
|
555
533
|
</p>
|
556
534
|
<div class="variablelist"><table border="0">
|
557
535
|
<col align="left" valign="top">
|
558
536
|
<tbody>
|
559
537
|
<tr>
|
560
538
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
561
|
-
<td>
|
539
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
562
540
|
</td>
|
563
541
|
</tr>
|
564
542
|
<tr>
|
565
543
|
<td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
|
566
|
-
<td>
|
544
|
+
<td>a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to restore to the default font
|
567
545
|
</td>
|
568
546
|
</tr>
|
569
547
|
</tbody>
|
@@ -572,32 +550,31 @@ destroyed if there are no other references to it.</p>
|
|
572
550
|
<hr>
|
573
551
|
<div class="refsect2" title="cairo_get_font_face ()">
|
574
552
|
<a name="cairo-get-font-face"></a><h3>cairo_get_font_face ()</h3>
|
575
|
-
<pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * cairo_get_font_face (<a class="link" href="cairo-
|
576
|
-
<p>
|
577
|
-
Gets the current font face for a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.</p>
|
553
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_get_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
578
554
|
<p>
|
555
|
+
Gets the current font face for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
|
579
556
|
</p>
|
580
557
|
<div class="variablelist"><table border="0">
|
581
558
|
<col align="left" valign="top">
|
582
559
|
<tbody>
|
583
560
|
<tr>
|
584
561
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
585
|
-
<td>
|
562
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
586
563
|
</td>
|
587
564
|
</tr>
|
588
565
|
<tr>
|
589
566
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
590
567
|
<td> the current font face. This object is owned by
|
591
568
|
cairo. To keep a reference to it, you must call
|
592
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-reference" title="cairo_font_face_reference ()"><code class="function">cairo_font_face_reference()</code></a>.
|
569
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-reference" title="cairo_font_face_reference ()"><code class="function">cairo_font_face_reference()</code></a>.
|
593
570
|
|
594
|
-
This function never returns <code class="literal">NULL</code>. If memory cannot be allocated, a
|
595
|
-
special "nil" <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object will be returned on which
|
596
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-status" title="cairo_font_face_status ()"><code class="function">cairo_font_face_status()</code></a> returns <a class="link" href="cairo-
|
571
|
+
This function never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If memory cannot be allocated, a
|
572
|
+
special "nil" <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object will be returned on which
|
573
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-status" title="cairo_font_face_status ()"><code class="function">cairo_font_face_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
|
597
574
|
this nil object will cause its error state to propagate to other
|
598
575
|
objects it is passed to, (for example, calling
|
599
576
|
<a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> with a nil font will trigger an error that
|
600
|
-
will shutdown the <a class="link" href="cairo-
|
577
|
+
will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).
|
601
578
|
</td>
|
602
579
|
</tr>
|
603
580
|
</tbody>
|
@@ -606,27 +583,26 @@ will shutdown the <a class="link" href="cairo-context.html#cairo-t" title="cairo
|
|
606
583
|
<hr>
|
607
584
|
<div class="refsect2" title="cairo_set_scaled_font ()">
|
608
585
|
<a name="cairo-set-scaled-font"></a><h3>cairo_set_scaled_font ()</h3>
|
609
|
-
<pre class="programlisting">void cairo_set_scaled_font (<a class="link" href="cairo-
|
610
|
-
const <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
586
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
587
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);</pre>
|
611
588
|
<p>
|
612
589
|
Replaces the current font face, font matrix, and font options in
|
613
|
-
the <a class="link" href="cairo-
|
614
|
-
some translation, the current CTM of the <a class="link" href="cairo-
|
615
|
-
same as that of the <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, which can be accessed
|
616
|
-
using <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-ctm" title="cairo_scaled_font_get_ctm ()"><code class="function">cairo_scaled_font_get_ctm()</code></a
|
617
|
-
<p>
|
590
|
+
the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with those of the <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>. Except for
|
591
|
+
some translation, the current CTM of the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> should be the
|
592
|
+
same as that of the <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, which can be accessed
|
593
|
+
using <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-get-ctm" title="cairo_scaled_font_get_ctm ()"><code class="function">cairo_scaled_font_get_ctm()</code></a>.
|
618
594
|
</p>
|
619
595
|
<div class="variablelist"><table border="0">
|
620
596
|
<col align="left" valign="top">
|
621
597
|
<tbody>
|
622
598
|
<tr>
|
623
599
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
624
|
-
<td>
|
600
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
625
601
|
</td>
|
626
602
|
</tr>
|
627
603
|
<tr>
|
628
604
|
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
629
|
-
<td>
|
605
|
+
<td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
|
630
606
|
</td>
|
631
607
|
</tr>
|
632
608
|
</tbody>
|
@@ -636,32 +612,31 @@ using <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-ctm" ti
|
|
636
612
|
<hr>
|
637
613
|
<div class="refsect2" title="cairo_get_scaled_font ()">
|
638
614
|
<a name="cairo-get-scaled-font"></a><h3>cairo_get_scaled_font ()</h3>
|
639
|
-
<pre class="programlisting"><a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> * cairo_get_scaled_font (<a class="link" href="cairo-
|
640
|
-
<p>
|
641
|
-
Gets the current scaled font for a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.</p>
|
615
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> * cairo_get_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
642
616
|
<p>
|
617
|
+
Gets the current scaled font for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
|
643
618
|
</p>
|
644
619
|
<div class="variablelist"><table border="0">
|
645
620
|
<col align="left" valign="top">
|
646
621
|
<tbody>
|
647
622
|
<tr>
|
648
623
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
649
|
-
<td>
|
624
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
650
625
|
</td>
|
651
626
|
</tr>
|
652
627
|
<tr>
|
653
628
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
654
629
|
<td> the current scaled font. This object is owned by
|
655
630
|
cairo. To keep a reference to it, you must call
|
656
|
-
<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a>.
|
631
|
+
<a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a>.
|
657
632
|
|
658
|
-
This function never returns <code class="literal">NULL</code>. If memory cannot be allocated, a
|
659
|
-
special "nil" <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> object will be returned on which
|
660
|
-
<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a> returns <a class="link" href="cairo-
|
633
|
+
This function never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If memory cannot be allocated, a
|
634
|
+
special "nil" <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> object will be returned on which
|
635
|
+
<a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
|
661
636
|
this nil object will cause its error state to propagate to other
|
662
637
|
objects it is passed to, (for example, calling
|
663
638
|
<a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a> with a nil font will trigger an error that
|
664
|
-
will shutdown the <a class="link" href="cairo-
|
639
|
+
will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).
|
665
640
|
|
666
641
|
</td>
|
667
642
|
</tr>
|
@@ -672,8 +647,8 @@ will shutdown the <a class="link" href="cairo-context.html#cairo-t" title="cairo
|
|
672
647
|
<hr>
|
673
648
|
<div class="refsect2" title="cairo_show_text ()">
|
674
649
|
<a name="cairo-show-text"></a><h3>cairo_show_text ()</h3>
|
675
|
-
<pre class="programlisting">void cairo_show_text (<a class="link" href="cairo-
|
676
|
-
const char *utf8);</pre>
|
650
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_show_text (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
651
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>);</pre>
|
677
652
|
<p>
|
678
653
|
A drawing operator that generates the shape from a string of UTF-8
|
679
654
|
characters, rendered according to the current font_face, font_size
|
@@ -698,20 +673,19 @@ Note: The <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_sh
|
|
698
673
|
designers call the "toy" text API. It is convenient for short demos
|
699
674
|
and simple programs, but it is not expected to be adequate for
|
700
675
|
serious text-using applications. See <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> for the
|
701
|
-
"real" text display API in cairo
|
702
|
-
<p>
|
676
|
+
"real" text display API in cairo.
|
703
677
|
</p>
|
704
678
|
<div class="variablelist"><table border="0">
|
705
679
|
<col align="left" valign="top">
|
706
680
|
<tbody>
|
707
681
|
<tr>
|
708
682
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
709
|
-
<td>
|
683
|
+
<td>a cairo context
|
710
684
|
</td>
|
711
685
|
</tr>
|
712
686
|
<tr>
|
713
687
|
<td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
|
714
|
-
<td>
|
688
|
+
<td>a NUL-terminated string of text encoded in UTF-8, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
715
689
|
</td>
|
716
690
|
</tr>
|
717
691
|
</tbody>
|
@@ -720,31 +694,30 @@ serious text-using applications. See <a class="link" href="cairo-text.html#cairo
|
|
720
694
|
<hr>
|
721
695
|
<div class="refsect2" title="cairo_show_glyphs ()">
|
722
696
|
<a name="cairo-show-glyphs"></a><h3>cairo_show_glyphs ()</h3>
|
723
|
-
<pre class="programlisting">void cairo_show_glyphs (<a class="link" href="cairo-
|
724
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
725
|
-
int num_glyphs);</pre>
|
697
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_show_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
698
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
699
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
|
726
700
|
<p>
|
727
701
|
A drawing operator that generates the shape from an array of glyphs,
|
728
702
|
rendered according to the current font face, font size
|
729
|
-
(font matrix), and font options
|
730
|
-
<p>
|
703
|
+
(font matrix), and font options.
|
731
704
|
</p>
|
732
705
|
<div class="variablelist"><table border="0">
|
733
706
|
<col align="left" valign="top">
|
734
707
|
<tbody>
|
735
708
|
<tr>
|
736
709
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
737
|
-
<td>
|
710
|
+
<td>a cairo context
|
738
711
|
</td>
|
739
712
|
</tr>
|
740
713
|
<tr>
|
741
714
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
742
|
-
<td>
|
715
|
+
<td>array of glyphs to show
|
743
716
|
</td>
|
744
717
|
</tr>
|
745
718
|
<tr>
|
746
719
|
<td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
|
747
|
-
<td>
|
720
|
+
<td>number of glyphs to show
|
748
721
|
</td>
|
749
722
|
</tr>
|
750
723
|
</tbody>
|
@@ -753,14 +726,14 @@ rendered according to the current font face, font size
|
|
753
726
|
<hr>
|
754
727
|
<div class="refsect2" title="cairo_show_text_glyphs ()">
|
755
728
|
<a name="cairo-show-text-glyphs"></a><h3>cairo_show_text_glyphs ()</h3>
|
756
|
-
<pre class="programlisting">void cairo_show_text_glyphs (<a class="link" href="cairo-
|
757
|
-
const char *utf8
|
758
|
-
int utf8_len
|
759
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
760
|
-
int num_glyphs
|
761
|
-
const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> *clusters
|
762
|
-
int num_clusters
|
763
|
-
<a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t">cairo_text_cluster_flags_t</a> cluster_flags);</pre>
|
729
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_show_text_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
730
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
|
731
|
+
<em class="parameter"><code><span class="type">int</span> utf8_len</code></em>,
|
732
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
733
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
|
734
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>,
|
735
|
+
<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>,
|
736
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t"><span class="type">cairo_text_cluster_flags_t</span></a> cluster_flags</code></em>);</pre>
|
764
737
|
<p>
|
765
738
|
This operation has rendering effects similar to <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>
|
766
739
|
but, if the target surface supports it, uses the provided text and
|
@@ -778,56 +751,55 @@ and <em class="parameter"><code>glyphs</code></em> in entirety.
|
|
778
751
|
</p>
|
779
752
|
<p>
|
780
753
|
The first cluster always covers bytes from the beginning of <em class="parameter"><code>utf8</code></em>.
|
781
|
-
If <em class="parameter"><code>cluster_flags</code></em> do not have the <a class="link" href="cairo-text.html#CAIRO-TEXT-CLUSTER-FLAG-BACKWARD
|
754
|
+
If <em class="parameter"><code>cluster_flags</code></em> do not have the <a class="link" href="cairo-text.html#CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"><code class="literal">CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</code></a>
|
782
755
|
set, the first cluster also covers the beginning
|
783
756
|
of <em class="parameter"><code>glyphs</code></em>, otherwise it covers the end of the <em class="parameter"><code>glyphs</code></em> array and
|
784
757
|
following clusters move backward.
|
785
758
|
</p>
|
786
759
|
<p>
|
787
|
-
See <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> for constraints on valid clusters
|
788
|
-
<p>
|
760
|
+
See <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> for constraints on valid clusters.
|
789
761
|
</p>
|
790
762
|
<div class="variablelist"><table border="0">
|
791
763
|
<col align="left" valign="top">
|
792
764
|
<tbody>
|
793
765
|
<tr>
|
794
766
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
795
|
-
<td>
|
767
|
+
<td>a cairo context
|
796
768
|
</td>
|
797
769
|
</tr>
|
798
770
|
<tr>
|
799
771
|
<td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
|
800
|
-
<td>
|
772
|
+
<td>a string of text encoded in UTF-8
|
801
773
|
</td>
|
802
774
|
</tr>
|
803
775
|
<tr>
|
804
776
|
<td><p><span class="term"><em class="parameter"><code>utf8_len</code></em> :</span></p></td>
|
805
|
-
<td>
|
777
|
+
<td>length of <em class="parameter"><code>utf8</code></em> in bytes, or -1 if it is NUL-terminated
|
806
778
|
</td>
|
807
779
|
</tr>
|
808
780
|
<tr>
|
809
781
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
810
|
-
<td>
|
782
|
+
<td>array of glyphs to show
|
811
783
|
</td>
|
812
784
|
</tr>
|
813
785
|
<tr>
|
814
786
|
<td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
|
815
|
-
<td>
|
787
|
+
<td>number of glyphs to show
|
816
788
|
</td>
|
817
789
|
</tr>
|
818
790
|
<tr>
|
819
791
|
<td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
|
820
|
-
<td>
|
792
|
+
<td>array of cluster mapping information
|
821
793
|
</td>
|
822
794
|
</tr>
|
823
795
|
<tr>
|
824
796
|
<td><p><span class="term"><em class="parameter"><code>num_clusters</code></em> :</span></p></td>
|
825
|
-
<td>
|
797
|
+
<td>number of clusters in the mapping
|
826
798
|
</td>
|
827
799
|
</tr>
|
828
800
|
<tr>
|
829
801
|
<td><p><span class="term"><em class="parameter"><code>cluster_flags</code></em> :</span></p></td>
|
830
|
-
<td>
|
802
|
+
<td>cluster mapping flags
|
831
803
|
</td>
|
832
804
|
</tr>
|
833
805
|
</tbody>
|
@@ -837,23 +809,22 @@ See <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_tex
|
|
837
809
|
<hr>
|
838
810
|
<div class="refsect2" title="cairo_font_extents ()">
|
839
811
|
<a name="cairo-font-extents"></a><h3>cairo_font_extents ()</h3>
|
840
|
-
<pre class="programlisting">void cairo_font_extents (<a class="link" href="cairo-
|
841
|
-
<a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t">cairo_font_extents_t</a> *extents);</pre>
|
842
|
-
<p>
|
843
|
-
Gets the font extents for the currently selected font.</p>
|
812
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_font_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
813
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> *extents</code></em>);</pre>
|
844
814
|
<p>
|
815
|
+
Gets the font extents for the currently selected font.
|
845
816
|
</p>
|
846
817
|
<div class="variablelist"><table border="0">
|
847
818
|
<col align="left" valign="top">
|
848
819
|
<tbody>
|
849
820
|
<tr>
|
850
821
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
851
|
-
<td>
|
822
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
852
823
|
</td>
|
853
824
|
</tr>
|
854
825
|
<tr>
|
855
826
|
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
856
|
-
<td>
|
827
|
+
<td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> object into which the results
|
857
828
|
will be stored.
|
858
829
|
</td>
|
859
830
|
</tr>
|
@@ -863,9 +834,9 @@ will be stored.
|
|
863
834
|
<hr>
|
864
835
|
<div class="refsect2" title="cairo_text_extents ()">
|
865
836
|
<a name="cairo-text-extents"></a><h3>cairo_text_extents ()</h3>
|
866
|
-
<pre class="programlisting">void cairo_text_extents (<a class="link" href="cairo-
|
867
|
-
const char *utf8
|
868
|
-
<a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);</pre>
|
837
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_text_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
838
|
+
<em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
|
839
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
|
869
840
|
<p>
|
870
841
|
Gets the extents for a string of text. The extents describe a
|
871
842
|
user-space rectangle that encloses the "inked" portion of the text,
|
@@ -879,25 +850,24 @@ size of the rectangle (extents.width and extents.height). They do
|
|
879
850
|
contribute indirectly by changing the position of non-whitespace
|
880
851
|
characters. In particular, trailing whitespace characters are
|
881
852
|
likely to not affect the size of the rectangle, though they will
|
882
|
-
affect the x_advance and y_advance values
|
883
|
-
<p>
|
853
|
+
affect the x_advance and y_advance values.
|
884
854
|
</p>
|
885
855
|
<div class="variablelist"><table border="0">
|
886
856
|
<col align="left" valign="top">
|
887
857
|
<tbody>
|
888
858
|
<tr>
|
889
859
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
890
|
-
<td>
|
860
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
891
861
|
</td>
|
892
862
|
</tr>
|
893
863
|
<tr>
|
894
864
|
<td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
|
895
|
-
<td>
|
865
|
+
<td>a NUL-terminated string of text encoded in UTF-8, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
896
866
|
</td>
|
897
867
|
</tr>
|
898
868
|
<tr>
|
899
869
|
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
900
|
-
<td>
|
870
|
+
<td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
|
901
871
|
will be stored
|
902
872
|
</td>
|
903
873
|
</tr>
|
@@ -907,10 +877,10 @@ will be stored
|
|
907
877
|
<hr>
|
908
878
|
<div class="refsect2" title="cairo_glyph_extents ()">
|
909
879
|
<a name="cairo-glyph-extents"></a><h3>cairo_glyph_extents ()</h3>
|
910
|
-
<pre class="programlisting">void cairo_glyph_extents (<a class="link" href="cairo-
|
911
|
-
const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs
|
912
|
-
int num_glyphs
|
913
|
-
<a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);</pre>
|
880
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_glyph_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
881
|
+
<em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
|
882
|
+
<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
|
883
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
|
914
884
|
<p>
|
915
885
|
Gets the extents for an array of glyphs. The extents describe a
|
916
886
|
user-space rectangle that encloses the "inked" portion of the
|
@@ -921,30 +891,29 @@ amount by which the current point would be advanced by
|
|
921
891
|
</p>
|
922
892
|
<p>
|
923
893
|
Note that whitespace glyphs do not contribute to the size of the
|
924
|
-
rectangle (extents.width and extents.height)
|
925
|
-
<p>
|
894
|
+
rectangle (extents.width and extents.height).
|
926
895
|
</p>
|
927
896
|
<div class="variablelist"><table border="0">
|
928
897
|
<col align="left" valign="top">
|
929
898
|
<tbody>
|
930
899
|
<tr>
|
931
900
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
932
|
-
<td>
|
901
|
+
<td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
|
933
902
|
</td>
|
934
903
|
</tr>
|
935
904
|
<tr>
|
936
905
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
937
|
-
<td>
|
906
|
+
<td>an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> objects
|
938
907
|
</td>
|
939
908
|
</tr>
|
940
909
|
<tr>
|
941
910
|
<td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
|
942
|
-
<td>
|
911
|
+
<td>the number of elements in <em class="parameter"><code>glyphs</code></em>
|
943
912
|
</td>
|
944
913
|
</tr>
|
945
914
|
<tr>
|
946
915
|
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
947
|
-
<td>
|
916
|
+
<td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
|
948
917
|
will be stored
|
949
918
|
</td>
|
950
919
|
</tr>
|
@@ -954,12 +923,12 @@ will be stored
|
|
954
923
|
<hr>
|
955
924
|
<div class="refsect2" title="cairo_toy_font_face_create ()">
|
956
925
|
<a name="cairo-toy-font-face-create"></a><h3>cairo_toy_font_face_create ()</h3>
|
957
|
-
<pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * cairo_toy_font_face_create (const char *family
|
958
|
-
<a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> slant
|
959
|
-
<a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> weight);</pre>
|
926
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_toy_font_face_create (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
|
927
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
|
928
|
+
<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
|
960
929
|
<p>
|
961
930
|
Creates a font face from a triplet of family, slant, and weight.
|
962
|
-
These font faces are used in implementation of the the <a class="link" href="cairo-
|
931
|
+
These font faces are used in implementation of the the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> "toy"
|
963
932
|
font API.
|
964
933
|
</p>
|
965
934
|
<p>
|
@@ -969,31 +938,30 @@ family is assumed. The default family then can be queried using
|
|
969
938
|
</p>
|
970
939
|
<p>
|
971
940
|
The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function uses this to create font faces.
|
972
|
-
See that function for limitations of toy font faces
|
973
|
-
<p>
|
941
|
+
See that function for limitations and other details of toy font faces.
|
974
942
|
</p>
|
975
943
|
<div class="variablelist"><table border="0">
|
976
944
|
<col align="left" valign="top">
|
977
945
|
<tbody>
|
978
946
|
<tr>
|
979
947
|
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
|
980
|
-
<td>
|
948
|
+
<td>a font family name, encoded in UTF-8
|
981
949
|
</td>
|
982
950
|
</tr>
|
983
951
|
<tr>
|
984
952
|
<td><p><span class="term"><em class="parameter"><code>slant</code></em> :</span></p></td>
|
985
|
-
<td>
|
953
|
+
<td>the slant for the font
|
986
954
|
</td>
|
987
955
|
</tr>
|
988
956
|
<tr>
|
989
957
|
<td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
|
990
|
-
<td>
|
958
|
+
<td>the weight for the font
|
991
959
|
</td>
|
992
960
|
</tr>
|
993
961
|
<tr>
|
994
962
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
995
|
-
<td> a newly created <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
|
996
|
-
<a class="link" href="cairo-font-face.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
963
|
+
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
|
964
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
997
965
|
|
998
966
|
</td>
|
999
967
|
</tr>
|
@@ -1004,17 +972,16 @@ See that function for limitations of toy font faces.</p>
|
|
1004
972
|
<hr>
|
1005
973
|
<div class="refsect2" title="cairo_toy_font_face_get_family ()">
|
1006
974
|
<a name="cairo-toy-font-face-get-family"></a><h3>cairo_toy_font_face_get_family ()</h3>
|
1007
|
-
<pre class="programlisting">const char * cairo_toy_font_face_get_family (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);</pre>
|
1008
|
-
<p>
|
1009
|
-
Gets the familly name of a toy font.</p>
|
975
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * cairo_toy_font_face_get_family (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
|
1010
976
|
<p>
|
977
|
+
Gets the familly name of a toy font.
|
1011
978
|
</p>
|
1012
979
|
<div class="variablelist"><table border="0">
|
1013
980
|
<col align="left" valign="top">
|
1014
981
|
<tbody>
|
1015
982
|
<tr>
|
1016
983
|
<td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
|
1017
|
-
<td>
|
984
|
+
<td>A toy font face
|
1018
985
|
</td>
|
1019
986
|
</tr>
|
1020
987
|
<tr>
|
@@ -1031,17 +998,16 @@ and remains valid as long as the font face is alive (referenced).
|
|
1031
998
|
<hr>
|
1032
999
|
<div class="refsect2" title="cairo_toy_font_face_get_slant ()">
|
1033
1000
|
<a name="cairo-toy-font-face-get-slant"></a><h3>cairo_toy_font_face_get_slant ()</h3>
|
1034
|
-
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a> cairo_toy_font_face_get_slant (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);</pre>
|
1035
|
-
<p>
|
1036
|
-
Gets the slant a toy font.</p>
|
1001
|
+
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a> cairo_toy_font_face_get_slant (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
|
1037
1002
|
<p>
|
1003
|
+
Gets the slant a toy font.
|
1038
1004
|
</p>
|
1039
1005
|
<div class="variablelist"><table border="0">
|
1040
1006
|
<col align="left" valign="top">
|
1041
1007
|
<tbody>
|
1042
1008
|
<tr>
|
1043
1009
|
<td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
|
1044
|
-
<td>
|
1010
|
+
<td>A toy font face
|
1045
1011
|
</td>
|
1046
1012
|
</tr>
|
1047
1013
|
<tr>
|
@@ -1057,17 +1023,16 @@ Gets the slant a toy font.</p>
|
|
1057
1023
|
<hr>
|
1058
1024
|
<div class="refsect2" title="cairo_toy_font_face_get_weight ()">
|
1059
1025
|
<a name="cairo-toy-font-face-get-weight"></a><h3>cairo_toy_font_face_get_weight ()</h3>
|
1060
|
-
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a> cairo_toy_font_face_get_weight (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face);</pre>
|
1061
|
-
<p>
|
1062
|
-
Gets the weight a toy font.</p>
|
1026
|
+
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a> cairo_toy_font_face_get_weight (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
|
1063
1027
|
<p>
|
1028
|
+
Gets the weight a toy font.
|
1064
1029
|
</p>
|
1065
1030
|
<div class="variablelist"><table border="0">
|
1066
1031
|
<col align="left" valign="top">
|
1067
1032
|
<tbody>
|
1068
1033
|
<tr>
|
1069
1034
|
<td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
|
1070
|
-
<td>
|
1035
|
+
<td>A toy font face
|
1071
1036
|
</td>
|
1072
1037
|
</tr>
|
1073
1038
|
<tr>
|
@@ -1083,27 +1048,26 @@ Gets the weight a toy font.</p>
|
|
1083
1048
|
<hr>
|
1084
1049
|
<div class="refsect2" title="cairo_glyph_allocate ()">
|
1085
1050
|
<a name="cairo-glyph-allocate"></a><h3>cairo_glyph_allocate ()</h3>
|
1086
|
-
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> * cairo_glyph_allocate (int num_glyphs);</pre>
|
1051
|
+
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> * cairo_glyph_allocate (<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
|
1087
1052
|
<p>
|
1088
1053
|
Allocates an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s.
|
1089
1054
|
This function is only useful in implementations of
|
1090
|
-
<a class="link" href="cairo-
|
1055
|
+
<a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
|
1091
1056
|
needs to allocate an array of glyphs that cairo will free.
|
1092
1057
|
For all other uses, user can use their own allocation method
|
1093
1058
|
for glyphs.
|
1094
1059
|
</p>
|
1095
1060
|
<p>
|
1096
|
-
This function returns <code class="literal">NULL</code> if <em class="parameter"><code>num_glyphs</code></em> is not positive,
|
1097
|
-
or if out of memory. That means, the <code class="literal">NULL</code> return value
|
1098
|
-
signals out-of-memory only if <em class="parameter"><code>num_glyphs</code></em> was positive
|
1099
|
-
<p>
|
1061
|
+
This function returns <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>num_glyphs</code></em> is not positive,
|
1062
|
+
or if out of memory. That means, the <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> return value
|
1063
|
+
signals out-of-memory only if <em class="parameter"><code>num_glyphs</code></em> was positive.
|
1100
1064
|
</p>
|
1101
1065
|
<div class="variablelist"><table border="0">
|
1102
1066
|
<col align="left" valign="top">
|
1103
1067
|
<tbody>
|
1104
1068
|
<tr>
|
1105
1069
|
<td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
|
1106
|
-
<td>
|
1070
|
+
<td>number of glyphs to allocate
|
1107
1071
|
</td>
|
1108
1072
|
</tr>
|
1109
1073
|
<tr>
|
@@ -1120,21 +1084,20 @@ signals out-of-memory only if <em class="parameter"><code>num_glyphs</code></em>
|
|
1120
1084
|
<hr>
|
1121
1085
|
<div class="refsect2" title="cairo_glyph_free ()">
|
1122
1086
|
<a name="cairo-glyph-free"></a><h3>cairo_glyph_free ()</h3>
|
1123
|
-
<pre class="programlisting">void cairo_glyph_free (<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs);</pre>
|
1087
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_glyph_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>);</pre>
|
1124
1088
|
<p>
|
1125
1089
|
Frees an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s allocated using <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()"><code class="function">cairo_glyph_allocate()</code></a>.
|
1126
1090
|
This function is only useful to free glyph array returned
|
1127
|
-
by <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
|
1091
|
+
by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
|
1128
1092
|
an array of glyphs that the user will free.
|
1129
1093
|
For all other uses, user can use their own allocation method
|
1130
|
-
for glyphs
|
1131
|
-
<p>
|
1094
|
+
for glyphs.
|
1132
1095
|
</p>
|
1133
1096
|
<div class="variablelist"><table border="0">
|
1134
1097
|
<col align="left" valign="top">
|
1135
1098
|
<tbody><tr>
|
1136
1099
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
1137
|
-
<td>
|
1100
|
+
<td>array of glyphs to free, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1138
1101
|
</td>
|
1139
1102
|
</tr></tbody>
|
1140
1103
|
</table></div>
|
@@ -1143,27 +1106,26 @@ for glyphs.</p>
|
|
1143
1106
|
<hr>
|
1144
1107
|
<div class="refsect2" title="cairo_text_cluster_allocate ()">
|
1145
1108
|
<a name="cairo-text-cluster-allocate"></a><h3>cairo_text_cluster_allocate ()</h3>
|
1146
|
-
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> * cairo_text_cluster_allocate (int num_clusters);</pre>
|
1109
|
+
<pre class="programlisting"><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> * cairo_text_cluster_allocate (<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>);</pre>
|
1147
1110
|
<p>
|
1148
1111
|
Allocates an array of <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a>'s.
|
1149
1112
|
This function is only useful in implementations of
|
1150
|
-
<a class="link" href="cairo-
|
1113
|
+
<a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
|
1151
1114
|
needs to allocate an array of text clusters that cairo will free.
|
1152
1115
|
For all other uses, user can use their own allocation method
|
1153
1116
|
for text clusters.
|
1154
1117
|
</p>
|
1155
1118
|
<p>
|
1156
|
-
This function returns <code class="literal">NULL</code> if <em class="parameter"><code>num_clusters</code></em> is not positive,
|
1157
|
-
or if out of memory. That means, the <code class="literal">NULL</code> return value
|
1158
|
-
signals out-of-memory only if <em class="parameter"><code>num_clusters</code></em> was positive
|
1159
|
-
<p>
|
1119
|
+
This function returns <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>num_clusters</code></em> is not positive,
|
1120
|
+
or if out of memory. That means, the <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> return value
|
1121
|
+
signals out-of-memory only if <em class="parameter"><code>num_clusters</code></em> was positive.
|
1160
1122
|
</p>
|
1161
1123
|
<div class="variablelist"><table border="0">
|
1162
1124
|
<col align="left" valign="top">
|
1163
1125
|
<tbody>
|
1164
1126
|
<tr>
|
1165
1127
|
<td><p><span class="term"><em class="parameter"><code>num_clusters</code></em> :</span></p></td>
|
1166
|
-
<td>
|
1128
|
+
<td>number of text_clusters to allocate
|
1167
1129
|
</td>
|
1168
1130
|
</tr>
|
1169
1131
|
<tr>
|
@@ -1180,21 +1142,20 @@ signals out-of-memory only if <em class="parameter"><code>num_clusters</code></e
|
|
1180
1142
|
<hr>
|
1181
1143
|
<div class="refsect2" title="cairo_text_cluster_free ()">
|
1182
1144
|
<a name="cairo-text-cluster-free"></a><h3>cairo_text_cluster_free ()</h3>
|
1183
|
-
<pre class="programlisting">void cairo_text_cluster_free (<a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> *clusters);</pre>
|
1145
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_text_cluster_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>);</pre>
|
1184
1146
|
<p>
|
1185
1147
|
Frees an array of <span class="type">cairo_text_cluster</span>'s allocated using <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()"><code class="function">cairo_text_cluster_allocate()</code></a>.
|
1186
1148
|
This function is only useful to free text cluster array returned
|
1187
|
-
by <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
|
1149
|
+
by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
|
1188
1150
|
an array of text clusters that the user will free.
|
1189
1151
|
For all other uses, user can use their own allocation method
|
1190
|
-
for text clusters
|
1191
|
-
<p>
|
1152
|
+
for text clusters.
|
1192
1153
|
</p>
|
1193
1154
|
<div class="variablelist"><table border="0">
|
1194
1155
|
<col align="left" valign="top">
|
1195
1156
|
<tbody><tr>
|
1196
1157
|
<td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
|
1197
|
-
<td>
|
1158
|
+
<td>array of text clusters to free, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1198
1159
|
</td>
|
1199
1160
|
</tr></tbody>
|
1200
1161
|
</table></div>
|
@@ -1203,20 +1164,12 @@ for text clusters.</p>
|
|
1203
1164
|
</div>
|
1204
1165
|
<div class="refsect1" title="See Also">
|
1205
1166
|
<a name="cairo-text.see-also"></a><h2>See Also</h2>
|
1206
|
-
<
|
1207
|
-
</
|
1208
|
-
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
1209
|
-
<li class="listitem"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a></li>
|
1210
|
-
<li class="listitem"><a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a></li>
|
1211
|
-
<li class="listitem"><a class="link" href="cairo-paths.html#cairo-text-path" title="cairo_text_path ()"><code class="function">cairo_text_path()</code></a></li>
|
1212
|
-
<li class="listitem"><a class="link" href="cairo-paths.html#cairo-glyph-path" title="cairo_glyph_path ()"><code class="function">cairo_glyph_path()</code></a></li>
|
1213
|
-
</ul></div>
|
1214
|
-
<p>
|
1215
|
-
</p>
|
1167
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, <a class="link" href="cairo-Paths.html#cairo-text-path" title="cairo_text_path ()"><code class="function">cairo_text_path()</code></a>,
|
1168
|
+
<a class="link" href="cairo-Paths.html#cairo-glyph-path" title="cairo_glyph_path ()"><code class="function">cairo_glyph_path()</code></a>
|
1216
1169
|
</div>
|
1217
1170
|
</div>
|
1218
1171
|
<div class="footer">
|
1219
1172
|
<hr>
|
1220
|
-
Generated by GTK-Doc V1.
|
1173
|
+
Generated by GTK-Doc V1.15</div>
|
1221
1174
|
</body>
|
1222
|
-
</html>
|
1175
|
+
</html>
|