for drawing line I use
RenderTarget.DrawLine(new Vector2(x1, y), new Vector2(x2, y), lineBrush, lineWidth);
SimpleFont wpfFont = chartControl.Properties.LabelFont ?? new SimpleFont();
using (var textFormat = wpfFont.ToDirectWriteTextFormat())
{
using (TextLayout textLayout = new TextLayout(
Globals.DirectWriteFactory,
MyText,
textFormat, 1, textFormat.FontSize))
{
RenderTarget.DrawTextLayout(new Vector2(x1, y), textLayout, textBrush, DrawTextOptions.NoSnap);
}
}

Comment