06-13-2013, 09:23 PM
With CreateTextGeometry it is not possible to use any other fonts or characters.
If you need to use any font, than you can create a 3D Plane and set VisualBrush as its Material and / or BackMaterial. The content of VisualBrush would be a TextBlock that could display any text in any TrueType font. Check the web for more info - in Net 4.0 there are also some additional optimization options.
Another possibility is to prepare an image with your text - use RenderTargetBitmap to render TextBlock into an image and use that image as Material and BackMaterial for 3d rectangle. This is used in Cannon ball simulation that comes with Ab3d.PowerToys. There a HorizontalPlaneVisual3D is used and than a StackPanel with TextBlocks is rendered into bitmap that is than used as an ImageBrush for the 3D plane.
If you need to use any font, than you can create a 3D Plane and set VisualBrush as its Material and / or BackMaterial. The content of VisualBrush would be a TextBlock that could display any text in any TrueType font. Check the web for more info - in Net 4.0 there are also some additional optimization options.
Another possibility is to prepare an image with your text - use RenderTargetBitmap to render TextBlock into an image and use that image as Material and BackMaterial for 3d rectangle. This is used in Cannon ball simulation that comes with Ab3d.PowerToys. There a HorizontalPlaneVisual3D is used and than a StackPanel with TextBlocks is rendered into bitmap that is than used as an ImageBrush for the 3D plane.
Andrej Benedik

