Fonts
Posted: 14 Sep 2016, 12:26
Hello,
I should change the font added programmatically, but I always get the same output.
I'd need a font whicht is very sharp when printed.
Here is my code how I add text:
I should change the font added programmatically, but I always get the same output.
I'd need a font whicht is very sharp when printed.
Here is my code how I add text:
Code: Select all
var mText = new CADMText
{
Style = new CADStyle() {
FontName = "Verdana",
Color = Color.Black,
Converter = cadEditorControl.Image.Converter,
Visibility = true
},
Text = "Test Text!",
Color = Color.Black,
Point = new DPoint(50, 50, 0),
Height = 10,
};
Image.Converter.GetSection(ConvSection.Entities).AddEntity(mText);
Image.Converter.OnCreate(mText);
Image.Converter.Loads(mText);
cadEditorControl.PictureBox.Invalidate();
cadEditorControl.Update();