[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dancr-rbcatut

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2013年 3月 23日 (土) 01:57:48 JST


-------------------------
REMOTE_ADDR = 70.49.48.128
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut
-------------------------
@@ -9,14 +9,62 @@
 #        [next file: ...... ]
 
 
+:Contents of this chapter:
+
+# * 12 ((<|tut-gtk2-dancr#>))
+
+  * 12.3 ((<Ruby Cairo Tutorial|tut-gtk2-dancr>)) (this page)
+    * 12.3.0 ((<Intro To Ruby Cairo Tutorial|tut-gtk2-dancr#Intro To Ruby Cairo Tutorial>))
+      * 12.3.0.1 ((<Establishing Gtk-Cairo Framework To Run The Tutorial Example Code|tut-gtk2-dancr#Establishing Gtk/Cairo Framework To Run The Tutorial Example Code>))
+    * 12.3.1 ((<Cairo's Drawing Model|tut-gtk2-dancr#Cairo's Drawing Model>))
+      * 12.3.1.1 ((<Nouns|tut-gtk2-dancr#Nouns>))
+      * 12.3.1.2 ((<Verbs|tut-gtk2-dancr#Verbs>))
+    * 12.3.2 ((<Drawing with Cairo|tut-gtk2-dancr#Drawing with Cairo>))
+      * 12.3.2.1 ((<Preparing and Selecting a Source|tut-gtk2-dancr#Preparing and Selecting a Source>))
+      * 12.3.2.2 ((<Creating a Path|tut-gtk2-dancr#Creating a Path>))
+    * 12.3.3 ((<Understanding Text|tut-gtk2-dancr#Understanding Text>))
+    * 12.3.4 ((<Working with Transforms|tut-gtk2-dancr#Working with Transforms>))
+    * 12.3.5 ((<Where to Go Next|tut-gtk2-dancr#Where to Go Next>))
+    * 12.3.6 ((<Tips and Tricks|tut-gtk2-dancr#Tips and Tricks>))
+      * 12.3.6.1 ((<Line Width|tut-gtk2-dancr#Line Width>))
+      * 12.3.6.2 ((<Text Alignment|tut-gtk2-dancr#Text Alignment>))
+
+
+{{br}}
+
 == Intro To Ruby Cairo Tutorial
 (12.3.0){{br}}
 
+This tutorial is derived primarily from ((<the official Cairo Tutorial|URL:http://www.cairographics.org/tutorial/>)), which in turn was derived from from  ((<Michael Urman's cairo tutorial for python programmers|URL:http://www.tortall.net/mu/wiki/CairoTutorial>)), and the original code snippets have been translated to C, the text has only been changed as much as necessary. All that has been said here for the 'official Cairo Tutorial' holds also for my 'Ruby Cairo Tutorial', except that the original code snippets in either of the above, have now been translated to Ruby. I also have reused the diagrams developed for the original Cairo tutorials. These diagrams were created by Donn Ingle in SVG. They require 'Inkscape' (or similar) to view, as well as two specific fonts for correct appearance. Donn requests that you download and share the diagrams on your own website if you find them useful. (((<You can find the files to download on this link|URL:https://docs.google.com/leaf?id
 =0ByXVQD8awBcLYjc2ZWVmZmItMDlmMi00MWUzLThkMTUtMzNhNTU0YjI3M2M2&amp;hl=en>)).)
+
+# As you know Cairo 2D vector graphic library became part of GTK+ release 2.8 distribution.
+
+
+
+{{br}}
+
+=== Establishing Gtk/Cairo Framework To Run The Tutorial Example Code
+(12.3.0.1){{br}}
+
+A great number of the examples that introduce Cairo code at the beginning of almost all contemporary Cairo tutorials try to avoid unnecessarily discussing how Cairo cooperates with the X, or any other Window system. Plain C/GTK Cairo library includes a number of functions which allow you create cairo context independently of any particular back-end.
 
+:Cairo Backends
 
-This tutorial is derived primarily from ((<the official Cairo Tutorial|URL:http://www.cairographics.org/tutorial/>)), which in turn was derived from from  ((<Michael Urman's cairo tutorial for python programmers|URL:http://www.tortall.net/mu/wiki/CairoTutorial>)), and the original code snippets have been translated to C, the text has only been changed as much as necessary. All that has been said here for the 'official Cairo Tutorial' holds also for my 'Ruby Cairo Tutorial', except that the original code snippets in either of the above, have now been translated to Ruby. I also have reused the diagrams developed for the original Cairo tutorials. These diagrams were created by Donn Ingle in SVG. They require 'Inkscape' (or similar) to view, as well as two specific fonts for correct appearance. Donn requests that you download and share the diagrams on your own website if you find them useful. (((<You can find the files to download on this link|URL:https://docs.google.com/leaf?id
 =0ByXVQD8awBcLYjc2ZWVmZmItMDlmMi00MWUzLThkMTUtMzNhNTU0YjI3M2M2&amp;hl=en>)).)
+    (12.3.0.1.1){{br}}
+    Plain C/GTK Cairo library Cairo supports various backends. Unfortunately currently, Ruby Gtk/Cairo library does not! Nevertheless, I believe this is going to change in the future, and we may very well provide a short description of what these backends are. Namely, they represent different output devices or media for displaying the created graphics. Followig is the short list:
+    :List of backends
+        * Mac OS X Quartz
+        * Win32 GDI
+        * X Window System
+        * PDF
+        * PNG
+        * PostScript
+        * SVG
 
+    This means, providing we use the Gtk/Cairo library version, supporting these backends, we can draw on windows on OSX, Windows, Linux/BSDs as well as that we can use this library to create PNG or JPG image files, PDF files, PostScript files and SVG files. 
 
+{{br}}
+(12.3.0.1 /continued/){{br}}
 
 
 {{br}}




ruby-gnome2-cvs メーリングリストの案内
Back to archive index