librdtk: improve text positioning