[giv] Fixed text drawin in caliper on windows.



commit e6dfb8a96e94c4dbce50d76b4a1f7c76457835a7
Author: Dov Grobgeld <dov grobgeld gmail com>
Date:   Fri Apr 8 12:13:37 2011 +0300

    Fixed text drawin in caliper on windows.

 ChangeLog       |    2 ++
 src/giv-win.gob |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f202b0a..c79fd60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-04-08  Dov Grobgeld  <dov grobgeld gmail com>
 
+        * giv-win.gob : Fixed text drawing in caliper on windows.
+
         * png.c : Fixed error when reading 8-bit png images.
 
         * giv-win.gob : Made info label update when changing pixel size
diff --git a/src/giv-win.gob b/src/giv-win.gob
index f57a3af..3ae8050 100644
--- a/src/giv-win.gob
+++ b/src/giv-win.gob
@@ -3554,7 +3554,7 @@ draw_caliper(cairo_t *cr,
     else 
         cairo_fill(cr);
     
-#ifdef CAIRO_HAS_WIN32_FONT
+#if 0 
     // This is stil broken!
 
     // As I can't get pango cairo to work under Windows, I use the specific windows
@@ -3605,7 +3605,7 @@ draw_caliper(cairo_t *cr,
     int layout_width, layout_height;
     pango_layout_get_size(pango_layout, &layout_width, &layout_height);
 
-    cairo_move_to(cr, -0.5*layout_width/PANGO_SCALE,-0.2*layout_height);
+    cairo_move_to(cr, -0.5*layout_width/PANGO_SCALE,-0.9*layout_height/PANGO_SCALE);
     if (!do_mask)
         cairo_set_source_rgba(cr, 0,0,0,1); // 0x50/255.0,0x2d/255.0,0x16/255.0,1);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]