drawtext geometry detection bugfix