Uses float instead of double in class Text.