rem: x -= wTextWidth( wtext->font->font, &(wtext->text.txt[pos]), 1 );
add: x -= WMWidthOfString( wtext->font, &(wtext->text.txt[pos]), 1 );
context: textXtoPos( WTextInput *wtext, int x )  {  int pos;  x -= wtext->xOffset;    for( pos=0; wtext->text.txt[pos] != '\0'; pos++ )    {    if( x < 0 )      break;    else      x -= wTextWidth( wtext->font->font, &(wtext->text.txt[pos]), 1 );    }    return pos;  }