I’m trying to draw text, which contains symbols from “Combining Diacritical Marcs” unicode subrange (U+0300 – U+FE23). For example i tried to draw string “T̅”, wich contains of two characters: ‘T’ and ‘\u0305’.
I’ve got that:
Is there any way to get correct text?
Addition: I need to draw rotated text too.
PS: my code:
private void Form1_Paint(object sender, PaintEventArgs e) {
Graphics g = e.Graphics;
Font fontTahoma = new Font("Tahoma", 16);
Font fontTimesNewRom = new Font("Times New Romulan", 16);
Font fontArial = new Font("Arial", 16);
Brush brush = new SolidBrush(Color.Red);
g.DrawString("Test1 T̅ T\u0305", fontTahoma, brush, new PointF(20, 20));
g.DrawString("Test1 T̅ T\u0305", fontTimesNewRom, brush, new PointF(20, 40));
g.DrawString("Test1 T̅ N\u0305", fontArial, brush, new PointF(20, 60));
}
TextRenderer seems to draw it better: