From 693d12ee8834e57885279bfbdf98f002e3780571 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 21 Feb 2011 13:39:08 +0000 Subject: Better horizontal positioning of right-to-left text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_font_mac.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index f915143c5..77d0f7e48 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -503,7 +503,9 @@ void Fl_Quartz_Graphics_Driver::draw(int angle, const char *str, int n, int x, i } 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); } // -- cgit v1.2.3