Auto detect and resize text altas texture.