[cairo] [PATCH 4/7] Fix font tests on Windows

Nikolai Weibull now at bitwi.se
Fri Sep 16 01:32:42 PDT 2011


---
 test/test_context.rb   |    2 +-
 test/test_font_face.rb |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_context.rb b/test/test_context.rb
index df3e228..d390e3f 100644
--- a/test/test_context.rb
+++ b/test/test_context.rb
@@ -74,7 +74,7 @@ class ContextTest < Test::Unit::TestCase
     face = context.font_face
     default_font_family = ""
     # default_font_family = "Helvetica" if quartz?
-    # default_font_family = "Arial" if win32?
+    default_font_family = "Arial" if win32?
     assert_equal([default_font_family,
                   Cairo::FONT_SLANT_NORMAL,
                   Cairo::FONT_WEIGHT_NORMAL],
diff --git a/test/test_font_face.rb b/test/test_font_face.rb
index 63f37d4..a9a8b13 100644
--- a/test/test_font_face.rb
+++ b/test/test_font_face.rb
@@ -9,7 +9,7 @@ class FontFaceTest < Test::Unit::TestCase
     face = Cairo::ToyFontFace.new
     default_font_family = ""
     # default_font_family = "Helvetica" if quartz?
-    # default_font_family = "Arial" if win32?
+    default_font_family = "Arial" if win32?
     assert_equal([default_font_family,
                   Cairo::FONT_SLANT_NORMAL,
                   Cairo::FONT_WEIGHT_NORMAL],
-- 
1.7.5.1



More information about the cairo mailing list