Skip to content

Commit

Permalink
Better horizontal positioning of right-to-left text.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Feb 21, 2011
1 parent 287f568 commit 693d12e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fl_font_mac.cxx
Expand Up @@ -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);
}

//
Expand Down

0 comments on commit 693d12e

Please sign in to comment.