Optimize mesh generation of Text, by preallocating it