Reidar Lange
Member
- Joined
- Oct 29, 2004
- Messages
- 16
Does anyone know how to control the size of the resulting mesh when you use Mesh.TextFromFont().
Setting the font size does not change anything.
One solution would be to aply scaling to the world transform before rendering, but that has a tendency to do strange things with 3d lighting.
Code:
System.Drawing.Font font = new System.Drawing.Font("Arial",1.0f,GraphicsUnit.Millimeter);
GlyphMetricsFloat [] glyph = new GlyphMetricsFloat[1];
Mesh m = Mesh.TextFromFont(device,font,"8",1f,0.1f,ref glyph);
One solution would be to aply scaling to the world transform before rendering, but that has a tendency to do strange things with 3d lighting.