from global textwidth to local