d_text.cpp
static void
move_text(int dir, unsigned char c, float div)
{
    double	    cwidth;
    double	    cwsin, cwcos;

    cwidth = (float) (ZOOM_FACTOR * char_advance(canvas_font, c));
    cwsin = cwidth/div*sin_t;
    cwcos = cwidth/div*cos_t;

    rbase_x += dir*cwcos;
    rbase_y -= dir*cwsin;
    cbase_x = round(rbase_x);
    cbase_y = round(rbase_y);
}
/* move the base of the text left (-1) or right (1) by the width of
   char c divided by div */
move the base of the text left (-1) or right (1) by the width of
char c divided by div
move the base of the text left ( - 1 ) or right ( 1 ) by the width of char c divided by div
static void
move_text(int dir, unsigned char c, float div)
{
    double	    cwidth;
    double	    cwsin, cwcos;
    cwidth = (float) (ZOOM_FACTOR * char_advance(canvas_font, c));
    cwsin = cwidth/div*sin_t;
    cwcos = cwidth/div*cos_t;
    rbase_x += dir*cwcos;
    rbase_y -= dir*cwsin;
    cbase_x = round(rbase_x);
    cbase_y = round(rbase_y);
}
static void move_text ( int dir , unsigned char c , float div ) { double cwidth ; double cwsin , cwcos ; cwidth = ( float ) ( ZOOM_FACTOR * char_advance ( canvas_font , c ) ) ; cwsin = cwidth / div * sin_t ; cwcos = cwidth / div * cos_t ; rbase_x += dir * cwcos ; rbase_y -= dir * cwsin ; cbase_x = round ( rbase_x ) ; cbase_y = round ( rbase_y ) ; }
move the base of the text left (-1) or right (1) by the width of
char c divided by div
move the base of the text left ( - 1 ) or right ( 1 ) by the width of char c divided by div