Author: manolo
Date: 2011-02-21 05:39:08 -0800 (Mon, 21 Feb 2011)
New Revision: 8458
Log:
Better horizontal positioning of right-to-left text.

Modified:
   branches/branch-1.3/src/fl_font_mac.cxx

Modified: branches/branch-1.3/src/fl_font_mac.cxx
===================================================================
--- branches/branch-1.3/src/fl_font_mac.cxx     2011-02-21 07:20:34 UTC (rev 
8457)
+++ branches/branch-1.3/src/fl_font_mac.cxx     2011-02-21 13:39:08 UTC (rev 
8458)
@@ -503,7 +503,9 @@
 }
 
 void Fl_Quartz_Graphics_Driver::rtl_draw(const char* c, int n, int x, int y) {
-  draw(c, n, int(x - width(c, n)), y);
+  int dx, dy, w, h;
+  text_extents(c, n, dx, dy, w, h);
+  draw(c, n, x - w - dx, y);
 }
 
 //

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to