pango 3.1.1-x64-mingw32 → 3.1.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +27 -5
- data/ext/pango/depend +2 -2
- data/ext/pango/extconf.rb +32 -28
- data/ext/pango/pango.def +0 -16
- data/ext/pango/rb-pango-attr-list.c +64 -0
- data/ext/pango/rb-pango-attribute.c +147 -0
- data/ext/pango/rb-pango-context.c +79 -0
- data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
- data/ext/pango/rb-pango-private.h +27 -0
- data/ext/pango/rb-pango.c +32 -0
- data/ext/pango/rb-pango.h +29 -0
- data/extconf.rb +25 -9
- data/lib/2.2/pango.so +0 -0
- data/lib/2.3/pango.so +0 -0
- data/lib/2.4/pango.so +0 -0
- data/lib/pango.rb +24 -68
- data/lib/pango/cairo-loader.rb +63 -0
- data/lib/pango/color.rb +31 -0
- data/lib/pango/deprecated.rb +37 -0
- data/lib/pango/font-description.rb +29 -0
- data/lib/pango/language.rb +29 -0
- data/lib/pango/layout.rb +41 -0
- data/lib/pango/loader.rb +87 -0
- data/lib/pango/markup.rb +31 -0
- data/lib/pango/matrix.rb +64 -0
- data/lib/pango/rectangle.rb +28 -0
- data/lib/pango/version.rb +30 -0
- data/test/pango-test-utils.rb +7 -7
- data/test/run-test.rb +34 -8
- data/test/test-attr-list.rb +28 -0
- data/test/test-color.rb +1 -3
- data/test/test-context.rb +4 -4
- data/test/test-enum.rb +37 -0
- data/test/test-font-description.rb +31 -0
- data/test/test-language.rb +2 -1
- data/test/test-layout.rb +12 -0
- data/test/test-markup.rb +30 -0
- data/test/test-matrix.rb +131 -5
- data/test/test-rectangle.rb +16 -3
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
- data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
- data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
- data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
- data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
- data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
- data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
- data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
- data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
- data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
- data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
- data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
- data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
- data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
- data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
- data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
- data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
- data/vendor/local/include/graphene-1.0/graphene.h +61 -0
- data/vendor/local/include/harfbuzz/hb-common.h +36 -0
- data/vendor/local/include/harfbuzz/hb-font.h +18 -1
- data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
- data/vendor/local/include/harfbuzz/hb-version.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
- data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/icudt58.dll +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin58.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio58.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest58.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu58.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc58.dll +0 -0
- data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
- data/vendor/local/lib/libgraphene-1.0.la +41 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +1 -1
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +1 -1
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
- data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
- data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
- data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
- data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
- data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
- data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
- data/vendor/local/share/man/man1/pango-view.1 +2 -2
- metadata +119 -78
- data/README +0 -32
- data/ext/pango/rbpango.c +0 -356
- data/ext/pango/rbpango.h +0 -95
- data/ext/pango/rbpangoanalysis.c +0 -218
- data/ext/pango/rbpangoattribute.c +0 -506
- data/ext/pango/rbpangoattriterator.c +0 -141
- data/ext/pango/rbpangoattrlist.c +0 -101
- data/ext/pango/rbpangocairo.c +0 -122
- data/ext/pango/rbpangocairocontext.c +0 -131
- data/ext/pango/rbpangocolor.c +0 -120
- data/ext/pango/rbpangocontext.c +0 -344
- data/ext/pango/rbpangocoverage.c +0 -106
- data/ext/pango/rbpangoengine.c +0 -73
- data/ext/pango/rbpangofont.c +0 -110
- data/ext/pango/rbpangofontdescription.c +0 -282
- data/ext/pango/rbpangofontface.c +0 -73
- data/ext/pango/rbpangofontfamily.c +0 -79
- data/ext/pango/rbpangofontmap.c +0 -102
- data/ext/pango/rbpangofontmetrics.c +0 -85
- data/ext/pango/rbpangofontset.c +0 -69
- data/ext/pango/rbpangofontsetsimple.c +0 -60
- data/ext/pango/rbpangoglyphinfo.c +0 -123
- data/ext/pango/rbpangoglyphitem.c +0 -125
- data/ext/pango/rbpangoglyphstring.c +0 -151
- data/ext/pango/rbpangogravity.c +0 -54
- data/ext/pango/rbpangoitem.c +0 -95
- data/ext/pango/rbpangolanguage.c +0 -94
- data/ext/pango/rbpangolayout.c +0 -583
- data/ext/pango/rbpangolayoutiter.c +0 -189
- data/ext/pango/rbpangolayoutline.c +0 -243
- data/ext/pango/rbpangologattr.c +0 -109
- data/ext/pango/rbpangomatrix.c +0 -143
- data/ext/pango/rbpangoprivate.h +0 -49
- data/ext/pango/rbpangorectangle.c +0 -170
- data/ext/pango/rbpangorenderer.c +0 -193
- data/ext/pango/rbpangoscript.c +0 -84
- data/ext/pango/rbpangoscriptiter.c +0 -92
- data/ext/pango/rbpangotabarray.c +0 -128
- data/sample/attribute.rb +0 -82
- data/sample/break.rb +0 -28
- data/sample/gdk_layout.rb +0 -27
- data/sample/glyphstring.rb +0 -61
- data/sample/item.rb +0 -37
- data/sample/label.rb +0 -23
- data/sample/layout.rb +0 -102
- data/sample/pango_cairo.rb +0 -66
- data/sample/parse.rb +0 -33
- data/sample/sample.txt +0 -10
- data/sample/script.rb +0 -23
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
data/ext/pango/rbpangofontface.c
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002,2003 Masao Mutoh <mutoh@highway.ne.jp>
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#define RG_TARGET_NAMESPACE cFontFace
|
25
|
-
#define _SELF(self) (RVAL2PANGOFONTFACE(self))
|
26
|
-
|
27
|
-
static VALUE
|
28
|
-
rg_name(VALUE self)
|
29
|
-
{
|
30
|
-
return CSTR2RVAL(pango_font_face_get_face_name(_SELF(self)));
|
31
|
-
}
|
32
|
-
|
33
|
-
static VALUE
|
34
|
-
rg_describe(VALUE self)
|
35
|
-
{
|
36
|
-
return PANGOFONTDESCRIPTION2RVAL(pango_font_face_describe(_SELF(self)));
|
37
|
-
}
|
38
|
-
|
39
|
-
static VALUE
|
40
|
-
rg_sizes(VALUE self)
|
41
|
-
{
|
42
|
-
int n_sizes;
|
43
|
-
int* sizes;
|
44
|
-
int i;
|
45
|
-
VALUE result;
|
46
|
-
|
47
|
-
pango_font_face_list_sizes(_SELF(self),
|
48
|
-
&sizes,
|
49
|
-
&n_sizes);
|
50
|
-
|
51
|
-
result = rb_ary_new();
|
52
|
-
for (i = 0; i < n_sizes; i++)
|
53
|
-
rb_ary_push(result, GOBJ2RVAL(&sizes[i]));
|
54
|
-
|
55
|
-
g_free(sizes);
|
56
|
-
return result;
|
57
|
-
}
|
58
|
-
|
59
|
-
void
|
60
|
-
Init_pango_font_face(VALUE mPango)
|
61
|
-
{
|
62
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONT_FACE, "FontFace", mPango);
|
63
|
-
|
64
|
-
RG_DEF_METHOD(name, 0);
|
65
|
-
RG_DEF_METHOD(describe, 0);
|
66
|
-
RG_DEF_METHOD(sizes, 0);
|
67
|
-
G_DEF_CLASS3("PangoFcFace", "FcFace", mPango);
|
68
|
-
G_DEF_CLASS3("PangoFT2Face", "FT2Face", mPango);
|
69
|
-
G_DEF_CLASS3("PangoXftFace", "XftFace", mPango);
|
70
|
-
G_DEF_CLASS3("PangoXFace", "XFace", mPango);
|
71
|
-
G_DEF_CLASS3("PangoWin32Face", "Win32Face", mPango);
|
72
|
-
G_DEF_CLASS3("PangoATSUIFace", "ATSUIFace", mPango);
|
73
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002-2005 Masao Mutoh
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#define RG_TARGET_NAMESPACE cFontFamily
|
25
|
-
#define _SELF(self) (RVAL2PANGOFONTFAMILY(self))
|
26
|
-
|
27
|
-
static VALUE
|
28
|
-
rg_name(VALUE self)
|
29
|
-
{
|
30
|
-
return CSTR2RVAL(pango_font_family_get_name(_SELF(self)));
|
31
|
-
}
|
32
|
-
|
33
|
-
#ifdef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
|
34
|
-
static VALUE
|
35
|
-
rg_monospace_p(VALUE self)
|
36
|
-
{
|
37
|
-
return CBOOL2RVAL(pango_font_family_is_monospace(_SELF(self)));
|
38
|
-
}
|
39
|
-
#endif
|
40
|
-
|
41
|
-
static VALUE
|
42
|
-
rg_faces(VALUE self)
|
43
|
-
{
|
44
|
-
int n_faces;
|
45
|
-
PangoFontFace** faces;
|
46
|
-
int i;
|
47
|
-
VALUE result;
|
48
|
-
|
49
|
-
pango_font_family_list_faces(_SELF(self),
|
50
|
-
&faces,
|
51
|
-
&n_faces);
|
52
|
-
|
53
|
-
result = rb_ary_new2(n_faces);
|
54
|
-
for (i = 0; i < n_faces; i++)
|
55
|
-
rb_ary_store(result, i, GOBJ2RVAL(faces[i]));
|
56
|
-
|
57
|
-
g_free(faces);
|
58
|
-
|
59
|
-
return result;
|
60
|
-
}
|
61
|
-
|
62
|
-
void
|
63
|
-
Init_pango_font_family(VALUE mPango)
|
64
|
-
{
|
65
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONT_FAMILY, "FontFamily", mPango);
|
66
|
-
|
67
|
-
RG_DEF_METHOD(name, 0);
|
68
|
-
#ifdef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
|
69
|
-
RG_DEF_METHOD_P(monospace, 0);
|
70
|
-
#endif
|
71
|
-
RG_DEF_METHOD(faces, 0);
|
72
|
-
|
73
|
-
G_DEF_CLASS3("PangoFcFamily", "FcFamily", mPango);
|
74
|
-
G_DEF_CLASS3("PangoFT2Family", "FT2Family", mPango);
|
75
|
-
G_DEF_CLASS3("PangoXftFamily", "XftFamily", mPango);
|
76
|
-
G_DEF_CLASS3("PangoXFamily", "XFamily", mPango);
|
77
|
-
G_DEF_CLASS3("PangoWin32Family", "Win32Family", mPango);
|
78
|
-
G_DEF_CLASS3("PangoATSUIFamily", "ATSUIFamily", mPango);
|
79
|
-
}
|
data/ext/pango/rbpangofontmap.c
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002-2005 Masao Mutoh
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#define RG_TARGET_NAMESPACE cFontMap
|
25
|
-
#define _SELF(self) (RVAL2PANGOFONTMAP(self))
|
26
|
-
|
27
|
-
/*
|
28
|
-
static VALUE
|
29
|
-
rg_initialize(VALUE self)
|
30
|
-
{
|
31
|
-
G_INITIALIZE(self, pango_ft2_font_map_new());
|
32
|
-
return Qnil;
|
33
|
-
}
|
34
|
-
*/
|
35
|
-
|
36
|
-
static VALUE
|
37
|
-
rg_load_font(VALUE self, VALUE context, VALUE desc)
|
38
|
-
{
|
39
|
-
return GOBJ2RVAL(pango_font_map_load_font(_SELF(self),
|
40
|
-
RVAL2PANGOCONTEXT(context),
|
41
|
-
RVAL2PANGOFONTDESCRIPTION(desc)));
|
42
|
-
}
|
43
|
-
|
44
|
-
static VALUE
|
45
|
-
rg_load_fontset(VALUE self, VALUE context, VALUE desc, VALUE lang)
|
46
|
-
{
|
47
|
-
return GOBJ2RVAL(pango_font_map_load_fontset(_SELF(self),
|
48
|
-
RVAL2PANGOCONTEXT(context),
|
49
|
-
RVAL2PANGOFONTDESCRIPTION(desc),
|
50
|
-
RVAL2PANGOLANGUAGE(lang)));
|
51
|
-
}
|
52
|
-
|
53
|
-
static VALUE
|
54
|
-
rg_families(VALUE self)
|
55
|
-
{
|
56
|
-
int n_families;
|
57
|
-
PangoFontFamily** families;
|
58
|
-
int i;
|
59
|
-
VALUE result;
|
60
|
-
|
61
|
-
pango_font_map_list_families(_SELF(self),
|
62
|
-
&families,
|
63
|
-
&n_families);
|
64
|
-
|
65
|
-
result = rb_ary_new2(n_families);
|
66
|
-
for (i = 0; i < n_families; i++)
|
67
|
-
rb_ary_store(result, i, GOBJ2RVAL(families[i]));
|
68
|
-
|
69
|
-
g_free(families);
|
70
|
-
|
71
|
-
return result;
|
72
|
-
}
|
73
|
-
|
74
|
-
static VALUE
|
75
|
-
rg_shape_engine_type(VALUE self)
|
76
|
-
{
|
77
|
-
return CSTR2RVAL(pango_font_map_get_shape_engine_type(_SELF(self)));
|
78
|
-
}
|
79
|
-
|
80
|
-
void
|
81
|
-
Init_pango_font_map(VALUE mPango)
|
82
|
-
{
|
83
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONT_MAP, "FontMap", mPango);
|
84
|
-
|
85
|
-
/*
|
86
|
-
RG_DEF_METHOD(initialize, 0);
|
87
|
-
*/
|
88
|
-
RG_DEF_METHOD(load_font, 2);
|
89
|
-
RG_DEF_METHOD(load_fontset, 3);
|
90
|
-
RG_DEF_METHOD(families, 0);
|
91
|
-
RG_DEF_METHOD(shape_engine_type, 0);
|
92
|
-
|
93
|
-
G_DEF_CLASS3("PangoFcFontMap", "FcFontMap", mPango);
|
94
|
-
G_DEF_CLASS3("PangoXftFontMap", "XftFontMap", mPango);
|
95
|
-
G_DEF_CLASS3("PangoFT2FontMap", "FT2FontMap", mPango);
|
96
|
-
G_DEF_CLASS3("PangoXFontMap", "XFontMap", mPango);
|
97
|
-
G_DEF_CLASS3("PangoWin32FontMap", "Win32FontMap", mPango);
|
98
|
-
G_DEF_CLASS3("PangoCoreTextFontMap", "CoreTextFontMap", mPango);
|
99
|
-
G_DEF_CLASS3("PangoCairoFcFontMap", "CairoFcFontMap", mPango);
|
100
|
-
G_DEF_CLASS3("PangoCairoWin32FontMap", "CairoWin32FontMap", mPango);
|
101
|
-
G_DEF_CLASS3("PangoCairoCoreTextFontMap", "CairoCoreTextFontMap", mPango);
|
102
|
-
}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002-2005 Masao Mutoh
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#define RG_TARGET_NAMESPACE cFontMetrics
|
25
|
-
#define _SELF(self) (RVAL2PANGOFONTMETRICS(self))
|
26
|
-
|
27
|
-
static VALUE
|
28
|
-
rg_ascent(VALUE self)
|
29
|
-
{
|
30
|
-
return INT2NUM(pango_font_metrics_get_ascent(_SELF(self)));
|
31
|
-
}
|
32
|
-
|
33
|
-
static VALUE
|
34
|
-
rg_descent(VALUE self)
|
35
|
-
{
|
36
|
-
return INT2NUM(pango_font_metrics_get_descent(_SELF(self)));
|
37
|
-
}
|
38
|
-
|
39
|
-
static VALUE
|
40
|
-
rg_approximate_char_width(VALUE self)
|
41
|
-
{
|
42
|
-
return INT2NUM(pango_font_metrics_get_approximate_char_width(_SELF(self)));
|
43
|
-
}
|
44
|
-
|
45
|
-
static VALUE
|
46
|
-
rg_approximate_digit_width(VALUE self)
|
47
|
-
{
|
48
|
-
return INT2NUM(pango_font_metrics_get_approximate_digit_width(_SELF(self)));
|
49
|
-
}
|
50
|
-
|
51
|
-
static VALUE
|
52
|
-
rg_underline_thickness(VALUE self)
|
53
|
-
{
|
54
|
-
return INT2NUM(pango_font_metrics_get_underline_thickness(_SELF(self)));
|
55
|
-
}
|
56
|
-
static VALUE
|
57
|
-
rg_underline_position(VALUE self)
|
58
|
-
{
|
59
|
-
return INT2NUM(pango_font_metrics_get_underline_position(_SELF(self)));
|
60
|
-
}
|
61
|
-
static VALUE
|
62
|
-
rg_strikethrough_thickness(VALUE self)
|
63
|
-
{
|
64
|
-
return INT2NUM(pango_font_metrics_get_strikethrough_thickness(_SELF(self)));
|
65
|
-
}
|
66
|
-
static VALUE
|
67
|
-
rg_strikethrough_position(VALUE self)
|
68
|
-
{
|
69
|
-
return INT2NUM(pango_font_metrics_get_strikethrough_position(_SELF(self)));
|
70
|
-
}
|
71
|
-
|
72
|
-
void
|
73
|
-
Init_pango_font_metrics(VALUE mPango)
|
74
|
-
{
|
75
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONT_METRICS, "FontMetrics", mPango);
|
76
|
-
|
77
|
-
RG_DEF_METHOD(ascent, 0);
|
78
|
-
RG_DEF_METHOD(descent, 0);
|
79
|
-
RG_DEF_METHOD(approximate_char_width, 0);
|
80
|
-
RG_DEF_METHOD(approximate_digit_width, 0);
|
81
|
-
RG_DEF_METHOD(underline_thickness, 0);
|
82
|
-
RG_DEF_METHOD(underline_position, 0);
|
83
|
-
RG_DEF_METHOD(strikethrough_thickness, 0);
|
84
|
-
RG_DEF_METHOD(strikethrough_position, 0);
|
85
|
-
}
|
data/ext/pango/rbpangofontset.c
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002-2005 Masao Mutoh
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#define RG_TARGET_NAMESPACE cFontset
|
25
|
-
#define _SELF(self) (RVAL2PANGOFONTSET(self))
|
26
|
-
|
27
|
-
static ID id_call;
|
28
|
-
|
29
|
-
static VALUE
|
30
|
-
rg_get_font(VALUE self, VALUE wc)
|
31
|
-
{
|
32
|
-
return GOBJ2RVAL(pango_fontset_get_font(_SELF(self), NUM2UINT(wc)));
|
33
|
-
}
|
34
|
-
|
35
|
-
static VALUE
|
36
|
-
rg_metrics(VALUE self)
|
37
|
-
{
|
38
|
-
return PANGOFONTMETRICS2RVAL(pango_fontset_get_metrics(_SELF(self)));
|
39
|
-
}
|
40
|
-
|
41
|
-
static gboolean
|
42
|
-
fontset_each(PangoFontset *fontset, PangoFont *font, gpointer func)
|
43
|
-
{
|
44
|
-
return RVAL2CBOOL(rb_funcall((VALUE)func, id_call,
|
45
|
-
2, GOBJ2RVAL(fontset), GOBJ2RVAL(font)));
|
46
|
-
}
|
47
|
-
|
48
|
-
static VALUE
|
49
|
-
rg_each(VALUE self)
|
50
|
-
{
|
51
|
-
VALUE func = rb_block_proc();
|
52
|
-
G_RELATIVE(self, func);
|
53
|
-
pango_fontset_foreach(_SELF(self),
|
54
|
-
(PangoFontsetForeachFunc)fontset_each,
|
55
|
-
(gpointer)func);
|
56
|
-
return self;
|
57
|
-
}
|
58
|
-
|
59
|
-
void
|
60
|
-
Init_pango_fontset(VALUE mPango)
|
61
|
-
{
|
62
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONTSET, "Fontset", mPango);
|
63
|
-
|
64
|
-
id_call = rb_intern("call");
|
65
|
-
|
66
|
-
RG_DEF_METHOD(get_font, 1);
|
67
|
-
RG_DEF_METHOD(metrics, 0);
|
68
|
-
RG_DEF_METHOD(each, 0);
|
69
|
-
}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2002,2003 Masao Mutoh
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU Lesser General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 2.1 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
-
* MA 02110-1301 USA
|
20
|
-
*/
|
21
|
-
|
22
|
-
#include "rbpangoprivate.h"
|
23
|
-
|
24
|
-
#ifdef PANGO_ENABLE_BACKEND
|
25
|
-
|
26
|
-
#define RG_TARGET_NAMESPACE cFontsetSimple
|
27
|
-
#define _SELF(self) (RVAL2PANGOFONTSETSIMPLE(self))
|
28
|
-
|
29
|
-
static VALUE
|
30
|
-
rg_initialize(VALUE self, VALUE lang)
|
31
|
-
{
|
32
|
-
G_INITIALIZE(self, pango_fontset_simple_new(RVAL2PANGOLANGUAGE(lang)));
|
33
|
-
return Qnil;
|
34
|
-
}
|
35
|
-
|
36
|
-
static VALUE
|
37
|
-
rg_append(VALUE self, VALUE font)
|
38
|
-
{
|
39
|
-
pango_fontset_simple_append(_SELF(self), RVAL2PANGOFONT(font));
|
40
|
-
return self;
|
41
|
-
}
|
42
|
-
|
43
|
-
static VALUE
|
44
|
-
rg_size(VALUE self)
|
45
|
-
{
|
46
|
-
return INT2NUM(pango_fontset_simple_size(_SELF(self)));
|
47
|
-
}
|
48
|
-
|
49
|
-
#endif
|
50
|
-
void
|
51
|
-
Init_pango_fontset_simple(VALUE mPango)
|
52
|
-
{
|
53
|
-
#ifdef PANGO_ENABLE_BACKEND
|
54
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_FONTSET_SIMPLE, "FontsetSimple", mPango);
|
55
|
-
|
56
|
-
RG_DEF_METHOD(initialize, 1);
|
57
|
-
RG_DEF_METHOD(append, 1);
|
58
|
-
RG_DEF_METHOD(size, 0);
|
59
|
-
#endif
|
60
|
-
}
|