[cairo-commit] rcairo/src/lib/cairo papers.rb,1.1,1.2

Kouhei Sutou commit at pdx.freedesktop.org
Thu Apr 10 19:57:14 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo/src/lib/cairo
In directory kemper:/tmp/cvs-serv16568/src/lib/cairo

Modified Files:
	papers.rb 
Log Message:
* src/lib/cairo/papers.rb: fix unit.


Index: papers.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/papers.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- papers.rb	9 Apr 2008 06:15:42 -0000	1.1
+++ papers.rb	11 Apr 2008 03:02:01 -0000	1.2
@@ -2,33 +2,33 @@
 
 module Cairo
   class Paper
-    A0 = new(841, 1189, "A0")
-    A1 = new(594, 841, "A1")
-    A2 = new(420, 594, "A2")
-    A3 = new(297, 420, "A3")
-    A4 = new(210, 297, "A4")
-    A5 = new(148, 210, "A5")
-    A6 = new(105, 148, "A6")
-    A7 = new(74, 105, "A7")
-    A8 = new(52, 74, "A8")
-    A9 = new(37, 52, "A9")
-    A10 = new(26, 37, "A10")
+    A0 = new(841, 1189, "mm", "A0")
+    A1 = new(594, 841, "mm", "A1")
+    A2 = new(420, 594, "mm", "A2")
+    A3 = new(297, 420, "mm", "A3")
+    A4 = new(210, 297, "mm", "A4")
+    A5 = new(148, 210, "mm", "A5")
+    A6 = new(105, 148, "mm", "A6")
+    A7 = new(74, 105, "mm", "A7")
+    A8 = new(52, 74, "mm", "A8")
+    A9 = new(37, 52, "mm", "A9")
+    A10 = new(26, 37, "mm", "A10")
 
-    B0 = new(1030, 1456, "B0")
-    B1 = new(728, 1030, "B1")
-    B2 = new(515, 728, "B2")
-    B3 = new(364, 515, "B3")
-    B4 = new(257, 364, "B4")
-    B5 = new(182, 257, "B5")
-    B6 = new(128, 182, "B6")
-    B7 = new(91, 128, "B7")
-    B8 = new(64, 91, "B8")
-    B9 = new(45, 64, "B9")
-    B10 = new(32, 45, "B10")
+    B0 = new(1030, 1456, "mm", "B0")
+    B1 = new(728, 1030, "mm", "B1")
+    B2 = new(515, 728, "mm", "B2")
+    B3 = new(364, 515, "mm", "B3")
+    B4 = new(257, 364, "mm", "B4")
+    B5 = new(182, 257, "mm", "B5")
+    B6 = new(128, 182, "mm", "B6")
+    B7 = new(91, 128, "mm", "B7")
+    B8 = new(64, 91, "mm", "B8")
+    B9 = new(45, 64, "mm", "B9")
+    B10 = new(32, 45, "mm", "B10")
 
-    LETTER = new(215.9, 279.4, "letter")
-    LEGAL = new(215.9, 355.6, "legal")
-    TABLOID = new(279.9, 431.8, "tabloid")
-    JAPANESE_POSTCARD = new(100, 148, "Japanese postcard")
+    LETTER = new(215.9, 279.4, "mm", "letter")
+    LEGAL = new(215.9, 355.6, "mm", "legal")
+    TABLOID = new(279.9, 431.8, "mm", "tabloid")
+    JAPANESE_POSTCARD = new(100, 148, "mm", "Japanese postcard")
   end
 end



More information about the cairo-commit mailing list